Function at 0x484eb0
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, 0xfffff004
push eax
add esp, 0xfffffe30
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x11cc], eax
mov dword [ebp - 0x11d0], eax
mov dword [ebp - 0x11c8], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x485191
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x11c4]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov esi, 0x4851a0
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov word [ebp - 0x1034], 2
push 0x50
call sub.wsock32.dll_htons
mov word [ebp - 0x1032], ax
push esi
call sub.wsock32.dll_inet_addr
mov edi, eax
mov dword [ebp - 0x1030], edi
inc edi
jne 0x484f54
push esi
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x48515b
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1030], eax
push 0x10
lea eax, [ebp - 0x1034]
push eax
push ebx
call sub.wsock32.dll_connect
test eax, eax
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_GetLocalTime
pushal
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], eax
popal
lea ecx, [ebp - 0x1c]
mov edx, 0x10
mov eax, dword [ebp - 0x14]
call fcn.00484000
lea edx, [ebp - 0x11c8]
mov eax, dword [0x48b120]
mov eax, dword [eax + 0x330]
call fcn.00437404
mov eax, dword [ebp - 0x11c8]
lea edx, [ebp - 0x18]
call fcn.0040802c
mov eax, dword [ebp - 0x18]
call fcn.004041b8
lea eax, [ebp - 0x421]
xor ecx, ecx
mov edx, 0x401
call fcn.00402bbc
push dword [ebp - 0x20]
push 0x4851b8
push dword [ebp - 0x18]
push 0x4851d4
push dword [ebp - 0x1c]
push 0x4851e4
push 0x4851f8
push 0x485204
push 0x485210
push 0x4851f8
push 0x485204
push 0x485224
push 0x4851f8
push 0x485204
push 0x485244
push 0x4851f8
push 0x485204
push 0x485270
push 0x4851f8
push 0x485204
push 0x485290
push 0x4851f8
push 0x485204
push 0x4851f8
push 0x485204
lea eax, [ebp - 0x20]
mov edx, 0x19
call fcn.00404278
mov eax, dword [ebp - 0x20]
call fcn.004041b8
mov ecx, eax
lea eax, [ebp - 0x421]
mov edx, dword [ebp - 0x20]
call fcn.00406b30
push 0
mov eax, dword [ebp - 0x20]
call fcn.004041b8
push eax
lea eax, [ebp - 0x421]
push eax
push ebx
call sub.wsock32.dll_send
push 0
push 0x12c
lea eax, [ebp - 0xc22]
push eax
push ebx
call sub.wsock32.dll_recv
mov esi, eax
push 0
push 0x400
lea eax, [ebp - 0x1023]
push eax
push ebx
call sub.wsock32.dll_recv
mov ebx, eax
lea edx, [ebp - 0x1023]
lea eax, [ebp - 0xc22]
add eax, esi
mov ecx, ebx
call fcn.00406b30
add esi, ebx
cmp esi, 0xa
jbe 0x485148
mov edx, esi
dec edx
test edx, edx
jb 0x485148
inc edx
xor ebx, ebx
lea eax, [ebp - 0xc22]
cmp byte [eax], 0xd
jne 0x485143
cmp byte [eax + 1], 0xa
jne 0x485143
cmp byte [eax + 2], 0xd
jne 0x485143
cmp byte [eax + 3], 0xa
jne 0x485143
cmp byte [eax + 4], 0x20
jne 0x485143
push 0x40
push 0x4852c8
lea ecx, [ebp - 0x11d0]
lea eax, [ebp - 0xc22]
add eax, ebx
add eax, 4
mov edx, 4
call fcn.0048406c
mov ecx, dword [ebp - 0x11d0]
lea eax, [ebp - 0x11cc]
mov edx, 0x4852d8
call fcn.00404204
mov eax, dword [ebp - 0x11cc]
call fcn.004043b8
push eax
push 0
call sub.user32.dll_MessageBoxA_1
call fcn.00484d9c
jmp 0x48515b
inc ebx
inc eax
dec edx
jne 0x4850d4
push 0x40
push 0x4852c8
push 0x4852e4
push 0
call sub.user32.dll_MessageBoxA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485198
lea eax, [ebp - 0x11d0]
mov edx, 2
call fcn.00403f1c
lea eax, [ebp - 0x11c8]
call fcn.00403ef8
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00403f1c
ret