Function at 0x10001590
Capabilities:
Connect socket

Disassembly:
sub esp, 0xdc
push esi
xor eax, eax
push edi
mov ecx, 0x32
lea edi, [esp + 0x1c]
push eax
push 1
push 2
rep stosd dword es:[edi], eax
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x100015ee
mov eax, dword [esp + 0xf0]
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xe8]
push eax
push ecx
push edx
push str.FTP_Login:socket_error:ServerIP_s:UserID_s:Password_s
push 0x10017a3c
call fcn.1000895f
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
add esp, 0xdc
ret
xor eax, eax
push 0x15
mov dword [esp + 0x10], eax
mov word [esp + 0x10], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0xe8]
mov word [esp + 0xe], ax
push esi
call sub.WS2_32.dll_inet_addr
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push 0x10
push ecx
push edx
mov dword [esp + 0x1c], eax
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x10001673
mov eax, dword [esp + 0xf0]
mov ecx, dword [esp + 0xec]
push eax
push ecx
push esi
push str.FTP_Login:connect_error:ServerIP_s:UserID_s:Password_s
push 0x10017a3c
call fcn.1000895f
lea edx, [esp + 0x1c]
push edx
call fcn.10002bc0
add esp, 0x18
or eax, 0xffffffff
pop edi
pop esi
add esp, 0xdc
ret
mov ecx, dword [esp + 8]
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.10002290
add esp, 8
cmp eax, 0xffffffff
jne 0x100016b7
lea edx, [esp + 0x1c]
push edx
push str.FTP_Login:FTP_CommandReceive_error:Command_s
push 0x10017a3c
call fcn.1000895f
lea eax, [esp + 0x14]
push eax
call fcn.10002bc0
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
add esp, 0xdc
ret
lea ecx, [esp + 0x1c]
push ecx
call fcn.10002350
add esp, 4
cmp eax, 0xdc
je 0x100016d7
lea edx, [esp + 0x1c]
push edx
push str.FTP_Login:FTP_connect_error:Command_s
jmp 0x10001694
mov ecx, dword [esp + 0xec]
lea edx, [esp + 0x1c]
push ecx
push str.USER__s
push edx
call fcn.1000895f
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.100021f0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x10001711
lea edx, [esp + 0x1c]
push edx
push str.FTP_Login:FTP_CommandSend_error:Command_s
jmp 0x10001694
mov edx, dword [esp + 8]
lea ecx, [esp + 0x1c]
push ecx
push edx
call fcn.10002290
add esp, 8
cmp eax, 0xffffffff
jne 0x10001755
lea eax, [esp + 0x1c]
push eax
push str.FTP_Login:FTP_CommandReceive_error:Command_s
push 0x10017a3c
call fcn.1000895f
lea ecx, [esp + 0x14]
push ecx
call fcn.10002bc0
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
add esp, 0xdc
ret
lea edx, [esp + 0x1c]
push edx
call fcn.10002350
add esp, 4
sub eax, 0xe6
je 0x10001815
sub eax, 0x65
je 0x10001795
lea eax, [esp + 0x1c]
push eax
push str.B:FTP_Login:FTP_login_error:Command_s
push 0x10017a3c
call fcn.1000895f
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
add esp, 0xdc
ret
mov ecx, dword [esp + 0xf0]
lea edx, [esp + 0x1c]
push ecx
push str.PASS__s
push edx
call fcn.1000895f
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.100021f0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x100017cf
lea edx, [esp + 0x1c]
push edx
push str.FTP_Login:FTP_CommandSend_error:Command_s
jmp 0x1000177c
mov ecx, dword [esp + 8]
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.10002290
add esp, 8
cmp eax, 0xffffffff
jne 0x100017f2
lea edx, [esp + 0x1c]
push edx
push str.FTP_Login:FTP_CommandReceive_error:Command_s
jmp 0x1000177c
lea eax, [esp + 0x1c]
push eax
call fcn.10002350
add esp, 4
cmp eax, 0xe6
je 0x10001815
lea ecx, [esp + 0x1c]
push ecx
push str.FTP_Login:FTP_password_error:Command_s
jmp 0x1000177c
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xdc
ret