Function at 0x4098f0
Capabilities:
Connect socket
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x434b4c
push eax
mov eax, 0x1024
mov dword fs:[0], esp
call fcn.004327e0
mov eax, dword [esp + 0x1040]
push ebx
push ebp
push esi
push edi
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
mov esi, dword [esp + 0x1044]
xor ebx, ebx
mov dword [esp + 0x103c], ebx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x409942
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x409984
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._info__CreateHttpAgent
call fcn.004081f0
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x103c], 0xffffffff
call sub.MFC42.DLL_CString::CString
or eax, 0xffffffff
jmp 0x409d17
push 0x1388
push 0x1388
push eax
call fcn.00408e30
mov edi, dword [esp + 0x1058]
mov ebp, dword [esp + 0x1054]
push edi
lea ecx, [esp + 0x34]
push ebp
push ecx
call fcn.00409020
mov eax, dword [esi]
add esp, 0x18
lea edx, [esp + 0x24]
push 0x10
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x409a09
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
and edi, 0xffff
push eax
push edi
push ebp
push str._info__CreateHttpAgent__l
call fcn.004081f0
mov ecx, dword [esi]
add esp, 0x10
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x10]
mov dword [esp + 0x103c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xffffff9c
jmp 0x409d17
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xc35]
mov byte [esp + 0xc34], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x1058]
lea ecx, [esp + 0x18]
push edi
mov dword [esp + 0x24], 0x400
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
mov byte [esp + 0x103c], 1
cmp dword [edx - 8], ebx
je 0x409aad
mov eax, dword [esp + 0x105c]
lea ecx, [esp + 0xc34]
push eax
push edi
push str._s:_s
push ecx
call ebp
lea edx, [esp + 0x30]
push 2
lea eax, [esp + 0x48]
push edx
push eax
lea edi, [esp + 0xc50]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xc54]
push ecx
call fcn.004096c0
add esp, 0x24
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x435]
mov byte [esp + 0x434], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x409b02
mov eax, dword [esp + 0x1054]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x34]
and eax, 0xffff
push edx
push eax
push ecx
lea edx, [esp + 0x440]
push str.CONNECT__s:_d_HTTP_1.0_r_nProxy_Authorization:_Basic__s_r_nAccept:___r_nProxy_Connection:_Keep_Alive_r_n_r_n
push edx
call ebp
add esp, 0x14
jmp 0x409b32
mov eax, dword [esp + 0x1054]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x34]
and eax, 0xffff
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
push eax
push ecx
lea eax, [esp + 0x44c]
push str.CONNECT__s:_d_HTTP_1.0_r_nHost:__s:_d_r_nAuthorization:_Basic__s_r_nProxy_Authorization:_Basic__s_r_n_r_n
push eax
call ebp
add esp, 0x20
or ebp, 0xffffffff
lea edi, [esp + 0x434]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi]
push ebx
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x43c]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x434]
push ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
lea eax, [esp + 0x438]
push 0x400
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebp
je 0x409ce5
cmp eax, ebx
je 0x409cb1
lea edx, [esp + 0x434]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x434]
mov byte [esp + 0x103c], 2
push eax
push 0x443340
call fcn.004081f0
add esp, 8
lea ecx, [esp + 0x1c]
push 4
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1040], 3
call fcn.0043237c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x103c], 2
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
push str.http
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x409c63
lea eax, [esp + 0x434]
push eax
call fcn.00409890
add esp, 4
cmp eax, 0xc8
jne 0x409c63
push 0x443308
call fcn.004081f0
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x103c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x103c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x103c], ebp
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x409d17
mov ecx, dword [esi]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x4432d0
call fcn.004081f0
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x103c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x103c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x103c], ebp
call sub.MFC42.DLL_CString::CString
mov eax, 0xffffffa0
jmp 0x409d17
push 0x443290
call fcn.004081f0
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x103c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x103c], ebp
call sub.MFC42.DLL_CString::CString
mov eax, 0xffffff9e
jmp 0x409d17
push 0x443250
call fcn.004081f0
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x103c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x103c], ebp
call sub.MFC42.DLL_CString::CString
mov eax, 0xffffff9f
mov ecx, dword [esp + 0x1034]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1030
ret