1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
| v42 = (__int64)this + 24; v44 = 0; v43 = std::string::find((char *)this + 24, "\r\n", 0LL); if ( v43 >= 0 ) { std::string::substr(v15, v42, 0LL, v43); v1 = std::string::size(v42); if ( v1 <= v43 + 2 ) { v44 = 1; } else { std::string::substr(v16, v42, v43 + 2, -1LL); std::string::operator=(v42, v16); std::string::~string(v16); v41 = -1; v2 = std::string::find(v15, "GET", 0LL); v41 = v2; if ( v2 < 0 ) { v41 = std::string::find(v15, "POST", 0LL); if ( v41 < 0 ) { v41 = std::string::find(v15, "HEAD", 0LL); if ( v41 < 0 ) { v41 = std::string::find(v15, "DELETE", 0LL); if ( v41 < 0 ) { std::allocator<char>::allocator(&v26); std::string::basic_string(v25, "method", &v26); v7 = std::map<std::string,std::string>::operator[]((char *)this + 152, v25); std::string::operator=(v7, "unknown"); std::string::~string(v25); std::allocator<char>::~allocator(&v26); } else { v43 = v41; std::allocator<char>::allocator(&v24); std::string::basic_string(v23, "method", &v24); v6 = std::map<std::string,std::string>::operator[]((char *)this + 152, v23); std::string::operator=(v6, "delete"); std::string::~string(v23); std::allocator<char>::~allocator(&v24); } } else { v43 = v41; std::allocator<char>::allocator(&v22); std::string::basic_string(v21, "method", &v22); v5 = std::map<std::string,std::string>::operator[]((char *)this + 152, v21); std::string::operator=(v5, "head"); std::string::~string(v21); std::allocator<char>::~allocator(&v22); } } else { v43 = v41; std::allocator<char>::allocator(&v20); std::string::basic_string(v19, "method", &v20); v4 = std::map<std::string,std::string>::operator[]((char *)this + 152, v19); std::string::operator=(v4, "post"); std::string::~string(v19); std::allocator<char>::~allocator(&v20); } } else { v43 = v41; std::allocator<char>::allocator(&v18); std::string::basic_string(v17, "method", &v18); v3 = std::map<std::string,std::string>::operator[]((char *)this + 152, v17); std::string::operator=(v3, "get"); std::string::~string(v17); std::allocator<char>::~allocator(&v18); } if ( v43 >= 0 ) { v40 = std::string::find(v15, 47LL, 0LL); if ( v40 >= 0 ) { std::string::substr(v27, v15, v40, -1LL); std::string::operator=(v15, v27); std::string::~string(v27); v39 = std::string::find(v15, 32LL, 0LL); if ( v39 >= 0 ) { std::string::substr(v28, v15, 0LL, v39); std::allocator<char>::allocator(&v30); std::string::basic_string(v29, "url", &v30); v8 = std::map<std::string,std::string>::operator[]((char *)this + 152, v29); std::string::operator=(v8, v28); std::string::~string(v29); std::allocator<char>::~allocator(&v30); std::string::~string(v28); std::string::substr(v31, v15, v39, -1LL); std::string::operator=(v15, v31); std::string::~string(v31); v38 = std::string::find(v15, 47LL, 0LL); if ( v38 >= 0 ) { std::string::substr(v32, v15, v38 + 1, -1LL); std::allocator<char>::allocator(&v34); std::string::basic_string(v33, "version", &v34); v9 = std::map<std::string,std::string>::operator[]((char *)this + 152, v33); std::string::operator=(v9, v32); std::string::~string(v33); std::allocator<char>::~allocator(&v34); std::string::~string(v32); } else { v44 = 1; } } else { v44 = 1; } } } else { v44 = 1; } } std::string::~string(v15); } else { v44 = 1; } if ( v44 == 1 ) { std::map<std::string,std::string>::clear((char *)this + 152); return v44; } else { while ( 1 ) { v37 = -1; v36 = -1; v37 = std::string::find(v42, "\r\n", 0LL); if ( v37 < 0 ) break; std::string::substr(v13, v42, 0LL, v37); std::string::substr(v35, v42, v37 + 2, -1LL); std::string::operator=(v42, v35); std::string::~string(v35); v36 = std::string::find(v13, 58LL, 0LL); if ( v36 >= 0 ) { std::string::substr(v14, v13, 0LL, v36); std::string::substr(v15, v13, v36 + 2, -1LL); hackme::net::http::str_lower(this, v14); hackme::net::http::str_lower(this, v15); v12 = std::map<std::string,std::string>::operator[]((char *)this + 152, v14); std::string::operator=(v12, v15); std::string::~string(v15); std::string::~string(v14); v11 = 1; } else { v44 = 0; v11 = 0; } std::string::~string(v13); if ( v11 != 1 ) return v44; } return 1; } }
|