Function at 0x403a10
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Receive data
Receive data on socket
Reference http user-agent string
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x93c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x938], eax
push ebx
mov ebx, ecx
push esi
push edi
test ebx, ebx
je 0x403d95
cmp byte [ebx], 0
je 0x403d95
push 0x7f
lea eax, [esp + 0x5d]
mov byte [esp + 0x5c], 0
push 0
push eax
call fcn.004164d0
add esp, 0xc
mov edi, 0x50
push 0x4340e0
push ebx
call fcn.004133a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x403a7c
mov eax, ebx
neg eax
cmp eax, 0x13
jg 0x403d95
mov eax, esi
sub eax, ebx
push eax
push ebx
lea eax, [esp + 0x60]
push 0x80
push eax
call fcn.00412fcc
lea eax, [esp + 0x68]
add esi, 3
push str.http
push eax
call fcn.00412e9b
add esp, 0x18
test eax, eax
jne 0x403d95
push 0x2f
push esi
call fcn.00413720
push 0x80
mov dword [esp + 0x18], eax
lea eax, [esp + 0x64]
push 0
push eax
call fcn.004164d0
mov eax, dword [esp + 0x20]
add esp, 0x14
sub eax, esi
push eax
push esi
lea eax, [esp + 0x60]
push 0x80
push eax
call fcn.00412fcc
lea eax, [esp + 0x68]
push 0x3a
push eax
call fcn.00413720
mov ecx, eax
mov byte [esp + 0x5c], 0
add esp, 0x18
mov word [esp + 0x55], 0
mov byte [esp + 0x57], 0
xorps xmm0, xmm0
movdqu xmmword [esp + 0x45], xmm0
test ecx, ecx
je 0x403b4c
lea edx, [esp + 0x58]
sub eax, edx
cmp eax, 0x80
jae 0x403dac
mov byte [esp + eax + 0x58], 0
lea eax, [ecx + 1]
push eax
lea eax, [esp + 0x48]
push 0x14
push eax
call fcn.00412f77
add esp, 0xc
lea eax, [esp + 0x44]
push eax
call fcn.0041384b
add esp, 4
mov edi, eax
mov byte [esp + 0x30], 0
xorps xmm0, xmm0
mov word [esp + 0x41], 0
mov byte [esp + 0x43], 0
movdqu xmmword [esp + 0x31], xmm0
cmp edi, 0x50
je 0x403b88
lea eax, [edi - 1]
cmp eax, 0xfffe
ja 0x403b88
push edi
lea eax, [esp + 0x34]
push 0x434014
push eax
call fcn.004044e0
add esp, 0xc
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov eax, 2
push edi
mov word [esp + 0x24], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x22], ax
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
je 0x403bde
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [esp + 0x1c]
push eax
call fcn.004171d0
add esp, 0xc
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
push 0x3ff
lea eax, [esp + 0x145]
mov byte [esp + 0x144], 0
push 0
push eax
call fcn.004164d0
add esp, 0xc
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x14c]
push str.GET__s_HTTP_1.1_r_nHost:__s_s_r_nAccept:__r_nUser_Agent:_Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__WOW64__Trident_5.0__r_nConnection:close_r_nCache_Control:_no_cache_r_n_r_n_r_n
push eax
call fcn.00404500
lea ecx, [esp + 0x154]
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403c43
push 0
sub ecx, edx
lea eax, [esp + 0x144]
push ecx
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
push 0x3ff
lea eax, [esp + 0x545]
mov byte [esp + 0x544], 0
push 0
push eax
call fcn.004164d0
add esp, 0xc
lea eax, [esp + 0x540]
push 0
push 0x400
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
push 0x400
mov edx, ebx
lea ecx, [esp + 0x548]
call fcn.00404280
add esp, 8
cmp eax, 0xffffffff
je 0x403d95
cmp eax, 0xfffffffe
je 0x403a40
push 0x63
lea eax, [esp + 0xdd]
mov byte [esp + 0xdc], 0
push 0
push eax
call fcn.004164d0
add esp, 0xc
lea eax, [esp + 0x540]
push str.Content_Length:
push eax
call fcn.004133a0
add esp, 8
test eax, eax
je 0x403d59
mov cl, byte [eax + 0xf]
add eax, 0xf
test cl, cl
je 0x403d70
cmp cl, 0xd
je 0x403d1f
lea edx, [esp + 0xd8]
nop
mov byte [edx], cl
lea eax, [eax + 1]
mov cl, byte [eax]
lea edx, [edx + 1]
cmp cl, 0xd
jne 0x403d10
mov dl, 0x20
lea ecx, [esp + 0xd8]
call fcn.004023c0
lea ecx, [esp + 0xd8]
call fcn.004023f0
mov eax, ecx
push eax
call fcn.0041384b
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x938]
xor ecx, esp
call fcn.00412a27
mov esp, ebp
pop ebp
ret
push 0x4342f8
lea eax, [esp + 0xdc]
push 0x64
push eax
call fcn.00412f77
add esp, 0xc
lea eax, [esp + 0xd8]
push eax
call fcn.0041384b
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x938]
xor ecx, esp
call fcn.00412a27
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x944]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00412a27
mov esp, ebp
pop ebp
ret
call fcn.00413210
int3