Function at 0x4016e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Initialize winsock library
Receive data
Receive data on socket
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x314
mov eax, dword [0x40b080]
push ebx
push esi
mov dword [esp + 0x318], eax
push edi
lea eax, [esp + 0x188]
push eax
xor ebx, ebx
push 0x202
mov dword [esp + 0x14], ebx
call sub.WS2_32.dll_WSAStartup
mov edi, str.129.132.2.21
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], str.129.6.15.28
mov dword [esp + 0x38], str.129.6.15.29
mov dword [esp + 0x3c], str.132.163.4.101
mov dword [esp + 0x40], str.132.163.4.102
mov dword [esp + 0x44], str.132.163.4.103
mov dword [esp + 0x48], str.128.138.140.44
mov dword [esp + 0x4c], str.192.43.244.18
mov dword [esp + 0x50], str.131.107.1.10
mov dword [esp + 0x54], str.66.243.43.21
mov dword [esp + 0x58], str.216.200.93.8
mov dword [esp + 0x5c], str.208.184.49.9
mov dword [esp + 0x60], str.207.126.98.204
mov dword [esp + 0x64], str.207.200.81.113
mov dword [esp + 0x68], str.205.188.185.33
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x10], ecx
push 6
push 1
push 2
call sub.WS2_32.dll_socket
push edi
mov esi, eax
call sub.WS2_32.dll_inet_addr
push 0x25
mov dword [esp + 0x180], eax
mov word [esp + 0x17c], 2
call sub.WS2_32.dll_htons
push 0x10
lea edx, [esp + 0x17c]
push edx
push esi
mov word [esp + 0x186], ax
call sub.WS2_32.dll_connect
lea eax, [esp + 0x28]
push eax
push ebx
lea ecx, [esp + 0x78]
push ecx
push ebx
mov edi, 1
push ebx
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], edi
mov dword [esp + 0x3c], 5
mov dword [esp + 0x40], ebx
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
je 0x40183f
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
lea eax, [esp + 0x7c]
push eax
push ebx
mov dword [esp + 0x3c], edi
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
je 0x40183f
push ebx
push 4
lea ecx, [esp + 0x14]
push ecx
push esi
call sub.WS2_32.dll_recv
cmp eax, 4
je 0x401873
push esi
call sub.WS2_32.dll_closesocket
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 4]
add eax, 4
cmp edi, ebx
mov dword [esp + 0x10], eax
jne 0x401798
call sub.WS2_32.dll_WSACleanup
mov ecx, dword [esp + 0x31c]
call fcn.004032ce
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0xc]
push edx
call sub.WS2_32.dll_ntohl
mov dword [esp + 0xc], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov word [esp + 0x20], 0x76c
mov word [esp + 0x22], di
mov word [esp + 0x26], di
mov word [esp + 0x28], bx
mov word [esp + 0x2a], bx
mov word [esp + 0x2c], bx
mov word [esp + 0x2e], bx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov edx, 0x989680
mul edx
add ecx, eax
lea eax, [esp + 0x18]
mov dword [esp + 0x10], ecx
push eax
lea ecx, [esp + 0x14]
adc ebx, edx
push ecx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetSystemTime]
push esi
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
mov ecx, dword [esp + 0x31c]
call fcn.004032ce
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret