Function at 0x4034d0
Capabilities:
Connect socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Set socket configuration

Disassembly:
sub esp, 0x41c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ax, word [esi + 0x450]
lea ebp, [esi + 0x410]
mov word [esp + 0x14], ax
mov eax, dword [esi + 0x96c]
test eax, eax
je 0x40350a
mov cx, word [eax + 0xc26]
lea ebp, [eax + 0xb26]
mov word [esp + 0x14], cx
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x13], 0
je 0x40358c
movsx edx, byte [ebx + ebp]
push edx
call dword [sym.imp.MSVCRT.dll_isdigit]
add esp, 4
test eax, eax
jne 0x40353c
cmp byte [ebx + ebp], 0x2e
je 0x40353c
mov byte [esp + 0x13], 1
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
inc ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebx, ecx
jb 0x40351f
cmp byte [esp + 0x13], 1
jne 0x40358c
push ebp
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x403583
push ebp
push str.ConnectHost____s_gethostbyname_error
push str.CHttpSocket
push 0x14
call fcn.00407ec0
add esp, 0x10
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edi, dword [ecx]
jmp 0x403594
push ebp
call sub.WSOCK32.dll_inet_addr
mov edi, eax
mov eax, dword [esp + 0x14]
xor edx, edx
mov dword [esp + 0x18], edx
mov ebx, 2
mov dword [esp + 0x1c], edx
push eax
mov dword [esp + 0x24], edx
mov word [esp + 0x1c], bx
mov dword [esp + 0x28], edx
call sub.WSOCK32.dll_htons
mov edx, dword [esi + 8]
lea ecx, [esp + 0x18]
push 0x10
push ecx
push edx
mov word [esp + 0x26], ax
mov dword [esp + 0x28], edi
call sub.WSOCK32.dll_connect
test eax, eax
je 0x403625
mov ecx, esi
call fcn.004031a0
mov ecx, dword [esp + 0x1e]
mov edx, dword [esp + 0x1d]
and eax, 0xff
and ecx, 0xff
push eax
mov eax, dword [esp + 0x23]
and eax, 0xff
and edx, 0xff
push eax
mov eax, dword [esp + 0x24]
push ecx
and eax, 0xff
push edx
push eax
push ebp
push str.ConnectHost____s__d._d._d._d_connect_error_isproxy__d
push str.CHttpSocket
push 0x14
call fcn.00407ec0
add esp, 0x24
jmp 0x40365f
mov eax, dword [esi + 8]
lea edx, [esp + 0x28]
push 4
push edx
push 0x1006
push 0xffff
push eax
mov dword [esp + 0x3c], 0x2710
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x40367f
push str.SO_RCVTIMEO_setsockopt__
push str.CHttpSocket
push 0x14
call fcn.00407ec0
add esp, 0xc
mov ecx, dword [esi + 8]
push ecx
call sub.WSOCK32.dll_closesocket
mov dword [esi + 8], 0xffffffff
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esi + 0x96c]
test ecx, ecx
je 0x403752
cmp dword [ecx + 4], ebx
jne 0x4036a3
mov dx, word [esi + 0x450]
lea eax, [esi + 0x410]
push edx
push eax
jmp 0x4036be
mov ax, word [esi + 0x450]
push eax
call sub.WSOCK32.dll_htons
mov ecx, dword [esi + 0x96c]
push eax
lea eax, [esi + 0x410]
push eax
call fcn.00407350
mov ecx, dword [esi + 0x96c]
push 0
push 0
call fcn.004073b0
mov edi, eax
test edi, edi
jle 0x403740
mov ecx, dword [esi + 0x96c]
push 0
push edi
call fcn.004073a0
mov ecx, dword [esi + 8]
push eax
push ecx
call sub.WSOCK32.dll_send
test edi, edi
jle 0x403740
mov eax, dword [esi + 8]
push 0
lea edx, [esp + 0x30]
push 0x400
push edx
push eax
call sub.WSOCK32.dll_recv
test eax, eax
jle 0x403742
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, dword [esi + 0x96c]
call fcn.004073b0
mov edi, eax
test edi, edi
jle 0x403740
mov ecx, dword [esi + 0x96c]
push 0
push edi
call fcn.004073a0
mov edx, dword [esi + 8]
push eax
push edx
call sub.WSOCK32.dll_send
test edi, edi
jg 0x4036f4
je 0x403752
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x41c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x41c
ret