Function at 0x404840
Capabilities:
Check http status code

Disassembly:
push 0xffffffffffffffff
push 0x405d8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov al, byte [esp + 3]
push ebx
push ebp
push esi
mov ebx, ecx
xor ebp, ebp
push edi
push ebp
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebp
mov byte [esp + 0x34], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x4090b0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4090b0
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov ecx, dword [ebx + 0x20b6]
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, ebx
mov dword [esp + 0x60], ebp
call fcn.00405220
mov esi, eax
test esi, esi
mov dword [esp + 0x20], esi
jbe 0x404936
jmp 0x4048c9
mov esi, dword [esp + 0x20]
cmp esi, 0xffffffff
je 0x404932
mov edx, dword [esp + 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
mov edi, str._r_n_r_n
or ecx, 0xffffffff
xor eax, eax
add ebp, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push eax
push str._r_n_r_n
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov edx, eax
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp dword [eax], edx
jne 0x404966
mov ecx, dword [ebx + 0x20b6]
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, ebx
call fcn.00405220
test eax, eax
mov dword [esp + 0x20], eax
ja 0x4048c5
mov dword [esp + 0x24], ebp
mov byte [ebx + 0x2174], 1
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x404c6e
mov al, byte [ecx - 1]
test al, al
je 0x404c64
cmp al, 0xff
je 0x404c64
dec al
mov byte [ecx - 1], al
jmp 0x404c6e
mov edi, str._r_n_r_n
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x24], ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
push ecx
push eax
lea eax, [esp + 0x48]
lea ecx, [esp + 0x38]
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x58], 1
mov edx, dword [ecx]
lea ecx, [esp + 0x30]
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x5c], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov edi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4049dc
xor ebp, ebp
jmp 0x4049e3
mov ecx, dword [esp + 0x38]
lea ebp, [ecx + eax]
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov esi, dword [esp + 0x34]
cmp esi, ebp
je 0x404a0a
movsx edx, byte [esi]
push edx
call dword [sym.imp.MSVCRT.dll_toupper]
add esp, 4
mov byte [edi], al
inc esi
inc edi
cmp esi, ebp
jne 0x4049f5
mov edi, str.CONNECTION:_CLOSE
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push eax
push str.CONNECTION:_CLOSE
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp dword [ecx], eax
je 0x404a3b
mov byte [ebx + 0x2174], 1
mov edi, str.HTTP_1.
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push eax
push str.HTTP_1.
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
cmp edx, eax
je 0x404936
push edx
push eax
lea eax, [esp + 0x48]
lea ecx, [esp + 0x38]
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov edx, eax
mov edi, 0x4063b0
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x58], 2
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push eax
push 0x4063b0
mov ecx, edx
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
push 1
lea ecx, [esp + 0x44]
mov esi, eax
mov byte [esp + 0x5c], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [eax]
cmp ecx, esi
je 0x404936
push ecx
lea edx, [esp + 0x44]
push esi
push edx
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov eax, dword [eax + 4]
test eax, eax
jne 0x404ae0
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov esi, dword [sym.imp.MSVCRT.dll_sscanf]
lea ecx, [esp + 0x28]
push ecx
push str.__d
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x40]
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x28]
cmp eax, 0x197
jne 0x404b1d
push 0
push 0x14
mov ecx, ebx
call fcn.00402b70
jmp 0x404936
cmp eax, 0x191
jne 0x404b34
push 0
push 0x13
mov ecx, ebx
call fcn.00402b70
jmp 0x404936
cmp eax, 0xc8
jne 0x404936
mov edi, str.CONTENT_LENGTH:
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push eax
push str.CONTENT_LENGTH:
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
cmp edx, eax
je 0x404936
push edx
push eax
lea eax, [esp + 0x48]
lea ecx, [esp + 0x38]
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov eax, dword [eax + 4]
xor edi, edi
cmp eax, edi
jne 0x404b8e
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x1c]
push ecx
push str.CONTENT_LENGTH:__d_r_n
push eax
call esi
mov eax, dword [esp + 0x50]
add esp, 0xc
cmp eax, edi
je 0x404bc3
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x404bba
cmp al, 0xff
je 0x404bba
dec al
mov byte [ecx], al
jmp 0x404bc3
push ecx
call fcn.004058ac
add esp, 4
mov edx, dword [esp + 0x1c]
lea eax, [ebx + 0x2157]
push eax
push 3
mov ecx, ebx
mov dword [eax], edx
call fcn.00402b70
mov al, byte [ebx + 0x20c2]
test al, al
je 0x404c34
mov al, byte [ebx + 0x2163]
lea esi, [ebx + 0x2163]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x3c], esp
mov byte [ecx], al
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edi
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov eax, dword [edx]
push eax
push edi
push esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00405800
add esp, 0x14
test al, al
jne 0x404c34
push edi
push 0x19
mov ecx, ebx
call fcn.00402b70
jmp 0x404936
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
mov edx, ecx
sub edx, eax
sub eax, ecx
push edx
mov edx, dword [esp + 0x24]
add eax, esi
mov ecx, ebx
add eax, edx
push eax
call fcn.00404c90
mov dword [esp + 0x18], 1
jmp 0x40493d
dec ecx
push ecx
call fcn.004058ac
add esp, 4
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4c
ret