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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415bc8
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.00404e30
test eax, eax
je 0x40658f
mov dword [ebp - 0x18], edi
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov ebx, 0x4202cc
mov eax, dword [ebx]
mov edx, dword [ebp - 0x2c]
push eax
push edx
call edi
add esp, 8
test eax, eax
je 0x405400
mov edx, dword [ebp - 0x18]
add ebx, 0xc
inc edx
cmp ebx, 0x4203e0
mov dword [ebp - 0x18], edx
jl 0x4053c7
mov ebx, edx
cmp ebx, 0x17
jne 0x405433
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.500_Syntax_error__command_unrecognized.
jmp 0x406583
mov ebx, dword [ebp - 0x18]
lea eax, [ebx + ebx*2]
mov ecx, dword [eax*4 + 0x4202d0]
test ecx, ecx
je 0x4053eb
mov ecx, dword [ebp - 0x20]
push 0x421970
push ecx
call edi
add esp, 8
test eax, eax
jne 0x4053eb
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.501_Syntax_error
jmp 0x406583
cmp ebx, 1
jle 0x40544f
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x40544f
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.530_Please_log_in_with_USER_and_PASS_first.
jmp 0x406583
cmp ebx, 0x16
ja case.0x405458.8
jmp dword [ebx*4 + 0x4065bc]
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.00414934
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.00405230
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0041486e
jmp 0x40658f
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4054f7
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.503_Bad_sequence_of_commands.
jmp 0x406583
lea ecx, [ebp - 0x58]
call fcn.00411180
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, 0x421a18
call fcn.004119c0
test eax, eax
je 0x40553e
push 0x420a58
lea ecx, [esi + 0x5c]
call fcn.00414874
push ecx
mov dword [esi + 0x2c], 1
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.230_Logged_on
jmp 0x405549
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.00405230
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00411210
jmp 0x40658f
mov eax, dword [esi + 0x30]
lea ecx, [ebp - 0x20]
lea edi, [esi + 0x5c]
push ecx
push edi
push eax
mov ecx, 0x421a18
call fcn.004120c0
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 0x4055cc
dec eax
je 0x4055b0
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 0x4055e5
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 0x4055e5
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.00405230
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0041486e
jmp 0x40658f
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.00405230
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0041486e
jmp 0x40658f
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 0x40571a
xor ebx, ebx
cmp ebx, 5
ja case.default.0x40567d
jmp dword [ebx*4 + 0x406618]
lea edi, [esi + 0x20]
lea edx, [ebp - 0x18]
push edx
mov ecx, edi
call fcn.00414934
push 0x420978
mov ecx, edi
call sub.MFC42.DLL_CString::operator_1
jmp case.default.0x40567d
lea eax, [ebp - 0x18]
lea edi, [esi + 0x20]
push eax
jmp 0x4056b0
lea ecx, [ebp - 0x18]
lea edi, [esi + 0x20]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::operator
push 0x420978
mov ecx, edi
call sub.MFC42.DLL_CString::operator_1
jmp case.default.0x40567d
lea edx, [ebp - 0x18]
lea ecx, [esi + 0x20]
push edx
call sub.MFC42.DLL_CString::operator
jmp case.default.0x40567d
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.0x40567d
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 0x405674
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.00405230
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0041486e
jmp 0x40658f
mov ecx, esi
call fcn.004066b0
push 0x3c
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
mov byte [ebp - 4], 7
je 0x405771
push 0xffffffffffffffff
push esi
mov ecx, eax
call fcn.00406ce0
jmp 0x405773
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 0x4057a4
mov ecx, esi
call fcn.004066b0
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.421_Cant_create_socket
jmp 0x406583
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 0x420940
push 0x420978
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.00405230
lea ecx, [ebp - 0x1c]
mov dword [esi + 0x14], 1
mov byte [ebp - 4], bl
call fcn.0041486e
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.0041486e
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0041486e
jmp 0x40658f
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 0x406588
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x4058c4
mov eax, dword [esi + 0x20]
push 0x421970
push eax
call edi
add esp, 8
test eax, eax
je 0x4058b4
cmp dword [esi + 0x1c], 0xffffffff
jne 0x4058c4
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.503_Bad_sequence_of_commands.
jmp 0x406583
mov edx, dword [ebp - 0x20]
push 0x421970
push edx
call edi
add esp, 8
test eax, eax
jne 0x4058e4
lea eax, [esi + 0x5c]
lea ecx, [ebp - 0x20]
push eax
call fcn.00414934
jmp 0x40594b
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.00406640
push eax
mov ecx, 0x421a18
call fcn.00412840
test eax, eax
jne 0x40593f
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00414934
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0041486e
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, 0x421a18
mov byte [ebp - 4], bl
call fcn.00412350
dec eax
je 0x405a33
dec eax
je 0x405a26
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x405a0e
push 0x3c
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
mov byte [ebp - 4], 0xf
je 0x4059aa
push 0
push esi
mov ecx, eax
call fcn.00406ce0
mov edi, eax
jmp 0x4059ac
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.00407700
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 0x405a01
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x405a01
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.425_Cant_open_data_connection
jmp 0x405a3e
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.150_Opening_data_channel_for_directory_list.
jmp 0x405a3e
mov edx, dword [ebp - 0x18]
mov ecx, dword [esi + 0x24]
push edx
call fcn.00407700
mov ecx, dword [esi + 0x24]
push 0
call fcn.00407730
jmp 0x405a4a
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Directory_not_found
jmp 0x405a3e
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.00405230
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0041486e
jmp 0x40658f
push 0x420880
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, 0x421a18
mov byte [ebp - 4], 0x11
call fcn.004120c0
sub eax, 0
je 0x405ad2
dec eax
je 0x405ab6
dec eax
jne 0x405afb
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 0x405aeb
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 0x405aeb
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.00405230
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0041486e
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0041486e
jmp 0x40658f
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x405b46
mov eax, dword [esi + 0x20]
push 0x421970
push eax
call edi
add esp, 8
test eax, eax
je 0x405b36
cmp dword [esi + 0x1c], 0xffffffff
jne 0x405b46
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.503_Bad_sequence_of_commands.
jmp 0x406583
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.00406640
push eax
mov ecx, 0x421a18
call fcn.00412840
dec eax
je 0x405c56
dec eax
je 0x405c49
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x405c31
push 0x3c
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
mov byte [ebp - 4], 0x15
je 0x405bcd
push 1
push esi
mov ecx, eax
call fcn.00406ce0
mov edi, eax
jmp 0x405bcf
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.00407700
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 0x405c24
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x405c24
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.425_Cant_open_data_connection
jmp 0x405c61
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.150_Opening_data_channel_for_file_transfer.
jmp 0x405c61
mov eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x24]
push eax
call fcn.00407700
mov ecx, dword [esi + 0x24]
push 1
call fcn.00407730
jmp 0x405c6d
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_File_not_found
jmp 0x405c61
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.00405230
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0041486e
jmp 0x40658f
mov eax, dword [esi + 0x14]
cmp eax, 0xffffffff
jne 0x405c96
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.503_Bad_sequence_of_commands.
jmp 0x406583
test eax, eax
jne 0x405cc2
mov eax, dword [esi + 0x20]
push 0x421970
push eax
call edi
add esp, 8
test eax, eax
je 0x405cb2
cmp dword [esi + 0x1c], 0xffffffff
jne 0x405cc2
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.503_Bad_sequence_of_commands.
jmp 0x406583
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.00406640
push eax
mov ecx, 0x421a18
call fcn.00412840
dec eax
je 0x405dd3
dec eax
je 0x405dc6
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x405dae
push 0x3c
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
mov byte [ebp - 4], 0x19
je 0x405d49
push 2
push esi
mov ecx, eax
call fcn.00406ce0
mov edi, eax
jmp 0x405d4b
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.00407700
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 0x405da1
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x405da1
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.425_Cant_open_data_connection
jmp 0x405dde
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.150_Opening_data_channel_for_file_transfer.
jmp 0x405dde
mov eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x24]
push eax
call fcn.00407700
mov ecx, dword [esi + 0x24]
push 2
call fcn.00407730
jmp 0x405dea
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Filename_invalid
jmp 0x405dde
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.00405230
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0041486e
jmp 0x40658f
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.00406640
push eax
mov ecx, 0x421a18
call fcn.00412840
dec eax
je 0x405eaf
dec eax
je 0x405ea2
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.00405230
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0041486e
jmp 0x405ec6
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_File_not_found
jmp 0x405eba
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.00405230
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0041486e
jmp 0x40658f
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.00406640
push eax
mov ecx, 0x421a18
call fcn.00412840
dec eax
je 0x405f7b
dec eax
je 0x405f6e
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 0x405f86
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_File_not_found
jmp 0x405f86
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.00405230
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0041486e
jmp 0x40658f
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.00406640
push eax
mov ecx, 0x421a18
call fcn.00412bc0
dec eax
je 0x40603f
dec eax
je 0x406032
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x406025
call sub.WSOCK32.dll_WSAGetLastError
push ecx
cmp eax, 0x91
mov ecx, esp
jne 0x40601b
mov dword [ebp - 0x14], esp
push str.550_Directory_not_empty.
jmp 0x40604a
mov dword [ebp - 0x14], esp
push str.450_Internal_error_deleting_the_directory.
jmp 0x40604a
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.250_Directory_deleted_successfully
jmp 0x40604a
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Directory_not_found
jmp 0x40604a
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.00405230
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0041486e
jmp 0x40658f
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.00406640
push eax
mov ecx, 0x421a18
call fcn.00412bc0
sub eax, 0
je 0x4061d8
dec eax
je 0x4061cb
sub eax, 2
je 0x4061be
push 0x420768
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 0x421970
push ecx
mov byte [ebp - 4], 0x29
call edi
add esp, 8
test eax, eax
je 0x406188
push 0x420768
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.0041486e
push 0x420768
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.00414934
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x29
call fcn.0041486e
mov ecx, dword [ebp - 0x1c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [ebp - 0x18]
push 0x421970
push edx
mov ebx, eax
call edi
add esp, 8
test eax, eax
jne 0x4060fa
jmp 0x40618b
mov ebx, dword [ebp - 0x14]
push ecx
test ebx, ebx
mov ecx, esp
jne 0x40619c
mov dword [ebp - 0x14], esp
push str.450_Internal_error_creating_the_directory.
jmp 0x4061a4
mov dword [ebp - 0x14], esp
push str.250_Directory_created_successfully
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00405230
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x26
call fcn.0041486e
jmp 0x4061ef
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Directoryname_not_valid
jmp 0x4061e3
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Cant_create_directory._Permission_denied
jmp 0x4061e3
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.00405230
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0041486e
jmp 0x40658f
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.00406640
push eax
mov ecx, 0x421a18
call fcn.00412840
test eax, eax
jne 0x40628c
lea eax, [ebp - 0x18]
lea ecx, [esi + 0x54]
push eax
call fcn.00414934
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.00405230
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0041486e
jmp 0x40658f
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.00406640
push eax
mov ecx, 0x421a18
call fcn.00412bc0
sub eax, 0
je 0x4062e6
push ecx
dec eax
mov ecx, esp
je 0x4062dc
mov dword [ebp - 0x14], esp
push str.550_file_directory_not_found
jmp 0x406304
mov dword [ebp - 0x14], esp
push str.550_Permission_denied
jmp 0x406304
lea eax, [ebp - 0x18]
lea ecx, [esi + 0x54]
push eax
call fcn.00414934
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.00405230
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0041486e
jmp 0x40658f
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40633b
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.503_Bad_sequence_of_commands_
jmp 0x406583
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4063f7
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.00406640
push eax
mov ecx, 0x421a18
call fcn.00412840
sub eax, 0
je 0x4063cf
dec eax
je 0x4063c2
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 0x4063b8
mov dword [ebp - 0x14], esp
push str.450_Internal_error_renaming_the_file
jmp 0x4063da
mov dword [ebp - 0x14], esp
push str.250_file_renamed_successfully
jmp 0x4063da
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Permission_denied
jmp 0x4063da
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.00405230
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0041486e
jmp 0x40658f
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.00406640
push eax
mov ecx, 0x421a18
call fcn.00412bc0
sub eax, 0
je 0x406492
dec eax
je 0x406485
sub eax, 2
je 0x406478
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 0x40646e
mov dword [ebp - 0x14], esp
push str.450_Internal_error_renaming_the_file
jmp 0x40649d
mov dword [ebp - 0x14], esp
push str.250_file_renamed_successfully
jmp 0x40649d
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Filename_invalid
jmp 0x40649d
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Permission_denied
jmp 0x40649d
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.00405230
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0041486e
jmp 0x40658f
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x4064f7
call fcn.00407420
test eax, eax
je 0x4064e1
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.00405230
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 0x406583
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.215_UNIX_emulated_by_Pablos_FTP_Server
jmp 0x406583
mov eax, dword [esi + 0x28]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [eax + 0x70]
call fcn.00406650
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.00405230
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.0041486e
jmp 0x40658f
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.200_OK
jmp 0x406583
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.00405230
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.0041486e
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.0041486e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret