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

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0xc0
movzx eax, byte [0x6c1450b0]
and eax, 8
test byte [ebx + 0x13], 8
je 0x6c10c000
test al, al
jne 0x6c10c138
mov eax, dword [ebx + 0x44]
xor ecx, ecx
mov edx, 0x11
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.6c10adc0
test eax, eax
jne 0x6c10c0b0
xor eax, eax
add esp, 0xc0
pop ebx
pop esi
pop edi
ret
test al, al
jne 0x6c10c108
movzx edx, word [ebx + 0x66]
lea esi, [esp + 0x40]
mov eax, dword [ebx + 0x68]
mov dword [esp + 8], 0x6c147ae0
mov dword [esp + 4], 0x40
mov dword [esp], esi
movzx ecx, dh
movzx edx, dl
mov dword [esp + 0x1c], edx
mov edx, eax
shr edx, 0x18
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edx
mov edx, eax
shr edx, 0x10
movzx edx, dl
mov dword [esp + 0x14], edx
movzx edx, ah
movzx eax, al
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
call fcn.6c109f30
mov eax, dword [ebx + 0x44]
mov ecx, esi
mov edx, 5
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.6c10b060
test eax, eax
je 0x6c10bff1
mov edx, dword [ebx + 0x14]
mov eax, ebx
call fcn.6c10aab0
test eax, eax
je 0x6c10bff1
cmp eax, 0xc8
jne 0x6c10c0cd
mov eax, 1
jmp 0x6c10bff3
mov edx, dword [ebx + 0x14]
mov eax, ebx
call fcn.6c10aab0
test eax, eax
je 0x6c10bff1
cmp eax, 0xe3
je 0x6c10c168
mov edx, 0x2efe
cmp eax, 0x1aa
je 0x6c10c0f7
mov edx, 0x2eef
cmp eax, 0x212
je 0x6c10c0f7
cmp eax, 0x1a9
mov edx, 0x2efd
mov eax, 0x2ee3
cmovne edx, eax
mov dword [esp], edx
call fcn.6c12c120
jmp 0x6c10bff1
mov dword [esp + 0xc], 0x6c147b7c
mov dword [esp + 8], str.FTP_SendPort
mov dword [esp + 4], 0x6c1450b0
mov dword [esp], 3
call fcn.6c10a080
jmp 0x6c10c008
mov dword [esp + 0xc], 0x6c147b7c
mov dword [esp + 8], str.FTP_DoPassive
mov dword [esp + 4], 0x6c1450b0
mov dword [esp], 3
call fcn.6c10a080
jmp 0x6c10bfc3
call fcn.6c12e3b0
lea esi, [eax + 4]
movzx eax, byte [eax + 4]
lea edx, [eax - 0x30]
cmp dl, 9
ja 0x6c10c18f
jmp 0x6c10c1d0
movzx eax, byte [esi + 1]
add esi, 1
lea edx, [eax - 0x30]
cmp dl, 9
jbe 0x6c10c1d0
test al, al
jne 0x6c10c180
test byte [0x6c1450b0], 2
je 0x6c10bff1
mov dword [esp + 0xc], str.no_address_found_in_response__aborting_n
mov dword [esp + 8], str.FTP_DoPassive
mov dword [esp + 4], 0x6c1450b0
mov dword [esp], 1
call fcn.6c10a080
jmp 0x6c10bff1
test al, al
je 0x6c10c193
lea eax, [esp + 0x54]
mov dword [esp + 4], str._d__d__d__d__d__d
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x48]
lea edi, [esp + 0x40]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x44]
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [esp], esi
call fcn.6c109980
cmp eax, 6
je 0x6c10c258
test byte [0x6c1450b0], 2
je 0x6c10bff1
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.unknown_response_address_format__s__aborting_n
mov dword [esp + 8], str.FTP_DoPassive
mov dword [esp + 4], 0x6c1450b0
mov dword [esp], 1
call fcn.6c10a080
jmp 0x6c10bff1
lea edx, [esp + 0x58]
mov eax, edi
and dword [eax], 0xff
and dword [eax + 4], 0xff
add eax, 8
cmp edx, eax
jne 0x6c10c25e
mov eax, dword [ebx + 0x54]
movzx edx, byte [esp + 0x40]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x5c]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x60]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
mov dword [esp + 0x3c], eax
movzx eax, byte [esp + 0x48]
mov ah, byte [esp + 0x4c]
mov word [esp + 0x36], ax
movzx eax, byte [esp + 0x44]
shl eax, 8
or eax, edx
movzx edx, byte [esp + 0x54]
shl eax, 8
or eax, edx
movzx edx, byte [esp + 0x50]
shl eax, 8
or eax, edx
mov dword [esp + 0x32], eax
call dword [sym.imp.ws2_32.dll_socket]
sub esp, 0xc
mov esi, eax
cmp eax, 0xffffffff
je 0x6c10bff1
lea eax, [esp + 0x30]
mov dword [esp + 8], 0x10
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.ws2_32.dll_connect]
sub esp, 0xc
test eax, eax
jne 0x6c10c30f
mov dword [ebx + 0x4c], esi
jmp 0x6c10c0a3
test byte [0x6c1450b0], 2
jne 0x6c10c329
mov dword [esp], esi
call dword [sym.imp.ws2_32.dll_closesocket]
sub esp, 4
jmp 0x6c10bff1
mov dword [esp + 0xc], str.cant_connect_passive_FTP_data_port._n
mov dword [esp + 8], str.FTP_DoPassive
mov dword [esp + 4], 0x6c1450b0
mov dword [esp], 1
call fcn.6c10a080
jmp 0x6c10c318