Function at 0x403cbc
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], 0xffffffff
call fcn.0040afae
cmp eax, 4
jne 0x403e1a
cmp dword [0x415274], 0
jne 0x403e02
mov eax, dword [0x415278]
mov dword [0x415274], eax
jmp 0x403e02
mov dword [esp + 8], esi
mov edx, dword [eax + 0x44]
mov dword [esp + 4], edx
add eax, 4
mov dword [esp], eax
call fcn.004031d4
test al, al
je 0x403df0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.WS2_32.dll_socket
sub esp, 0xc
mov dword [ebp - 0x2c], eax
mov dword [esp + 8], 0x10
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.WS2_32.dll_connect
sub esp, 0xc
test eax, eax
jne 0x403de8
mov eax, dword [0x415274]
mov edx, dword [eax + 0x88]
mov ecx, dword [edx + 0x44]
mov dword [esp + 0xc], ecx
add edx, 4
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.00403a0d
test al, al
je 0x403de8
jmp 0x403dca
mov edx, dword [eax + 0x88]
test edx, edx
mov ecx, dword [ebp - 0x2c]
je 0x403dc1
mov esi, dword [edx + 0x44]
mov dword [esp + 0xc], esi
add edx, 4
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00403a0d
test al, al
jne 0x403dca
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.00403c80
jmp 0x403f0e
mov dword [esp + 0xc], ebx
mov edx, dword [ebp + 8]
jmp 0x403d9d
mov eax, dword [0x415274]
mov eax, dword [eax + 0x88]
mov dword [0x415274], eax
mov eax, dword [0x415274]
test eax, eax
jne 0x403d86
jmp 0x403f59
mov dword [esp], edi
call fcn.00403c80
mov eax, dword [0x415274]
mov eax, dword [eax + 0x88]
mov dword [0x415274], eax
jmp 0x403e08
lea esi, [ebp - 0x28]
lea edi, [ebp - 0x2c]
mov eax, dword [0x415274]
test eax, eax
jne 0x403cf9
jmp 0x403f59
call fcn.0040afae
cmp eax, 2
jne 0x403ef4
cmp dword [0x415274], 0
jne 0x403edf
mov eax, dword [0x415278]
mov dword [0x415274], eax
jmp 0x403edf
mov dword [esp + 8], esi
mov edx, dword [eax + 0x44]
mov dword [esp + 4], edx
add eax, 4
mov dword [esp], eax
call fcn.004031d4
test al, al
je 0x403ecd
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.WS2_32.dll_socket
sub esp, 0xc
mov dword [ebp - 0x2c], eax
mov dword [esp + 8], 0x10
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.WS2_32.dll_connect
sub esp, 0xc
test eax, eax
je 0x403ea5
mov dword [esp], edi
call fcn.00403c80
jmp 0x403ecd
mov dword [esp + 0xc], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 8], edx
mov eax, dword [0x415274]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.00403a0d
test al, al
je 0x403e9b
jmp 0x403f59
mov eax, dword [0x415274]
mov eax, dword [eax + 0x88]
mov dword [0x415274], eax
jmp 0x403ee5
lea esi, [ebp - 0x28]
lea edi, [ebp - 0x2c]
mov eax, dword [0x415274]
test eax, eax
jne 0x403e44
jmp 0x403f59
lea esi, [ebp - 0x28]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov edx, dword [ebp + 8]
mov dword [esp], edx
call fcn.004031d4
test al, al
jne 0x403f13
or eax, 0xffffffff
jmp 0x403f5c
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.WS2_32.dll_socket
sub esp, 0xc
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
je 0x403f0e
mov dword [esp + 8], 0x10
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.WS2_32.dll_connect
sub esp, 0xc
test eax, eax
jne 0x403db1
mov eax, dword [ebp - 0x2c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret