Function at 0x469030
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
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 dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404450
mov eax, dword [ebp - 8]
call fcn.00404450
xor eax, eax
push ebp
push 0x4692b8
push dword fs:[eax]
mov dword fs:[eax], esp
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 ebx, eax
mov edx, 0x4692d0
mov eax, dword [ebp - 4]
call fcn.004045a4
test eax, eax
jne 0x4690c7
lea edx, [ebp - 0x5b4]
mov eax, dword [ebp - 4]
call fcn.00469410
mov edx, dword [ebp - 0x5b4]
lea eax, [ebp - 4]
call fcn.00404038
mov eax, dword [ebp - 4]
call fcn.00404460
push eax
call sub.wsock32.dll_gethostbyname
mov edi, eax
test edi, edi
jne 0x4690f1
mov ecx, 0x4692e0
mov dl, 1
mov eax, dword [0x4071c0]
call fcn.0040b87c
call fcn.00403958
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402bd4
mov word [ebp - 0x20], 2
push esi
call sub.wsock32.dll_htons
mov word [ebp - 0x1e], ax
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push 0x10
lea eax, [ebp - 0x20]
push eax
push ebx
call sub.wsock32.dll_connect
push 0x46930c
push dword [ebp - 8]
push 0x46931c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404320
push dword [ebp - 0xc]
push 0x469330
push dword [ebp - 4]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404320
cmp esi, 0x50
je 0x469185
push dword [ebp - 0xc]
push 0x46934c
lea edx, [ebp - 0x5b8]
mov eax, esi
call fcn.004082a4
push dword [ebp - 0x5b8]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404320
push dword [ebp - 0xc]
push 0x469358
push dword [ebp - 8]
push 0x469364
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00404320
lea eax, [ebp - 0xc]
mov edx, 0x469370
call fcn.00404268
push dword [ebp - 0xc]
push 0x4693c8
push dword [ebp - 4]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404320
cmp esi, 0x50
je 0x4691f4
push dword [ebp - 0xc]
push 0x46934c
lea edx, [ebp - 0x5bc]
mov eax, esi
call fcn.004082a4
push dword [ebp - 0x5bc]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404320
lea eax, [ebp - 0xc]
mov edx, 0x469364
call fcn.00404268
lea eax, [ebp - 0xc]
mov edx, 0x4693d8
call fcn.00404268
lea eax, [ebp - 0xc]
mov edx, 0x4693f4
call fcn.00404268
lea eax, [ebp - 0xc]
mov edx, 0x469364
call fcn.00404268
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404260
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404460
push eax
push ebx
call sub.wsock32.dll_send
push 0
push 0x400
lea eax, [ebp - 0x420]
push eax
push ebx
call sub.wsock32.dll_recv
cmp eax, 1
jl 0x469277
lea edx, [ebp - 0x420]
lea ecx, [ebp - 0xc]
xchg ecx, eax
call fcn.00404090
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00404268
jmp 0x469242
push ebx
call sub.wsock32.dll_closesocket
call sub.wsock32.dll_WSACleanup
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00403ff4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4692bf
lea eax, [ebp - 0x5bc]
mov edx, 3
call fcn.00403fc4
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403fc4
ret