Function at 0x5694e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6590d0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x74f8a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x38], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x3640]
push 0x3ff
push ebx
push edi
call fcn.00618760
add esp, 0xc
push str.recv___PASV
push edi
mov ecx, esi
call fcn.00566d00
cmp eax, ebx
jne 0x5698a0
push str.Reply_on_PASV:_n
mov ecx, esi
call fcn.0055b6c0
push edi
mov ecx, esi
call fcn.0055b6c0
cmp byte [edi], 0x32
je 0x5695e7
push 1
mov eax, dword [0x755af8]
push eax
mov ecx, esi
call fcn.0055bf00
mov ecx, dword [esi + 0x3204]
cmp dword [ecx + 0x244], ebx
je 0x5695b5
mov ecx, esi
call fcn.00568970
mov dword [esi + 0x9c], 0xe
mov ecx, dword [0x755a68]
push ecx
mov ecx, dword [esi + 0xac]
call fcn.005646e0
mov edx, dword [esi + 0x3204]
mov eax, 0x755a
mov dword [edx + 0x140], eax
jmp 0x5698a0
cmp dword [esi + 0x3224], ebx
jne 0x5695ce
push 2
call fcn.00570de0
mov dword [esi + 0x3224], 2
mov ecx, esi
call fcn.00567c60
cmp eax, ebx
jne 0x5698a0
mov eax, 0x753a
jmp 0x5698a0
cmp dword [esi + 0x3224], ebx
jne 0x569606
push 1
mov ecx, dword [esi + 0x3204]
call fcn.00570de0
mov dword [esi + 0x3224], 1
push 1
mov eax, dword [0x755afc]
push eax
mov ecx, esi
call fcn.0055bf00
lea edi, [esi + 0x3644]
mov dword [ebp - 0x54], edi
mov al, byte [edi]
test al, al
jne 0x56965c
push 1
mov ecx, dword [0x755a44]
push ecx
mov ecx, esi
call fcn.0055bf00
mov edx, dword [0x755a44]
push edx
mov ecx, dword [esi + 0xac]
call fcn.005646e0
mov ecx, dword [esi + 0x3204]
mov eax, 0x754f
mov dword [ecx + 0x140], eax
jmp 0x5698a0
movsx edx, al
push edx
call fcn.0061a05c
add esp, 4
test eax, eax
je 0x569870
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x5c]
push edx
push str._u__u__u__u__u__u
push edi
call fcn.00619a6e
add esp, 0x20
cmp eax, 6
jne 0x569870
push str.Extracting_address_OK_n
mov ecx, esi
call fcn.0055b6c0
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x31f8]
cmp eax, 0xffffffff
je 0x5696ca
push eax
call sub.WS2_32.dll_closesocket
mov dword [esi + 0x31f8], 0xffffffff
mov dword [ebp - 4], ebx
jmp 0x5696df
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi + 0x31f8], eax
cmp eax, 0xffffffff
jne 0x56974d
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
push edi
push str.Error_code___ld_n
lea eax, [ebp - 0x34]
push eax
call fcn.0061af5b
add esp, 0xc
push 1
mov ecx, dword [0x755a4c]
push ecx
mov ecx, esi
call fcn.0055bf00
lea edx, [ebp - 0x34]
push edx
mov ecx, esi
call fcn.0055b6c0
mov eax, dword [0x755a4c]
push eax
mov ecx, dword [esi + 0xac]
call fcn.005646e0
mov ecx, dword [esi + 0x3204]
mov dword [ecx + 0x140], edi
mov eax, edi
jmp 0x5698a0
mov dword [ebp - 0x58], 1
lea edx, [ebp - 0x58]
push edx
push 0x8004667e
push eax
call sub.WS2_32.dll_ioctlsocket
lea edi, [esi + 0x320c]
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov eax, 2
mov word [edi], ax
movzx ecx, byte [ebp - 0x5c]
mov byte [esi + 0x3210], cl
movzx edx, byte [ebp - 0x50]
mov byte [esi + 0x3211], dl
movzx eax, byte [ebp - 0x48]
mov byte [esi + 0x3212], al
movzx ecx, byte [ebp - 0x3c]
mov byte [esi + 0x3213], cl
movzx edx, byte [ebp - 0x40]
mov byte [esi + 0x320e], dl
movzx eax, byte [ebp - 0x44]
mov byte [esi + 0x320f], al
push 1
mov ecx, dword [0x755ab0]
push ecx
mov ecx, esi
call fcn.0055bf00
mov eax, dword [esi + 0x194]
test eax, eax
je 0x56982e
mov bl, byte [eax + 0x15c]
test bl, bl
je 0x569830
mov eax, dword [eax + 0x140]
push 1
lea edx, [ebp - 0x4c]
push edx
push eax
mov ecx, esi
call fcn.0055c0e0
test eax, eax
jne 0x5698a0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x20], eax
mov ecx, 2
mov word [ebp - 0x24], cx
mov edx, dword [esi + 0x194]
mov eax, dword [edx + 0x144]
push eax
call sub.WS2_32.dll_htons
mov word [ebp - 0x22], ax
push 0x10
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [esi + 0x31f8]
push ecx
jmp 0x56983a
xor bl, bl
push 0x10
push edi
mov edx, dword [esi + 0x31f8]
push edx
call sub.WS2_32.dll_connect
mov ecx, esi
call fcn.0055b8e0
push eax
mov ecx, dword [esi + 0xc0]
call fcn.005692b0
mov ecx, esi
call fcn.0055b910
movzx eax, bl
neg eax
sbb eax, eax
and eax, 0x19
add eax, 8
mov dword [esi + 0x9c], eax
xor eax, eax
jmp 0x5698a0
inc edi
jmp 0x56961b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0061807e
mov esp, ebp
pop ebp
ret