Function at 0x485b64
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, 0xfffff240
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0xdc0], eax
mov dword [ebp - 0xdbc], eax
mov dword [ebp - 0xdb8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x485e2f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xdb4]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov esi, 0x485e40
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov word [ebp - 0xc24], 2
push 0x50
call sub.wsock32.dll_htons
mov word [ebp - 0xc22], ax
push esi
call sub.wsock32.dll_inet_addr
mov edi, eax
mov dword [ebp - 0xc20], edi
inc edi
jne 0x485c04
push esi
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x485e04
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc20], eax
push 0x10
lea eax, [ebp - 0xc24]
push eax
push ebx
call sub.wsock32.dll_connect
test eax, eax
lea edx, [ebp - 0xdb8]
mov eax, dword [0x48b120]
mov eax, dword [eax + 0x360]
call fcn.00437404
mov eax, dword [ebp - 0xdb8]
lea edx, [ebp - 4]
call fcn.0040802c
mov eax, dword [ebp - 4]
call fcn.004041b8
lea edx, [ebp - 0xdbc]
mov eax, dword [0x48b120]
mov eax, dword [eax + 0x368]
call fcn.00437404
mov eax, dword [ebp - 0xdbc]
lea edx, [ebp - 0xc]
call fcn.0040802c
mov eax, dword [ebp - 0xc]
call fcn.004041b8
lea edx, [ebp - 0xdc0]
mov eax, dword [0x48b120]
mov eax, dword [eax + 0x370]
call fcn.00437404
mov eax, dword [ebp - 0xdc0]
lea edx, [ebp - 8]
call fcn.0040802c
mov eax, dword [ebp - 8]
call fcn.004041b8
lea eax, [ebp - 0x411]
xor ecx, ecx
mov edx, 0x401
call fcn.00402bbc
push dword [ebp - 0x10]
push 0x485e58
push dword [ebp - 4]
push 0x485e78
push dword [ebp - 8]
push 0x485e88
push dword [ebp - 0xc]
push 0x485e98
push 0x485eac
push 0x485eb8
push 0x485ec4
push 0x485eac
push 0x485eb8
push 0x485ed8
push 0x485eac
push 0x485eb8
push 0x485ef8
push 0x485eac
push 0x485eb8
push 0x485f24
push 0x485eac
push 0x485eb8
push 0x485f44
push 0x485eac
push 0x485eb8
push 0x485eac
push 0x485eb8
lea eax, [ebp - 0x10]
mov edx, 0x1b
call fcn.00404278
mov eax, dword [ebp - 0x10]
call fcn.004041b8
mov ecx, eax
lea eax, [ebp - 0x411]
mov edx, dword [ebp - 0x10]
call fcn.00406b30
push 0
mov eax, dword [ebp - 0x10]
call fcn.004041b8
push eax
lea eax, [ebp - 0x411]
push eax
push ebx
call sub.wsock32.dll_send
push 0
push 0x400
lea eax, [ebp - 0xc12]
push eax
push ebx
call sub.wsock32.dll_recv
cmp eax, 0xa
jbe 0x485e04
mov esi, eax
dec esi
test esi, esi
jb 0x485e04
inc esi
lea ebx, [ebp - 0xc12]
cmp byte [ebx], 0xd
jne 0x485dca
cmp byte [ebx + 1], 0xa
jne 0x485dca
cmp byte [ebx + 2], 0xd
jne 0x485dca
cmp byte [ebx + 3], 0xa
jne 0x485dca
cmp byte [ebx + 4], 0x46
jne 0x485dca
cmp byte [ebx + 5], 0x46
jne 0x485dca
push 0x40
push 0x485f7c
push 0x485f84
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x485e00
cmp byte [ebx], 0xd
jne 0x485e00
cmp byte [ebx + 1], 0xa
jne 0x485e00
cmp byte [ebx + 2], 0xd
jne 0x485e00
cmp byte [ebx + 3], 0xa
jne 0x485e00
cmp byte [ebx + 4], 0x53
jne 0x485e00
cmp byte [ebx + 5], 0x21
jne 0x485e00
push 0x40
push 0x485f7c
push 0x485f90
push 0
call sub.user32.dll_MessageBoxA_1
inc ebx
dec esi
jne 0x485d92
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485e36
lea eax, [ebp - 0xdc0]
mov edx, 3
call fcn.00403f1c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403f1c
ret