Function at 0x416658
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x5e5710]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
push edi
mov ebx, ecx
push 0x58a0f8
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov esi, str._r_n_r_n
push dword [ebx + 0x2134]
lea eax, [ebp - 0x30]
push eax
mov ecx, ebx
call fcn.00409d90
mov edi, eax
test edi, edi
mov dword [ebp - 0x38], edi
jbe 0x416816
cmp edi, 0xffffffff
je 0x416816
push dword [ebp - 0x30]
lea ecx, [ebp - 0x20]
call dword [0x586548]
add dword [ebp - 0x24], edi
push 0
push esi
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
mov edi, eax
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp dword [eax], edi
je 0x416691
push esi
call sub.MSVCR80.dll_strlen
pop ecx
add eax, edi
push eax
push 0
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP80.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_]
push eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP80.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp - 0x54]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_]
mov esi, eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::end_void_]
mov edi, eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_]
push dword [sym.imp.MSVCR80.dll_toupper]
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x5c]
push eax
call fcn.004164f7
add esp, 0x20
xor edi, edi
push edi
push str.CONNECTION:_CLOSE
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp dword [ecx], eax
je 0x416778
mov byte [ebx + 0x2179], 1
push edi
push str.HTTP_1.
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp dword [ecx], eax
je 0x416816
push edi
push 0x58abe0
push dword [ecx]
lea ecx, [ebp - 0x20]
push eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.MSVCP80.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, eax
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
lea ecx, [ebp - 0x54]
mov esi, eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp dword [eax], esi
je 0x416816
push dword [eax]
lea eax, [ebp - 0x54]
push esi
push eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP80.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_]
cmp dword [eax + 0x18], 0x10
jb 0x4167e2
mov eax, dword [eax + 4]
jmp 0x4167e5
add eax, 4
mov esi, dword [sym.imp.MSVCR80.dll_sscanf]
lea ecx, [ebp - 0x28]
push ecx
push 0x58abd8
push eax
call esi
add esp, 0xc
lea ecx, [ebp - 0x54]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [ebp - 0x28], 0x197
jne 0x416838
push edi
push 0x14
mov ecx, ebx
call fcn.00413d33
mov byte [ebx + 0x2179], 1
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x34]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056f17c
leave
ret
cmp dword [ebp - 0x28], 0x191
jne 0x416846
push edi
push 0x13
jmp 0x41680f
cmp dword [ebp - 0x28], 0xc8
jne 0x416816
push edi
push str.CONTENT_LENGTH:
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp dword [ecx], eax
je 0x416816
push dword [ecx]
lea ecx, [ebp - 0x20]
push eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.MSVCP80.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_]
cmp dword [eax + 0x18], 0x10
jb 0x416883
mov eax, dword [eax + 4]
jmp 0x416886
add eax, 4
lea ecx, [ebp - 0x2c]
push ecx
push str.CONTENT_LENGTH:__d_r_n
push eax
call esi
add esp, 0xc
lea ecx, [ebp - 0x54]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [ebp - 0x2c]
lea eax, [ebx + 0x2150]
push eax
mov dword [eax], ecx
push 3
mov ecx, ebx
call fcn.00413d33
cmp byte [ebx + 0x2140], 0
je 0x4168e5
sub esp, 0x1c
lea eax, [ebx + 0x215c]
mov ecx, esp
push eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push dword [ebp - 0x2c]
call fcn.00407150
add esp, 0x20
test al, al
jne 0x4168e5
push edi
push 0x19
jmp 0x41680f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
sub ecx, eax
sub eax, dword [ebp - 0x24]
push ecx
add eax, dword [ebp - 0x30]
mov ecx, ebx
add eax, dword [ebp - 0x38]
push eax
call fcn.004144ca
mov dword [ebp - 0x34], 1
jmp 0x41681d