Function at 0x40eef0
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x44c5cd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], 0
push str.Error
lea ecx, [esp + 0x14]
mov dword [esp + 0x9c], 3
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x50]
mov byte [esp + 0x98], 4
rep stosd dword es:[edi], eax
call dword [sym.imp.WINMM.dll_timeGetTime]
push eax
lea eax, [esp + 0x54]
push str.Agent_ld
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x50]
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebp, eax
test ebp, ebp
jne 0x40ef9d
mov esi, dword [esp + 0xa0]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.0044a6f6
mov ebx, 1
mov dword [esp + 0x14], ebx
jmp 0x40f17a
mov eax, dword [esp + 0xa8]
push 0
push 0
push 3
push 0x4820b4
push 0x4820b4
push 0
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
test ebx, ebx
jne 0x40efd0
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40f114
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0xa4]
push 0
push 0x4000000
push 0
push 0
push str.HTTP_1.0
push edx
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
jne 0x40f009
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
jmp 0x40f10f
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x40f043
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
push ebp
call esi
mov esi, dword [esp + 0xa0]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.0044a6f6
jmp 0x40f171
lea eax, [esp + 0x18]
push 0
lea ecx, [esp + 0x20]
push eax
push ecx
push 0x20000013
push esi
mov dword [esp + 0x2c], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x40f01c
cmp dword [esp + 0x1c], 0xc8
jne 0x40f09e
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x30]
push eax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
lea edx, [esp + 0x34]
push ecx
push edx
push 5
push esi
mov dword [esp + 0x34], 0x20
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x40f0c5
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
push ebp
call esi
mov esi, dword [esp + 0xa0]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.0044a6f6
jmp 0x40f171
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.MSVCRT.dll_atol]
inc eax
push eax
mov dword [esp + 0x2c], eax
call sub.MFC42.DLL_operatornew
add esp, 8
mov edi, eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
push edx
push eax
push edi
push esi
mov dword [edi], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40f129
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
push ebp
call esi
mov esi, dword [esp + 0xa0]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0044a6f6
jmp 0x40f171
mov edx, dword [esp + 0x28]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [edx + edi], 0
call esi
push ebx
call esi
push ebp
call esi
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_2
push edi
call sub.MFC42.DLL_operatordelete
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0044a6f6
mov esi, dword [esp + 0xa4]
mov ecx, dword [esp + 0x30]
push esi
call fcn.0040fee0
mov ebx, 1
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x98], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xa4]
mov byte [esp + 0x98], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xa8]
mov byte [esp + 0x98], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xac]
mov byte [esp + 0x98], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x90]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x8c
ret 0x10