Function at 0x48547c
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 0x48572f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xdb4]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov esi, 0x485740
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 0x48551c
push esi
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x485704
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 + 0x310]
call fcn.00437404
mov eax, dword [ebp - 0xdb8]
lea edx, [ebp - 0xc]
call fcn.0040802c
lea edx, [ebp - 0xdbc]
mov eax, dword [0x48b120]
mov eax, dword [eax + 0x31c]
call fcn.00437404
mov eax, dword [ebp - 0xdbc]
lea edx, [ebp - 4]
call fcn.0040802c
lea edx, [ebp - 0xdc0]
mov eax, dword [0x48b120]
mov eax, dword [eax + 0x34c]
call fcn.00437404
mov eax, dword [ebp - 0xdc0]
lea edx, [ebp - 8]
call fcn.0040802c
lea eax, [ebp - 0x411]
xor ecx, ecx
mov edx, 0x401
call fcn.00402bbc
push dword [ebp - 0x10]
push 0x485758
push dword [ebp - 0xc]
push 0x48577c
push dword [ebp - 4]
push 0x48578c
push dword [ebp - 8]
push 0x48579c
push 0x4857b0
push 0x4857bc
push 0x4857c8
push 0x4857b0
push 0x4857bc
push 0x4857dc
push 0x4857b0
push 0x4857bc
push 0x4857fc
push 0x4857b0
push 0x4857bc
push 0x485828
push 0x4857b0
push 0x4857bc
push 0x485848
push 0x4857b0
push 0x4857bc
push 0x4857b0
push 0x4857bc
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 0x485704
mov esi, eax
dec esi
test esi, esi
jb 0x485704
inc esi
lea ebx, [ebp - 0xc12]
cmp byte [ebx], 0xd
jne 0x4856ca
cmp byte [ebx + 1], 0xa
jne 0x4856ca
cmp byte [ebx + 2], 0xd
jne 0x4856ca
cmp byte [ebx + 3], 0xa
jne 0x4856ca
cmp byte [ebx + 4], 0x46
jne 0x4856ca
cmp byte [ebx + 5], 0x21
jne 0x4856ca
push 0x40
push 0x485880
push 0x485888
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x485700
cmp byte [ebx], 0xd
jne 0x485700
cmp byte [ebx + 1], 0xa
jne 0x485700
cmp byte [ebx + 2], 0xd
jne 0x485700
cmp byte [ebx + 3], 0xa
jne 0x485700
cmp byte [ebx + 4], 0x53
jne 0x485700
cmp byte [ebx + 5], 0x21
jne 0x485700
push 0x40
push 0x485880
push 0x485894
push 0
call sub.user32.dll_MessageBoxA_1
inc ebx
dec esi
jne 0x485692
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485736
lea eax, [ebp - 0xdc0]
mov edx, 3
call fcn.00403f1c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403f1c
ret