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

Disassembly:
push ebx
sub esp, 0x38
mov dword [esp + 0x1c], 0xffffffff
call fcn.0040cf99
cmp eax, 4
jne 0x408951
mov eax, dword [0x424308]
test eax, eax
jne 0x40893f
mov eax, dword [0x424304]
mov dword [0x424308], eax
jmp 0x40893f
mov eax, dword [0x424308]
mov eax, dword [eax + 0x44]
mov edx, dword [0x424308]
lea ecx, [edx + 4]
lea edx, [esp + 0x20]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00407c90
test al, al
je 0x40892f
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 + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], 0x10
lea edx, [esp + 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll_connect
sub esp, 0xc
test eax, eax
jne 0x408923
mov eax, dword [0x424308]
mov eax, dword [eax + 0x88]
mov ecx, dword [eax + 0x44]
mov eax, dword [0x424308]
mov eax, dword [eax + 0x88]
lea ebx, [eax + 4]
mov edx, dword [0x424308]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004086b4
test al, al
je 0x408923
mov eax, dword [0x424308]
mov eax, dword [eax + 0x88]
mov dword [0x424308], eax
jmp 0x408911
mov eax, dword [0x424308]
mov eax, dword [eax + 0x88]
test eax, eax
je 0x4088be
mov eax, dword [0x424308]
mov eax, dword [eax + 0x88]
mov ecx, dword [eax + 0x44]
mov eax, dword [0x424308]
mov eax, dword [eax + 0x88]
lea ebx, [eax + 4]
mov edx, dword [0x424308]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004086b4
xor eax, 1
test al, al
je 0x408901
lea eax, [esp + 0x1c]
mov dword [esp], eax
call fcn.00408d8a
mov eax, 0xffffffff
jmp 0x408ae2
mov edx, dword [0x424308]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004086b4
xor eax, 1
test al, al
je 0x408901
lea eax, [esp + 0x1c]
mov dword [esp], eax
call fcn.00408d8a
mov eax, 0xffffffff
jmp 0x408ae2
mov eax, dword [0x424308]
mov eax, dword [eax + 0x88]
mov dword [0x424308], eax
mov eax, dword [0x424308]
test eax, eax
jne 0x408858
jmp 0x408ade
lea eax, [esp + 0x1c]
mov dword [esp], eax
call fcn.00408d8a
mov eax, dword [0x424308]
mov eax, dword [eax + 0x88]
mov dword [0x424308], eax
mov eax, dword [0x424308]
test eax, eax
jne 0x40878a
jmp 0x408ade
call fcn.0040cf99
cmp eax, 2
jne 0x408a4a
mov eax, dword [0x424308]
test eax, eax
jne 0x408a38
mov eax, dword [0x424304]
mov dword [0x424308], eax
jmp 0x408a38
mov eax, dword [0x424308]
mov eax, dword [eax + 0x44]
mov edx, dword [0x424308]
lea ecx, [edx + 4]
lea edx, [esp + 0x20]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00407c90
test al, al
je 0x408a28
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 + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], 0x10
lea edx, [esp + 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll_connect
sub esp, 0xc
test eax, eax
jne 0x408a1c
mov edx, dword [0x424308]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004086b4
test al, al
jne 0x408add
lea eax, [esp + 0x1c]
mov dword [esp], eax
call fcn.00408d8a
mov eax, dword [0x424308]
mov eax, dword [eax + 0x88]
mov dword [0x424308], eax
mov eax, dword [0x424308]
test eax, eax
jne 0x40897b
jmp 0x408ade
lea eax, [esp + 0x20]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.00407c90
xor eax, 1
test al, al
je 0x408a74
mov eax, 0xffffffff
jmp 0x408ae2
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 [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
jne 0x408aa7
mov eax, 0xffffffff
jmp 0x408ae2
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], 0x10
lea edx, [esp + 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll_connect
sub esp, 0xc
test eax, eax
je 0x408ade
lea eax, [esp + 0x1c]
mov dword [esp], eax
call fcn.00408d8a
mov eax, 0xffffffff
jmp 0x408ae2
nop
mov eax, dword [esp + 0x1c]
add esp, 0x38
pop ebx
ret