Function at 0x40efa4
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x42
push 0
push 0
dec ecx
jne 0x40efac
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], eax
mov ebx, 0x41bb50
mov esi, 0x41bae4
mov edi, 0x41bb4c
xor eax, eax
push ebp
push 0x40f4ee
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00411408
cmp byte [0x41a1fc], 0
jne 0x40f006
lea eax, [ebp - 0x1b4]
mov ecx, dword [0x41bb88]
mov edx, 0x40f508
call fcn.00403968
mov eax, dword [ebp - 0x1b4]
call fcn.00418648
mov byte [ebp - 9], 0
lea eax, [ebp - 0x1a0]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, 0x41bb14
mov edx, 0x40f518
call fcn.004037f8
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 4], eax
mov word [ebp - 0x1b0], 2
push 0x19
call sub.wsock32.dll_htons
mov word [ebp - 0x1ae], ax
lea edx, [ebp - 0x1b8]
mov eax, dword [0x41bb7c]
call fcn.004061dc
mov edx, dword [ebp - 0x1b8]
mov eax, 0x41bb80
call fcn.004037f8
mov eax, dword [0x41bb80]
call fcn.0040391c
cmp eax, 5
jge 0x40f0c1
push 0x40f54c
push dword [0x41bb7c]
push 0x40f560
lea edx, [ebp - 0x1c0]
xor eax, eax
call fcn.00406314
push dword [ebp - 0x1c0]
lea eax, [ebp - 0x1bc]
mov edx, 4
call fcn.004039dc
mov eax, dword [ebp - 0x1bc]
call fcn.00418648
jmp 0x40f4c8
mov eax, dword [0x41bb80]
call fcn.00403b1c
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x1ac], eax
push 0x10
lea eax, [ebp - 0x1b0]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_connect
mov dword [ebx], eax
cmp dword [ebx], 0xffffffff
jne 0x40f12b
lea edx, [ebp - 0x1c8]
xor eax, eax
call fcn.00406314
mov ecx, dword [ebp - 0x1c8]
lea eax, [ebp - 0x1c4]
mov edx, 0x40f56c
call fcn.00403968
mov eax, dword [ebp - 0x1c4]
call fcn.00418648
lea eax, [ebp - 4]
call fcn.00406304
jmp 0x40f4c8
mov eax, 0x41bb14
mov edx, 0x40f57c
call fcn.004037f8
push ebp
lea eax, [ebp - 0x1cc]
push eax
xor ecx, ecx
mov dl, 1
xor eax, eax
call fcn.0040eb58
pop ecx
push ebp
lea eax, [ebp - 0x1d0]
push eax
mov ecx, 0x40f630
mov dl, 1
mov eax, 0x40f63c
call fcn.0040eb58
pop ecx
mov eax, dword [ebp - 0x1d0]
mov edx, 0x40f654
call fcn.00403a68
je 0x40f4c8
push ebp
lea eax, [ebp - 0x1d4]
push eax
mov ecx, 0x40f660
mov dl, 1
mov eax, 0x40f66c
call fcn.0040eb58
pop ecx
mov eax, dword [ebp - 0x1d4]
mov edx, 0x40f654
call fcn.00403a68
je 0x40f4c8
push ebp
lea eax, [ebp - 0x1d8]
push eax
mov ecx, 0x40f680
mov dl, 1
mov eax, dword [0x41bb84]
call fcn.0040eb58
pop ecx
mov eax, dword [ebp - 0x1d8]
mov edx, 0x40f654
call fcn.00403a68
je 0x40f4c8
lea eax, [ebp - 0x10]
mov edx, 0x40f68c
call fcn.0040383c
push ebp
lea eax, [ebp - 0x1dc]
push eax
push 0x40f69c
push dword [ebp - 0x10]
push dword [0x41bb88]
lea eax, [ebp - 0x1e0]
mov edx, 3
call fcn.004039dc
mov eax, dword [ebp - 0x1e0]
mov ecx, 0x40f630
mov dl, 1
call fcn.0040eb58
pop ecx
mov eax, dword [ebp - 0x1dc]
mov edx, 0x40f654
call fcn.00403a68
je 0x40f4c8
push ebp
lea eax, [ebp - 0x1e4]
push eax
lea eax, [ebp - 0x1e8]
mov ecx, dword [0x41baec]
mov edx, 0x40f6ac
call fcn.00403968
mov eax, dword [ebp - 0x1e8]
mov ecx, 0x40f630
mov dl, 1
call fcn.0040eb58
pop ecx
push ebp
lea eax, [ebp - 0x1ec]
push eax
lea eax, [ebp - 0x1f0]
mov ecx, dword [0x41baf4]
mov edx, 0x40f6ac
call fcn.00403968
mov eax, dword [ebp - 0x1f0]
mov ecx, 0x40f630
mov dl, 1
call fcn.0040eb58
pop ecx
mov eax, dword [ebp - 0x1ec]
mov edx, 0x40f654
call fcn.00403a68
je 0x40f4c8
push ebp
lea eax, [ebp - 0x1f4]
push eax
mov ecx, 0x40f6c0
mov dl, 1
mov eax, 0x40f6cc
call fcn.0040eb58
pop ecx
mov eax, dword [ebp - 0x1f4]
mov edx, 0x40f654
call fcn.00403a68
je 0x40f4c8
push 0x40f6dc
lea edx, [ebp - 0x1f8]
mov eax, 0x8a
call fcn.00405424
push dword [ebp - 0x1f8]
push 0x40f560
push dword [0x41baf8]
push 0x40f560
lea edx, [ebp - 0x1fc]
mov eax, dword [ebp - 8]
call fcn.0040e880
push dword [ebp - 0x1fc]
lea eax, [ebp - 0x10]
mov edx, 6
call fcn.004039dc
mov eax, dword [ebp - 0x10]
call fcn.0040391c
mov dword [edi], eax
mov dword [ebx], 1
mov eax, 0x41bb14
mov edx, 0x40f6ec
call fcn.004037f8
mov eax, esi
mov edx, 0x4c
call fcn.00403c4c
jmp 0x40f393
lea eax, [ebp - 0x10]
call fcn.00403b74
mov edx, dword [ebx]
lea eax, [eax + edx - 1]
push eax
mov eax, esi
call fcn.00403b74
mov ecx, 0x4c
pop edx
call fcn.00404a60
push ebp
lea eax, [ebp - 0x200]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [esi]
call fcn.0040eb58
pop ecx
add dword [ebx], 0x4c
mov eax, dword [edi]
sub eax, 0x4c
cmp eax, dword [ebx]
jge 0x40f35b
mov eax, 0x41bb14
mov edx, 0x40f794
call fcn.004037f8
mov eax, dword [edi]
sub eax, dword [ebx]
inc eax
mov dword [edi], eax
mov eax, esi
mov edx, dword [edi]
call fcn.00403c4c
mov eax, esi
call fcn.00403b74
mov ecx, 0x2b
mov edx, dword [edi]
call fcn.00402bd8
lea eax, [ebp - 0x10]
call fcn.00403b74
mov edx, dword [ebx]
lea eax, [eax + edx - 1]
push eax
mov eax, esi
call fcn.00403b74
mov ecx, dword [edi]
pop edx
call fcn.00404a60
push ebp
lea eax, [ebp - 0x204]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [esi]
call fcn.0040eb58
pop ecx
push ebp
lea eax, [ebp - 0x208]
push eax
mov ecx, 0x40f630
mov dl, 1
mov eax, 0x40f858
call fcn.0040eb58
pop ecx
mov edx, dword [ebp - 0x208]
lea eax, [ebp - 0x10]
call fcn.0040383c
lea eax, [ebp - 0x10]
push eax
mov ecx, 3
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00403b7c
push ebp
lea eax, [ebp - 0x20c]
push eax
mov ecx, 0x40f630
mov dl, 1
mov eax, 0x40f864
call fcn.0040eb58
pop ecx
push ebp
lea eax, [ebp - 0x210]
push eax
mov ecx, 0x40f874
mov dl, 1
mov eax, 0x40f880
call fcn.0040eb58
pop ecx
lea eax, [ebp - 4]
call fcn.00406304
mov eax, dword [ebp - 0x10]
mov edx, 0x40f630
call fcn.00403a68
jne 0x40f4c8
mov eax, 0x41bb14
mov edx, 0x40f890
call fcn.004037f8
mov byte [ebp - 9], 1
cmp byte [0x41a1fc], 0
jne 0x40f4c3
lea eax, [ebp - 0x214]
mov ecx, dword [0x41baec]
mov edx, 0x40f908
call fcn.00403968
mov eax, dword [ebp - 0x214]
call fcn.00418648
call fcn.0040b124
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f4f5
lea eax, [ebp - 0x214]
mov edx, 0x19
call fcn.004037c8
lea eax, [ebp - 0x10]
call fcn.004037a4
ret