Function at 0x4084e0
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a129
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ebx
xor esi, esi
mov dword [ebx + 0x7c], esi
mov dword [ebx + 0x78], esi
mov eax, dword [ebx + 0x44]
mov dword [ebp - 4], esi
cmp eax, esi
mov byte [ebp - 4], 1
jne 0x408521
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]
push esi
push esi
push esi
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, esi
mov dword [ebx + 4], eax
jne 0x4085af
mov edi, str.Cannot_open_internet
or ecx, 0xffffffff
xor eax, eax
lea esi, [ebx + 0x60]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov edi, ecx
mov ecx, esi
push edi
mov dword [ebp + 0x18], edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40857f
mov eax, dword [esi + 4]
mov ecx, edi
mov edi, eax
mov eax, ecx
mov esi, str.Cannot_open_internet
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
push ecx
lea ecx, [ebx + 0x60]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
lea ecx, [ebp + 8]
mov dword [ebx + 0x70], eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebx + 0x34]
cmp ecx, esi
jne 0x4085c0
mov edi, 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, edi
jmp 0x4085c8
mov edi, 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, ecx
mov edx, dword [ebx + 0x24]
test edx, edx
jne 0x4085d1
mov edx, edi
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4085da
mov ecx, edi
push 0
push 0
push 3
push esi
push edx
mov edx, dword [ebp + 0x18]
push edx
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [ebx + 0xc], eax
jne 0x40870c
mov edi, str.Cannot_connect_to_internet
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [ebx + 0x60]
mov edi, ecx
push 1
push edi
mov ecx, esi
mov dword [ebp + 0x18], edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x408644
mov eax, dword [esi + 4]
mov ecx, edi
mov edi, eax
mov eax, ecx
mov esi, str.Cannot_connect_to_internet
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov eax, dword [ebx + 0x64]
add eax, ecx
mov dword [ebx + 0x68], ecx
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov dword [ebx + 0x70], eax
call fcn.00408c00
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4086f7
mov al, byte [ecx - 1]
test al, al
je 0x4086ed
cmp al, 0xff
je 0x4086ed
dec al
mov byte [ecx - 1], al
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40872f
mov al, byte [ecx - 1]
test al, al
je 0x408725
cmp al, 0xff
je 0x408725
dec al
mov byte [ecx - 1], al
jmp 0x40872f
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14