Function at 0x1006fb34
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, 0xfffffa40
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x5c0], ecx
mov dword [ebp - 0x5bc], ecx
mov dword [ebp - 0x5b8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.100045b4
xor eax, eax
push ebp
push 0x1006fe84
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x1006fe51
lea eax, [ebp - 4]
mov ecx, 7
mov edx, 1
call fcn.10004664
mov edx, dword [ebp - 4]
mov eax, 0x1006fe9c
call fcn.10004708
test eax, eax
jle 0x1006fc31
lea eax, [ebp - 0xc]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x1006fe9c
call fcn.10004708
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.10004624
mov eax, dword [ebp - 0xc]
call fcn.100043c4
mov ecx, eax
inc ecx
lea eax, [ebp - 4]
mov edx, 1
call fcn.10004664
lea eax, [ebp - 0x5b8]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x1006fea8
call fcn.10004708
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.10004624
mov eax, dword [ebp - 0x5b8]
call fcn.1006fa14
mov edi, eax
mov edx, dword [ebp - 4]
mov eax, 0x1006fea8
call fcn.10004708
mov ecx, eax
lea eax, [ebp - 4]
mov edx, 1
call fcn.10004664
jmp 0x1006fc73
lea eax, [ebp - 0xc]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x1006fea8
call fcn.10004708
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.10004624
mov edi, 0x50
mov edx, dword [ebp - 4]
mov eax, 0x1006fea8
call fcn.10004708
mov ecx, eax
lea eax, [ebp - 4]
mov edx, 1
call fcn.10004664
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.1000419c
mov eax, ebx
call fcn.10004104
lea eax, [ebp - 0x1a4]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor edx, edx
push ebp
push 0x1006fe4a
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov eax, dword [ebp - 0xc]
call fcn.100045c4
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1b4]
xor ecx, ecx
mov edx, 0x10
call fcn.10002cf0
mov word [ebp - 0x1b4], 2
push edi
call sub.wsock32.dll_htons
mov word [ebp - 0x1b2], ax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1b0], eax
push 0x10
lea eax, [ebp - 0x1b4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x1006fe37
push 0x1006feb4
push dword [ebp - 0x10]
push 0x1006fec4
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.10004484
push dword [ebp - 0x14]
push 0x1006fed8
push dword [ebp - 0xc]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.10004484
push dword [ebp - 0x14]
push 0x1006fe9c
lea edx, [ebp - 0x5bc]
mov eax, edi
call fcn.1006fa20
push dword [ebp - 0x5bc]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.10004484
push dword [ebp - 0x14]
push 0x1006fea8
push dword [ebp - 0x10]
push 0x1006fef4
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.10004484
push dword [ebp - 0x14]
push 0x1006ff00
push dword [ebp - 0xc]
push 0x1006fe9c
lea edx, [ebp - 0x5c0]
mov eax, edi
call fcn.1006fa20
push dword [ebp - 0x5c0]
push 0x1006fef4
lea eax, [ebp - 0x14]
mov edx, 6
call fcn.10004484
lea eax, [ebp - 0x14]
mov edx, 0x1006ff10
call fcn.100043cc
lea eax, [ebp - 0x14]
mov edx, 0x1006ff2c
call fcn.100043cc
lea eax, [ebp - 0x14]
mov edx, 0x1006fef4
call fcn.100043cc
push 0
mov eax, dword [ebp - 0x14]
call fcn.100043c4
push eax
mov eax, dword [ebp - 0x14]
call fcn.100045c4
push eax
push esi
call sub.wsock32.dll_send
push 0
push 0x400
lea eax, [ebp - 0x5b4]
push eax
push esi
call sub.wsock32.dll_recv
cmp eax, 1
jl 0x1006fe31
lea edx, [ebp - 0x5b4]
lea ecx, [ebp - 0x14]
xchg ecx, eax
call fcn.100041f4
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.100043cc
jmp 0x1006fdfd
push esi
call sub.wsock32.dll_closesocket
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1006fe51
call sub.wsock32.dll_WSACleanup
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1006fe8b
lea eax, [ebp - 0x5c0]
mov edx, 3
call fcn.10004128
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.10004128
lea eax, [ebp - 4]
call fcn.10004104
ret