Function at 0x405350
Capabilities:
Create directory
Delete directory
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4167d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], esi
call sub.MFC42.DLL_CString::CString
xor edi, edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x2c]
push eax
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00404e20
test eax, eax
je 0x40657f
mov dword [ebp - 0x18], edi
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov ebx, 0x4212bc
mov eax, dword [ebx]
mov edx, dword [ebp - 0x2c]
push eax
push edx
call edi
add esp, 8
test eax, eax
je 0x4053f0
mov edx, dword [ebp - 0x18]
add ebx, 0xc
inc edx
cmp ebx, 0x4213d0
mov dword [ebp - 0x18], edx
jl 0x4053b7
mov ebx, edx
cmp ebx, 0x17
jne 0x405423
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.500_Syntax_error__command_unrecognized.
jmp 0x406573
mov ebx, dword [ebp - 0x18]
lea eax, [ebx + ebx*2]
mov ecx, dword [eax*4 + 0x4212c0]
test ecx, ecx
je 0x4053db
mov ecx, dword [ebp - 0x20]
push 0x46ad80
push ecx
call edi
add esp, 8
test eax, eax
jne 0x4053db
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.501_Syntax_error
jmp 0x406573
cmp ebx, 1
jle 0x40543f
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x40543f
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.530_Please_log_in_with_USER_and_PASS_first.
jmp 0x406573
cmp ebx, 0x16
ja case.0x405448.8
jmp dword [ebx*4 + 0x4065ac]
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::MakeLower
lea edi, [esi + 0x30]
lea edx, [ebp - 0x20]
push edx
mov ecx, edi
mov dword [esi + 0x2c], 0
call fcn.004155a4
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x1c]
push eax
push ecx
mov ecx, esi
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CAsyncSocket::GetPeerName
mov eax, dword [esi + 0x28]
mov ebx, dword [ebp - 0x1c]
mov edi, dword [edi]
push ebx
mov edx, dword [eax + 0x70]
mov eax, dword [eax + 0x30]
push edi
push eax
mov ecx, dword [edx + 0x114]
mov edx, dword [ecx]
call dword [edx + 4]
push ecx
lea edx, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x28], esp
push edx
push str.331_Password_required_for
push ecx
call sub.MFC42.DLL_operator_1
mov ecx, esi
call fcn.00405220
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004154de
jmp 0x40657f
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4054e7
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.503_Bad_sequence_of_commands.
jmp 0x406573
lea ecx, [ebp - 0x58]
call fcn.00411df0
mov edx, dword [ebp - 0x20]
mov eax, dword [esi + 0x30]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
push ecx
push edx
push eax
mov ecx, 0x46ae28
call fcn.00412630
test eax, eax
je 0x40552e
push 0x421a48
lea ecx, [esi + 0x5c]
call fcn.004154e4
push ecx
mov dword [esi + 0x2c], 1
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.230_Logged_on
jmp 0x405539
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.530_Login_or_password_incorrect_
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00405220
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00411e80
jmp 0x40657f
mov eax, dword [esi + 0x30]
lea ecx, [ebp - 0x20]
lea edi, [esi + 0x5c]
push ecx
push edi
push eax
mov ecx, 0x46ae28
call fcn.00412d30
lea ecx, [ebp - 0x18]
mov ebx, eax
call sub.MFC42.DLL_CString::CString
mov eax, ebx
mov byte [ebp - 4], 4
sub eax, 0
je 0x4055bc
dec eax
je 0x4055a0
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push edx
push str.550_CWD_failed.___s_:_directory_not_found.
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
mov ecx, esp
mov dword [ebp - 0x24], esp
jmp 0x4055d5
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
push eax
push str.550_CWD_failed.___s_:_Permission_denied.
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
mov ecx, esp
mov dword [ebp - 0x24], esp
jmp 0x4055d5
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push eax
push str.250_CWD_successful.___s__is_current_directory.
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
mov ecx, esp
mov dword [ebp - 0x24], esp
lea edx, [ebp - 0x18]
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.00405220
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004154de
jmp 0x40657f
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x5c]
lea ecx, [ebp - 0x1c]
push eax
push str.257___s__is_current_directory.
push ecx
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.00405220
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004154de
jmp 0x40657f
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x20]
push 0x2c
push 0
lea ecx, [ebp - 0x18]
push eax
push ecx
mov byte [ebp - 4], 6
call sub.MFC42.DLL_AfxExtractSubString
test eax, eax
je 0x40570a
xor ebx, ebx
cmp ebx, 5
ja case.default.0x40566d
jmp dword [ebx*4 + 0x406608]
lea edi, [esi + 0x20]
lea edx, [ebp - 0x18]
push edx
mov ecx, edi
call fcn.004155a4
push 0x421968
mov ecx, edi
call sub.MFC42.DLL_CString::operator_1
jmp case.default.0x40566d
lea eax, [ebp - 0x18]
lea edi, [esi + 0x20]
push eax
jmp 0x4056a0
lea ecx, [ebp - 0x18]
lea edi, [esi + 0x20]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::operator
push 0x421968
mov ecx, edi
call sub.MFC42.DLL_CString::operator_1
jmp case.default.0x40566d
lea edx, [ebp - 0x18]
lea ecx, [esi + 0x20]
push edx
call sub.MFC42.DLL_CString::operator
jmp case.default.0x40566d
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
shl eax, 8
mov dword [esi + 0x1c], eax
jmp case.default.0x40566d
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, dword [esi + 0x1c]
add esp, 4
add ecx, eax
mov dword [esi + 0x1c], ecx
mov edx, dword [ebp - 0x20]
lea eax, [ebx + 1]
push 0x2c
mov ebx, eax
push eax
lea eax, [ebp - 0x18]
push edx
push eax
call sub.MFC42.DLL_AfxExtractSubString
test eax, eax
jne 0x405664
push ecx
mov dword [esi + 0x14], 0
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.200_Port_command_successful
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00405220
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004154de
jmp 0x40657f
mov ecx, esi
call fcn.004066a0
push 0x3c
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
mov byte [ebp - 4], 7
je 0x405761
push 0xffffffffffffffff
push esi
mov ecx, eax
call fcn.00406cd0
jmp 0x405763
xor eax, eax
push 0
push 0x3f
push 1
push 0
mov ecx, eax
mov byte [ebp - 4], 1
mov dword [esi + 0x24], eax
call sub.MFC42.DLL_CAsyncSocket::Create
test eax, eax
jne 0x405794
mov ecx, esi
call fcn.004066a0
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.421_Cant_create_socket
jmp 0x406573
mov eax, dword [esi + 0x24]
push 5
mov ecx, dword [eax + 4]
push ecx
call sub.WSOCK32.dll_listen
mov ecx, dword [esi + 0x24]
push 0x3f
call sub.MFC42.DLL_CAsyncSocket::AsyncSelect
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x18]
mov bl, 9
push edx
push eax
mov ecx, esi
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CAsyncSocket::GetSockName
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x24]
push ecx
mov ecx, dword [esi + 0x24]
push edx
call sub.MFC42.DLL_CAsyncSocket::GetSockName
push 0x421930
push 0x421968
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Replace
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov ecx, eax
mov byte [ebp - 4], 0xa
and ecx, 0xff
shr eax, 8
push ecx
push eax
push edx
lea eax, [ebp - 0x1c]
push str.227_Entering_Passive_Mode___s__d__d_
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea edx, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x14], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.00405220
lea ecx, [ebp - 0x1c]
mov dword [esi + 0x14], 1
mov byte [ebp - 4], bl
call fcn.004154de
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.004154de
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004154de
jmp 0x40657f
push ecx
lea ecx, [ebp - 0x20]
mov eax, esp
mov dword [ebp - 0x14], esp
push ecx
push str.200_Type_set_to
push eax
call sub.MFC42.DLL_operator_1
jmp 0x406578
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x4058b4
mov eax, dword [esi + 0x20]
push 0x46ad80
push eax
call edi
add esp, 8
test eax, eax
je 0x4058a4
cmp dword [esi + 0x1c], 0xffffffff
jne 0x4058b4
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.503_Bad_sequence_of_commands.
jmp 0x406573
mov edx, dword [ebp - 0x20]
push 0x46ad80
push edx
call edi
add esp, 8
test eax, eax
jne 0x4058d4
lea eax, [esi + 0x5c]
lea ecx, [ebp - 0x20]
push eax
call fcn.004155a4
jmp 0x40593b
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
lea edx, [esi + 0x5c]
push ecx
push 6
push ecx
mov bl, 0xb
mov ecx, esp
mov dword [ebp - 0x14], esp
push edx
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x30]
mov byte [ebp - 4], bl
call fcn.00406630
push eax
mov ecx, 0x46ae28
call fcn.004134b0
test eax, eax
jne 0x40592f
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x20]
call fcn.004155a4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004154de
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x20]
mov eax, dword [esi + 0x30]
lea edx, [ebp - 0x18]
mov bl, 0xe
push edx
push ecx
push eax
mov ecx, 0x46ae28
mov byte [ebp - 4], bl
call fcn.00412fc0
dec eax
je 0x405a23
dec eax
je 0x405a16
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x4059fe
push 0x3c
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
mov byte [ebp - 4], 0xf
je 0x40599a
push 0
push esi
mov ecx, eax
call fcn.00406cd0
mov edi, eax
jmp 0x40599c
xor edi, edi
push 0
push 0x3f
push 1
push 0
mov ecx, edi
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CAsyncSocket::Create
mov edx, dword [ebp - 0x18]
mov ecx, edi
push edx
call fcn.004076f0
push 0x3f
mov ecx, edi
call sub.MFC42.DLL_CAsyncSocket::AsyncSelect
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
push ecx
push eax
mov ecx, edi
mov dword [esi + 0x24], edi
call sub.MFC42.DLL_CAsyncSocket::Connect
test eax, eax
jne 0x4059f1
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4059f1
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.425_Cant_open_data_connection
jmp 0x405a2e
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.150_Opening_data_channel_for_directory_list.
jmp 0x405a2e
mov edx, dword [ebp - 0x18]
mov ecx, dword [esi + 0x24]
push edx
call fcn.004076f0
mov ecx, dword [esi + 0x24]
push 0
call fcn.00407720
jmp 0x405a3a
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Directory_not_found
jmp 0x405a2e
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Permission_denied
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00405220
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004154de
jmp 0x40657f
push 0x421870
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_1
mov bl, 0x10
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x30]
lea ecx, [ebp - 0x1c]
lea edi, [esi + 0x5c]
push ecx
push edi
push eax
mov ecx, 0x46ae28
mov byte [ebp - 4], 0x11
call fcn.00412d30
sub eax, 0
je 0x405ac2
dec eax
je 0x405aa6
dec eax
jne 0x405aeb
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push edx
push str.550_CWD_failed.___s_:_directory_not_found.
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
mov ecx, esp
mov dword [ebp - 0x14], esp
jmp 0x405adb
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
push str.550_CWD_failed.___s_:_Permission_denied.
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
mov ecx, esp
mov dword [ebp - 0x14], esp
jmp 0x405adb
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push eax
push str.250_CWD_successful.___s__is_current_directory.
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
mov ecx, esp
mov dword [ebp - 0x14], esp
lea edx, [ebp - 0x18]
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.00405220
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004154de
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004154de
jmp 0x40657f
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x405b36
mov eax, dword [esi + 0x20]
push 0x46ad80
push eax
call edi
add esp, 8
test eax, eax
je 0x405b26
cmp dword [esi + 0x1c], 0xffffffff
jne 0x405b36
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.503_Bad_sequence_of_commands.
jmp 0x406573
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x1c]
lea edx, [esi + 0x5c]
push eax
push 1
push ecx
mov bl, 0x12
mov ecx, esp
mov dword [ebp - 0x14], esp
push edx
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
mov byte [ebp - 4], 0x13
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x30]
mov byte [ebp - 4], bl
call fcn.00406630
push eax
mov ecx, 0x46ae28
call fcn.004134b0
dec eax
je 0x405c46
dec eax
je 0x405c39
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x405c21
push 0x3c
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
mov byte [ebp - 4], 0x15
je 0x405bbd
push 1
push esi
mov ecx, eax
call fcn.00406cd0
mov edi, eax
jmp 0x405bbf
xor edi, edi
push 0
push 0x3f
push 1
push 0
mov ecx, edi
mov byte [ebp - 4], bl
mov dword [esi + 0x24], edi
call sub.MFC42.DLL_CAsyncSocket::Create
push 0x3f
mov ecx, edi
call sub.MFC42.DLL_CAsyncSocket::AsyncSelect
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, edi
call fcn.004076f0
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
push edx
push eax
mov ecx, edi
call sub.MFC42.DLL_CAsyncSocket::Connect
test eax, eax
jne 0x405c14
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x405c14
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.425_Cant_open_data_connection
jmp 0x405c51
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.150_Opening_data_channel_for_file_transfer.
jmp 0x405c51
mov eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x24]
push eax
call fcn.004076f0
mov ecx, dword [esi + 0x24]
push 1
call fcn.00407720
jmp 0x405c5d
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_File_not_found
jmp 0x405c51
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Permission_denied
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00405220
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004154de
jmp 0x40657f
mov eax, dword [esi + 0x14]
cmp eax, 0xffffffff
jne 0x405c86
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.503_Bad_sequence_of_commands.
jmp 0x406573
test eax, eax
jne 0x405cb2
mov eax, dword [esi + 0x20]
push 0x46ad80
push eax
call edi
add esp, 8
test eax, eax
je 0x405ca2
cmp dword [esi + 0x1c], 0xffffffff
jne 0x405cb2
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.503_Bad_sequence_of_commands.
jmp 0x406573
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
lea edx, [esi + 0x5c]
push ecx
push 2
push ecx
mov byte [ebp - 4], 0x16
mov ecx, esp
mov dword [ebp - 0x14], esp
push edx
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
mov byte [ebp - 4], 0x17
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 0x16
call fcn.00406630
push eax
mov ecx, 0x46ae28
call fcn.004134b0
dec eax
je 0x405dc3
dec eax
je 0x405db6
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x405d9e
push 0x3c
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
mov byte [ebp - 4], 0x19
je 0x405d39
push 2
push esi
mov ecx, eax
call fcn.00406cd0
mov edi, eax
jmp 0x405d3b
xor edi, edi
push 0
push 0x3f
push 1
push 0
mov ecx, edi
mov byte [ebp - 4], 0x16
mov dword [esi + 0x24], edi
call sub.MFC42.DLL_CAsyncSocket::Create
push 0x3f
mov ecx, edi
call sub.MFC42.DLL_CAsyncSocket::AsyncSelect
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, edi
call fcn.004076f0
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
push edx
push eax
mov ecx, edi
call sub.MFC42.DLL_CAsyncSocket::Connect
test eax, eax
jne 0x405d91
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x405d91
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.425_Cant_open_data_connection
jmp 0x405dce
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.150_Opening_data_channel_for_file_transfer.
jmp 0x405dce
mov eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x24]
push eax
call fcn.004076f0
mov ecx, dword [esi + 0x24]
push 2
call fcn.00407720
jmp 0x405dda
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Filename_invalid
jmp 0x405dce
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Permission_denied
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00405220
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004154de
jmp 0x40657f
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
lea edx, [esi + 0x5c]
push ecx
push 1
push ecx
mov bl, 0x1a
mov ecx, esp
mov dword [ebp - 0x14], esp
push edx
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
mov byte [ebp - 4], 0x1b
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x30]
mov byte [ebp - 4], bl
call fcn.00406630
push eax
mov ecx, 0x46ae28
call fcn.004134b0
dec eax
je 0x405e9f
dec eax
je 0x405e92
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x170]
push ecx
push edx
call sub.MFC42.DLL_CFile::GetStatus
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x164]
lea ecx, [ebp - 0x1c]
push eax
push str.213__d
push ecx
mov byte [ebp - 4], 0x1d
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x14], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.00405220
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004154de
jmp 0x405eb6
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_File_not_found
jmp 0x405eaa
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Permission_denied
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00405220
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004154de
jmp 0x40657f
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x1c]
lea edx, [esi + 0x5c]
push eax
push 4
push ecx
mov ebx, 0x1e
mov ecx, esp
mov dword [ebp - 0x14], esp
push edx
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
mov byte [ebp - 4], 0x1f
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x30]
mov byte [ebp - 4], bl
call fcn.00406630
push eax
mov ecx, 0x46ae28
call fcn.004134b0
dec eax
je 0x405f6b
dec eax
je 0x405f5e
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x21
push ecx
call sub.MFC42.DLL_CFile::Remove
push ecx
mov dword [ebp - 4], ebx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.250_File_deleted_successfully
jmp 0x405f76
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_File_not_found
jmp 0x405f76
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Permission_denied
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00405220
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004154de
jmp 0x40657f
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
lea edx, [ebp - 0x1c]
lea eax, [esi + 0x5c]
push edx
push 4
push ecx
mov bl, 0x23
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push edx
mov byte [ebp - 4], 0x24
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x30]
mov byte [ebp - 4], bl
call fcn.00406630
push eax
mov ecx, 0x46ae28
call fcn.00413830
dec eax
je 0x40602f
dec eax
je 0x406022
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x406015
call sub.WSOCK32.dll_WSAGetLastError
push ecx
cmp eax, 0x91
mov ecx, esp
jne 0x40600b
mov dword [ebp - 0x14], esp
push str.550_Directory_not_empty.
jmp 0x40603a
mov dword [ebp - 0x14], esp
push str.450_Internal_error_deleting_the_directory.
jmp 0x40603a
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.250_Directory_deleted_successfully
jmp 0x40603a
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Directory_not_found
jmp 0x40603a
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Permission_denied
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00405220
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004154de
jmp 0x40657f
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
lea edx, [esi + 0x5c]
push ecx
push 5
push ecx
mov byte [ebp - 4], 0x26
mov ecx, esp
mov dword [ebp - 0x14], esp
push edx
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
mov byte [ebp - 4], 0x27
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 0x26
call fcn.00406630
push eax
mov ecx, 0x46ae28
call fcn.00413830
sub eax, 0
je 0x4061c8
dec eax
je 0x4061bb
sub eax, 2
je 0x4061ae
push 0x421758
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x18]
push 0x46ad80
push ecx
mov byte [ebp - 4], 0x29
call edi
add esp, 8
test eax, eax
je 0x406178
push 0x421758
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find
inc eax
lea edx, [ebp - 0x34]
push eax
push edx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x2a
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x29
call fcn.004154de
push 0x421758
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find
inc eax
lea ecx, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x2b
call fcn.004155a4
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x29
call fcn.004154de
mov ecx, dword [ebp - 0x1c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [ebp - 0x18]
push 0x46ad80
push edx
mov ebx, eax
call edi
add esp, 8
test eax, eax
jne 0x4060ea
jmp 0x40617b
mov ebx, dword [ebp - 0x14]
push ecx
test ebx, ebx
mov ecx, esp
jne 0x40618c
mov dword [ebp - 0x14], esp
push str.450_Internal_error_creating_the_directory.
jmp 0x406194
mov dword [ebp - 0x14], esp
push str.250_Directory_created_successfully
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00405220
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x26
call fcn.004154de
jmp 0x4061df
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Directoryname_not_valid
jmp 0x4061d3
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Cant_create_directory._Permission_denied
jmp 0x4061d3
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Directory_already_exists
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00405220
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004154de
jmp 0x40657f
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x18]
lea edi, [esi + 0x5c]
push eax
push 3
push ecx
mov byte [ebp - 4], 0x2c
mov ecx, esp
mov dword [ebp - 0x14], esp
push edi
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push edx
mov byte [ebp - 4], 0x2d
call sub.MFC42.DLL_CString::CString_2
lea ebx, [esi + 0x30]
mov byte [ebp - 4], 0x2c
mov ecx, ebx
call fcn.00406630
push eax
mov ecx, 0x46ae28
call fcn.004134b0
test eax, eax
jne 0x40627c
lea eax, [ebp - 0x18]
lea ecx, [esi + 0x54]
push eax
call fcn.004155a4
push ecx
mov dword [esi + 0x50], 1
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.350_File_exists__ready_for_destination_name.
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00405220
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004154de
jmp 0x40657f
lea ecx, [ebp - 0x18]
push ecx
push 3
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push edi
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push edx
mov byte [ebp - 4], 0x2f
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebx
mov byte [ebp - 4], 0x2c
call fcn.00406630
push eax
mov ecx, 0x46ae28
call fcn.00413830
sub eax, 0
je 0x4062d6
push ecx
dec eax
mov ecx, esp
je 0x4062cc
mov dword [ebp - 0x14], esp
push str.550_file_directory_not_found
jmp 0x4062f4
mov dword [ebp - 0x14], esp
push str.550_Permission_denied
jmp 0x4062f4
lea eax, [ebp - 0x18]
lea ecx, [esi + 0x54]
push eax
call fcn.004155a4
push ecx
mov dword [esi + 0x50], 0
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.350_Directory_exists__ready_for_destination_name.
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00405220
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004154de
jmp 0x40657f
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40632b
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.503_Bad_sequence_of_commands_
jmp 0x406573
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4063e7
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
lea edx, [ebp - 0x1c]
lea eax, [esi + 0x5c]
push edx
push 3
push ecx
mov bl, 0x31
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push edx
mov byte [ebp - 4], 0x32
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x30]
mov byte [ebp - 4], bl
call fcn.00406630
push eax
mov ecx, 0x46ae28
call fcn.004134b0
sub eax, 0
je 0x4063bf
dec eax
je 0x4063b2
mov ecx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x54]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push ecx
test eax, eax
mov ecx, esp
jne 0x4063a8
mov dword [ebp - 0x14], esp
push str.450_Internal_error_renaming_the_file
jmp 0x4063ca
mov dword [ebp - 0x14], esp
push str.250_file_renamed_successfully
jmp 0x4063ca
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Permission_denied
jmp 0x4063ca
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_file_exists
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00405220
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004154de
jmp 0x40657f
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
lea edx, [ebp - 0x1c]
lea eax, [esi + 0x5c]
push edx
push 3
push ecx
mov bl, 0x34
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push edx
mov byte [ebp - 4], 0x35
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x30]
mov byte [ebp - 4], bl
call fcn.00406630
push eax
mov ecx, 0x46ae28
call fcn.00413830
sub eax, 0
je 0x406482
dec eax
je 0x406475
sub eax, 2
je 0x406468
mov ecx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x54]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push ecx
test eax, eax
mov ecx, esp
jne 0x40645e
mov dword [ebp - 0x14], esp
push str.450_Internal_error_renaming_the_file
jmp 0x40648d
mov dword [ebp - 0x14], esp
push str.250_file_renamed_successfully
jmp 0x40648d
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Filename_invalid
jmp 0x40648d
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Permission_denied
jmp 0x40648d
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_directory_exists
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00405220
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004154de
jmp 0x40657f
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x4064e7
call fcn.00407410
test eax, eax
je 0x4064d1
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.426_Connection_closed__transfer_aborted.
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00405220
mov eax, dword [esi + 0x28]
push 0
push 0
push 0x4ca
mov edx, dword [eax + 0x30]
push edx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.226_ABOR_command_successful
jmp 0x406573
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.215_UNIX_emulated_by_Pablos_FTP_Server
jmp 0x406573
mov eax, dword [esi + 0x28]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [eax + 0x70]
call fcn.00406640
push ecx
lea eax, [ebp - 0x24]
mov edx, esp
mov dword [ebp - 0x14], esp
push eax
push str.220
push edx
mov byte [ebp - 4], 0x37
call sub.MFC42.DLL_operator_1
mov ecx, esi
call fcn.00405220
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov esi, dword [esi + 0x28]
push 0
push 1
push 0x4ca
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.004154de
jmp 0x40657f
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.200_OK
jmp 0x406573
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.502_Command_not_implemented.
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00405220
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.004154de
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.004154de
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret