Function at 0x4a07c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Make an http request with a cookie
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa44
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x5bc], ebx
mov dword [ebp - 0x5b8], ebx
mov dword [ebp - 0x5b4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404690
mov eax, dword [ebp + 0x10]
call fcn.00404690
xor eax, eax
push ebp
push 0x4a0a85
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.004041e0
mov eax, dword [ebp + 8]
call fcn.004041e0
lea eax, [ebp - 0x5b0]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.004046a0
push eax
call sub.wsock32.dll_gethostbyname
mov esi, eax
test esi, esi
je 0x4a0a4a
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402d6c
mov word [ebp - 0x20], 2
push ebx
call sub.wsock32.dll_htons
mov word [ebp - 0x1e], ax
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push 0x10
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_connect
test eax, eax
jne 0x4a0a4a
push 0x4a0aa0
push dword [ebp + 0x10]
push 0x4a0ab0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404560
push dword [ebp - 0xc]
push 0x4a0ac4
push dword [ebp - 4]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404560
cmp ebx, 0x50
je 0x4a08ef
push dword [ebp - 0xc]
push 0x4a0ae0
lea edx, [ebp - 0x5b4]
mov eax, ebx
call fcn.00408868
push dword [ebp - 0x5b4]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404560
push dword [ebp - 0xc]
push 0x4a0aec
push dword [ebp + 0x10]
push 0x4a0af8
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00404560
lea eax, [ebp - 0xc]
mov edx, 0x4a0b04
call fcn.004044a8
push dword [ebp - 0xc]
push 0x4a0b5c
push dword [ebp - 4]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404560
cmp ebx, 0x50
je 0x4a095e
push dword [ebp - 0xc]
push 0x4a0ae0
lea edx, [ebp - 0x5b8]
mov eax, ebx
call fcn.00408868
push dword [ebp - 0x5b8]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404560
lea eax, [ebp - 0xc]
mov edx, 0x4a0af8
call fcn.004044a8
lea eax, [ebp - 0xc]
mov edx, 0x4a0b6c
call fcn.004044a8
lea eax, [ebp - 0xc]
mov edx, 0x4a0b88
call fcn.004044a8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4a09cf
inc ebx
xor esi, esi
push dword [ebp - 0xc]
push 0x4a0bac
lea ecx, [ebp - 0x5bc]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x5bc]
push 0x4a0af8
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00404560
inc esi
dec ebx
jne 0x4a0999
lea eax, [ebp - 0xc]
mov edx, 0x4a0af8
call fcn.004044a8
push 0
mov eax, dword [ebp - 0xc]
call fcn.004044a0
push eax
mov eax, dword [ebp - 0xc]
call fcn.004046a0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_send
push 0
push 0x400
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_recv
cmp eax, 1
jl 0x4a0a31
lea edx, [ebp - 0x420]
lea ecx, [ebp - 0xc]
xchg ecx, eax
call fcn.004042d0
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004044a8
jmp 0x4a09f9
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_closesocket
call sub.wsock32.dll_WSACleanup
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404234
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0a8c
lea eax, [ebp - 0x5bc]
mov edx, 3
call fcn.00404204
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404204
lea eax, [ebp - 4]
call fcn.004041e0
lea eax, [ebp + 0x10]
call fcn.004041e0
ret