Function at 0x407c9c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4080ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0x8ccc
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 0x8e60], eax
mov eax, dword [ebp - 4]
mov word [eax + 0x8cbc], 2
push 0x1a0b
call sub.wsock32.dll_htons
mov edx, dword [ebp - 4]
mov word [edx + 0x8cbe], ax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0040670c
mov eax, dword [ebp - 8]
call fcn.004040fc
push eax
call sub.wsock32.dll_inet_addr
mov edx, dword [ebp - 4]
mov dword [edx + 0x8cc0], eax
push 0x10
mov eax, dword [ebp - 4]
add eax, 0x8cbc
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8e60]
push eax
call sub.wsock32.dll_connect
test eax, eax
jne 0x4080bf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8e5c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x8e60]
mov dword [eax*4 + 0x40fb3c], edx
lea eax, [ebp - 0xc]
call fcn.0040690c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add eax, 8
call fcn.00403dd4
call fcn.00402798
mov eax, 6
call fcn.00402d14
cmp eax, 5
ja case.default.0x407d8e
jmp dword [eax*4 + 0x407d95]
push 0x408104
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x408114
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x408120
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x40812c
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x408114
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x40813c
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x40814c
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x408164
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0xf
call fcn.00403fc4
jmp case.default.0x407d8e
push 0x408104
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x408114
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x408120
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x40812c
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x408114
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x40813c
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x408170
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x408164
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0xf
call fcn.00403fc4
jmp case.default.0x407d8e
push 0x408104
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x408114
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x408120
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x40812c
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x408114
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x40813c
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x408188
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x408164
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0xf
call fcn.00403fc4
jmp case.default.0x407d8e
push 0x408104
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x408114
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x408120
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x40812c
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x408114
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x40813c
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x4081a0
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x408164
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0xf
call fcn.00403fc4
jmp case.default.0x407d8e
push 0x408104
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x408114
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x408120
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x40812c
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x408114
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x40813c
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x4081b8
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x408164
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0xf
call fcn.00403fc4
jmp case.default.0x407d8e
push 0x408104
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x408114
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x408120
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x40812c
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x408114
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x40813c
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x40813c
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x408164
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0xf
call fcn.00403fc4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x8e60]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
jmp loc.00419135
call sub.wsock32.dll_WSACleanup
push 0x7530
call sub.kernel32.dll_Sleep
jmp 0x407cb9