Function at 0x403bd0
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.0040c915
cmp eax, 4
jne 0x403d24
cmp dword [0x418274], 0
jne 0x403c04
mov eax, dword [0x418278]
mov dword [0x418274], eax
lea esi, [ebp - 0x28]
lea edi, [ebp - 0x2c]
mov eax, dword [0x418274]
test eax, eax
je 0x403e58
mov dword [esp + 8], esi
mov edx, dword [eax + 0x44]
add eax, 4
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004033a1
test al, al
je 0x403d0f
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 [esp + 8], 0x10
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [ebp - 0x2c], eax
call sub.WS2_32.dll_connect
sub esp, 0xc
test eax, eax
jne 0x403d07
mov eax, dword [0x418274]
mov edx, dword [eax + 0x88]
mov ecx, dword [edx + 0x44]
add edx, 4
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call fcn.00403ae4
test al, al
je 0x403d07
mov eax, dword [0x418274]
mov eax, dword [eax + 0x88]
mov dword [0x418274], eax
mov eax, dword [0x418274]
test eax, eax
je 0x403e58
mov edx, dword [eax + 0x88]
mov ecx, dword [ebp - 0x2c]
test edx, edx
je 0x403cfa
mov esi, dword [edx + 0x44]
add edx, 4
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00403ae4
test al, al
jne 0x403ca2
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.00403b94
jmp 0x403e0d
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
jmp 0x403cda
mov dword [esp], edi
call fcn.00403b94
mov eax, dword [0x418274]
mov eax, dword [eax + 0x88]
mov dword [0x418274], eax
jmp 0x403c0a
call fcn.0040c915
cmp eax, 2
jne 0x403df3
cmp dword [0x418274], 0
jne 0x403d45
mov eax, dword [0x418278]
mov dword [0x418274], eax
lea esi, [ebp - 0x28]
lea edi, [ebp - 0x2c]
mov eax, dword [0x418274]
test eax, eax
je 0x403e58
mov dword [esp + 8], esi
mov edx, dword [eax + 0x44]
add eax, 4
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004033a1
test al, al
je 0x403dde
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 [esp + 8], 0x10
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [ebp - 0x2c], eax
call sub.WS2_32.dll_connect
sub esp, 0xc
test eax, eax
je 0x403db9
mov dword [esp], edi
call fcn.00403b94
jmp 0x403dde
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov eax, dword [0x418274]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.00403ae4
test al, al
je 0x403daf
jmp 0x403e58
mov eax, dword [0x418274]
mov eax, dword [eax + 0x88]
mov dword [0x418274], eax
jmp 0x403d4b
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x28]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004033a1
test al, al
jne 0x403e12
or eax, 0xffffffff
jmp 0x403e5b
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.WS2_32.dll_socket
sub esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x2c], eax
je 0x403e0d
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 0x403cea
mov eax, dword [ebp - 0x2c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret