Function at 0x407810
Capabilities:
Delete directory
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x41c6ea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
xor ebp, ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x170], ebp
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x178], 1
call fcn.004073b0
test eax, eax
je 0x408736
mov edi, 0x4296f4
mov eax, dword [edi]
mov edx, dword [esp + 0x20]
mov ebx, dword [sym.imp.MSVCRT.dll__mbscmp]
push eax
push edx
call ebx
add esp, 8
test eax, eax
mov eax, dword [esp + 0x18]
je 0x4078bf
add edi, 0x10
inc ebp
cmp edi, 0x4298e4
jl 0x407872
xor edi, edi
cmp ebp, 0x1a
je 0x4078dd
cmp ebp, 0xb
je 0x4078dd
cmp ebp, 0x10
je 0x4078dd
cmp ebp, 2
je 0x4078dd
cmp dword [esi + 0x30], 1
jne 0x4078dd
push str.530_Please_login_with_USER_and_PASS.
jmp 0x40872d
mov ecx, ebp
xor edi, edi
shl ecx, 4
cmp dword [ecx + 0x4296f8], edi
je 0x40789b
cmp dword [eax - 8], edi
jne 0x40789b
push str.501_Syntax_error:_Invalid_number_of_parameters.
jmp 0x40872d
cmp ebp, 0x1e
ja case.default.0x4078e6
jmp dword [ebp*4 + 0x408774]
lea edi, [esi + 0x18]
lea edx, [esp + 0x18]
push edx
mov ecx, edi
mov dword [esi + 0x30], 1
call fcn.0041abce
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x24]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x178], 2
call sub.MFC42.DLL_CAsyncSocket::GetPeerName
mov eax, dword [esi + 0x14]
mov ebp, dword [esp + 0x10]
mov edx, dword [edi]
push ebp
mov ecx, dword [eax + 0x70]
push edx
mov edx, dword [eax + 0x30]
mov ecx, dword [ecx + 0x100]
push edx
mov ebx, dword [ecx]
call dword [ebx + 4]
mov eax, dword [edi]
push eax
push str.331_Password_required_for__s
push esi
call fcn.004076d0
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], 1
call sub.MFC42.DLL_CString::CString
jmp 0x408736
mov eax, dword [esi + 0x18]
cmp dword [eax - 8], edi
jne 0x40797b
push str.503_Login_with_USER_first.
jmp 0x40872d
lea ecx, [esi + 0x64]
push ecx
push eax
mov ecx, 0x42b700
call fcn.004188a0
test eax, eax
je 0x4079ca
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x6c]
push edx
push eax
call ebx
add esp, 8
test eax, eax
je 0x4079a8
mov eax, dword [esi + 0x6c]
cmp dword [eax - 8], edi
jne 0x4079ca
cmp dword [esi + 0x84], edi
jne 0x4079ca
push 0x42a62c
lea ecx, [esi + 0x60]
call sub.MFC42.DLL_CString::operator
mov dword [esi + 0x30], edi
push str.230_User_successfully_logged_in.
jmp 0x40872d
push str.530_Not_logged_in__user_or_password_incorrect_
jmp 0x40872d
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::MakeUpper
lea ecx, [esp + 0x30]
push 1
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push 0x42a5d4
push eax
call ebx
add esp, 8
lea ecx, [esp + 0x30]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x407a16
push str.200_Type_set_to_ASCII
jmp 0x40872d
lea edx, [esp + 0x28]
push 1
push edx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push 0x42a5b8
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x28]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x407a53
push str.200_Type_set_to_BINARY
jmp 0x40872d
mov eax, dword [esp + 0x18]
push eax
push str.504_Type__s_not_implemented.
push esi
call fcn.004076d0
add esp, 0xc
jmp 0x408736
mov ecx, dword [esi + 0x60]
push ecx
push str.257___s__is_current_directory.
push esi
call fcn.004076d0
add esp, 0xc
jmp 0x408736
push 0x42a55c
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push 6
push ecx
mov byte [esp + 0x17c], 3
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00409c30
sub eax, 3
je 0x407b42
sub eax, 2
je 0x407b36
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x178], 4
call fcn.00408e30
test eax, eax
je 0x407afd
lea eax, [esp + 0x10]
lea ecx, [esi + 0x60]
push eax
call fcn.0041abce
mov ecx, dword [esi + 0x60]
push ecx
push str.250___s__is_current_directory.
push esi
call fcn.004076d0
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 1
call sub.MFC42.DLL_CString::CString
jmp 0x408736
mov edx, dword [esp + 0x18]
push edx
push str.550___s_:_Permission_denied.
jmp 0x407b4c
mov eax, dword [esp + 0x18]
push eax
push str.550___s_:_Directory_not_found.
push esi
call fcn.004076d0
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 1
call sub.MFC42.DLL_CString::CString
jmp 0x408736
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CStringArray::CStringArray
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x3c]
push ecx
push 0x2c
push edx
mov byte [esp + 0x17c], 5
call fcn.00414040
add esp, 0xc
cmp eax, 7
je 0x407b9c
push str.501_Syntax_error:_Invalid_parameter.
jmp 0x407c0c
mov eax, dword [esp + 0x40]
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, dword [eax + 0xc]
mov ebp, dword [eax + 8]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
push ecx
mov dword [esp + 0x28], eax
call edi
add esp, 4
push eax
push ebp
call edi
add esp, 4
push eax
push ebx
call edi
mov ecx, dword [esp + 0x30]
add esp, 4
push eax
push ecx
call edi
add esp, 4
lea edx, [esi + 0x28]
push eax
push str._d._d._d._d
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
push ecx
call edi
mov ebp, eax
push ebx
shl ebp, 8
call edi
add esp, 0x20
add ebp, eax
mov dword [esi + 0x24], ebp
mov dword [esi + 0x20], 0
push str.200_Port_command_successful.
push esi
call fcn.004076d0
add esp, 8
lea ecx, [esp + 0x3c]
mov byte [esp + 0x170], 1
call fcn.0041aefe
jmp 0x408736
mov ecx, esi
call fcn.00408a00
push 0x30
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, edi
mov byte [esp + 0x170], 6
je 0x407c56
push esi
mov ecx, eax
call fcn.0040a440
jmp 0x407c58
xor eax, eax
mov edi, dword [esi + 0x14]
mov dword [esi + 0x2c], eax
push 0x2710
mov byte [esp + 0x174], 1
mov edx, dword [edi + 0x70]
mov ecx, dword [edx + 0x108]
mov edx, dword [edx + 0x10c]
push edx
push ecx
mov ecx, eax
call fcn.0040af10
test eax, eax
jne 0x407c98
mov ecx, esi
call fcn.00408a00
push str.421_Failed_to_create_socket.
jmp 0x40872d
mov eax, dword [esi + 0x2c]
push 5
mov eax, dword [eax + 4]
push eax
call sub.WSOCK32.dll_listen
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
test eax, eax
jne 0x407cbe
push str.421_Failed_to_listen_on_socket.
jmp 0x40872d
mov ecx, dword [esi + 0x2c]
push 0x3f
call sub.MFC42.DLL_CAsyncSocket::AsyncSelect
mov ecx, dword [edi + 0x70]
lea edx, [esp + 0x14]
push edx
call fcn.0040cb90
mov eax, dword [esp + 0x14]
mov bl, 7
push str.default
push eax
mov byte [esp + 0x178], bl
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x407d00
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x407d11
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CAsyncSocket::GetSockName
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esi + 0x2c]
push edx
mov byte [esp + 0x178], 8
call sub.MFC42.DLL_CAsyncSocket::GetSockName
push 0x42a45c
push 0x42a458
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Replace
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, eax
and ecx, 0xff
shr eax, 8
push ecx
push eax
push edx
push str.227_Entering_Passive_Mode___s__d__d_.
push esi
call fcn.004076d0
add esp, 0x14
lea ecx, [esp + 0x24]
mov dword [esi + 0x20], 1
mov byte [esp + 0x170], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 1
call sub.MFC42.DLL_CString::CString
jmp 0x408736
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.0040a070
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x18]
xor ecx, ecx
cmp ebp, 9
lea edx, [esp + 0x14]
sete cl
push ecx
push edx
push eax
mov ecx, esi
mov byte [esp + 0x17c], 9
call fcn.00409380
test eax, eax
jne 0x407de9
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 1
call sub.MFC42.DLL_CString::CString
jmp 0x408736
push str.150_Opening_ASCII_mode_data_connection_for_directory_list.
push esi
call fcn.004076d0
add esp, 8
mov ecx, esi
mov dword [esi + 0x30], 2
call fcn.004088b0
test eax, eax
je 0x407e7a
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 8], edi
jne 0x407e40
mov ecx, esi
call fcn.00408a00
push str.226_Transfer_complete.
push esi
call fcn.004076d0
add esp, 8
lea ecx, [esp + 0x14]
mov dword [esi + 0x30], edi
mov byte [esp + 0x170], 1
call sub.MFC42.DLL_CString::CString
jmp 0x408736
mov ecx, dword [esi + 0x2c]
push 0x3f
call sub.MFC42.DLL_CAsyncSocket::AsyncSelect
mov ecx, dword [esi + 0x14]
push str.Retrieving_listing...
call fcn.00406d70
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x2c]
push edx
call fcn.0040acc0
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 1
call sub.MFC42.DLL_CString::CString
jmp 0x408736
mov ecx, esi
call fcn.00408a00
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 1
call sub.MFC42.DLL_CString::CString
jmp 0x408736
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x10]
lea edx, [esp + 0x18]
push eax
push 1
push ecx
mov bl, 0xa
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x180], bl
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.004099c0
sub eax, 2
je 0x407f87
sub eax, 3
je 0x407f80
push str.150_Opening_BINARY_mode_data_connection_for_file_transfer.
push esi
call fcn.004076d0
add esp, 8
mov ecx, esi
mov dword [esi + 0x30], 4
call fcn.004088b0
test eax, eax
jne 0x407f1a
mov ecx, esi
mov dword [esi + 0x30], eax
call fcn.00408a00
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], 1
call sub.MFC42.DLL_CString::CString
jmp 0x408736
mov ecx, dword [esi + 0x2c]
push 0x3f
call sub.MFC42.DLL_CAsyncSocket::AsyncSelect
mov edi, dword [esi + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
push str.Downloading:
push ecx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
mov ecx, edi
push eax
mov byte [esp + 0x174], 0xb
call fcn.00406d70
lea ecx, [esp + 0x38]
mov byte [esp + 0x170], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x2c]
push edx
call fcn.0040acf0
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], 1
call sub.MFC42.DLL_CString::CString
jmp 0x408736
push str.550_Permission_denied.
jmp 0x407f8c
push str.550_File_not_found.
push esi
call fcn.004076d0
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], 1
call sub.MFC42.DLL_CString::CString
jmp 0x408736
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x10]
lea edx, [esp + 0x18]
push eax
push 2
push ecx
mov bl, 0xc
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x180], bl
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.004099c0
sub eax, 2
je 0x4080bd
sub eax, 3
je 0x4080b6
cmp ebp, 1
jne 0x408010
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x50]
push eax
push ecx
mov dword [esi + 0x54], edi
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
je 0x408010
mov edx, dword [esp + 0x5c]
mov dword [esi + 0x54], edx
push str.150_Opening_BINARY_mode_data_connection_for_file_transfer.
push esi
call fcn.004076d0
add esp, 8
mov ecx, esi
mov dword [esi + 0x30], 3
call fcn.004088b0
test eax, eax
jne 0x408050
mov ecx, esi
mov dword [esi + 0x30], edi
call fcn.00408a00
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], 1
call sub.MFC42.DLL_CString::CString
jmp 0x408736
mov edi, dword [esi + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x38]
push str.Uploading:
push ecx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
mov ecx, edi
push eax
mov byte [esp + 0x174], 0xd
call fcn.00406d70
lea ecx, [esp + 0x34]
mov byte [esp + 0x170], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x2c]
push edx
call fcn.0040ad50
mov ecx, dword [esi + 0x2c]
push 0x3f
call sub.MFC42.DLL_CAsyncSocket::AsyncSelect
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], 1
call sub.MFC42.DLL_CString::CString
jmp 0x408736
push str.550_Permission_denied.
jmp 0x4080c2
push str.550_Filename_invalid.
push esi
call fcn.004076d0
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], 1
call sub.MFC42.DLL_CString::CString
jmp 0x408736
push eax
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
mov dword [esi + 0x54], eax
push eax
push str.350_Restarting_at__u.
push esi
call fcn.004076d0
add esp, 0xc
jmp 0x408736
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x10]
lea edx, [esp + 0x18]
push eax
push 1
push ecx
mov byte [esp + 0x17c], 0xe
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.004099c0
sub eax, 2
je 0x40817b
sub eax, 3
je 0x408174
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x50]
push eax
push ecx
call sub.MFC42.DLL_CFile::GetStatus
mov edx, dword [esp + 0x5c]
push edx
push str.213__u
push esi
call fcn.004076d0
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], 1
call sub.MFC42.DLL_CString::CString
jmp 0x408736
push str.550_Permission_denied.
jmp 0x408180
push str.550_File_not_found.
push esi
call fcn.004076d0
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], 1
call sub.MFC42.DLL_CString::CString
jmp 0x408736
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x14]
lea edx, [esp + 0x18]
push eax
push 4
push ecx
mov bl, 0xf
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x180], bl
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.004099c0
sub eax, 2
je 0x40825b
sub eax, 3
je 0x408254
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x178], 0x10
call fcn.00408e30
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x40821b
mov eax, dword [esp + 0x10]
push eax
push str.450_Internal_error_deleting_the_file:___s_.
jmp 0x408225
mov ecx, dword [esp + 0x10]
push ecx
push str.250_File___s__was_deleted_successfully.
push esi
call fcn.004076d0
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 1
call sub.MFC42.DLL_CString::CString
jmp 0x408736
push str.550_Permission_denied.
jmp 0x408260
push str.550_File_not_found.
push esi
call fcn.004076d0
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 1
call sub.MFC42.DLL_CString::CString
jmp 0x408736
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push 4
push ecx
mov byte [esp + 0x17c], 0x11
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00409c30
sub eax, 3
je 0x4082f0
sub eax, 2
je 0x4082e9
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
jne 0x4082e2
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x91
jne 0x4082db
push str.550_Directory_not_empty.
jmp 0x4082f5
push str.450_Internal_error_deleting_the_directory.
jmp 0x4082f5
push str.250_Directory_deleted_successfully.
jmp 0x4082f5
push str.550_Permission_denied.
jmp 0x4082f5
push str.550_Directory_not_found.
push esi
call fcn.004076d0
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], 1
call sub.MFC42.DLL_CString::CString
jmp 0x408736
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push 5
push ecx
mov byte [esp + 0x17c], 0x12
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00409c30
cmp eax, edi
je 0x408373
cmp eax, 5
je 0x40836c
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00413b90
add esp, 4
test eax, eax
jne 0x408365
push str.450_Internal_error_creating_the_directory.
jmp 0x408378
push str.250_Directory_created_successfully.
jmp 0x408378
push str.550_Cant_create_directory._Permission_denied.
jmp 0x408378
push str.550_Directory_already_exists.
push esi
call fcn.004076d0
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], 1
call sub.MFC42.DLL_CString::CString
jmp 0x408736
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push 3
push ecx
mov byte [esp + 0x17c], 0x13
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.004099c0
cmp eax, edi
jne 0x4083e6
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 0x58]
call fcn.0041abce
mov dword [esi + 0x50], 1
push str.350_File_exists__ready_for_destination_name.
jmp 0x408431
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push 3
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00409c30
cmp eax, edi
je 0x40841c
cmp eax, 5
je 0x408415
push str.550_File_directory_not_found.
jmp 0x408431
push str.550_Permission_denied.
jmp 0x408431
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 0x58]
call fcn.0041abce
mov dword [esi + 0x50], edi
push str.350_Directory_exists__ready_for_destination_name.
push esi
call fcn.004076d0
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 1
call sub.MFC42.DLL_CString::CString
jmp 0x408736
mov edx, dword [esi + 0x58]
cmp dword [edx - 8], edi
jne 0x408462
push str.503_Bad_sequence_of_commands.
jmp 0x40872d
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 0x50]
mov bl, 0x14
cmp eax, edi
lea eax, [esp + 0x14]
push eax
push 3
push ecx
mov byte [esp + 0x17c], bl
mov ecx, esp
je 0x40849c
lea edx, [esp + 0x24]
mov dword [esp + 0x28], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.004099c0
jmp 0x4084b1
lea edx, [esp + 0x24]
mov dword [esp + 0x28], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00409c30
cmp eax, edi
je 0x408558
cmp eax, 5
je 0x408548
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 0x58]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, esi
mov byte [esp + 0x178], 0x15
call fcn.00408e30
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x58]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
test eax, eax
mov eax, dword [esi + 0x50]
jne 0x408514
cmp eax, edi
mov eax, str.file
jne 0x408507
mov eax, str.directory
mov ecx, dword [esp + 0x10]
push ecx
push eax
push str.450_Internal_error_renaming_the__s:___s_.
jmp 0x40852d
cmp eax, edi
mov eax, str.File
jne 0x408522
mov eax, str.Directory
mov edx, dword [esp + 0x10]
push edx
push eax
push str.250__s___s__renamed_successfully.
push esi
call fcn.004076d0
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], bl
call sub.MFC42.DLL_CString::CString
jmp 0x408578
push str.550_Permission_denied.
push esi
call fcn.004076d0
add esp, 8
jmp 0x408578
mov eax, dword [esi + 0x50]
cmp eax, edi
mov eax, str.File
jne 0x408569
mov eax, str.Directory
push eax
push str.550__s_already_exists.
push esi
call fcn.004076d0
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 1
call sub.MFC42.DLL_CString::CString
jmp 0x408736
cmp dword [esi + 0x2c], edi
je 0x4085ba
cmp dword [esi + 0x30], edi
je 0x4085a6
push str.426_Data_connection_closed.
push esi
call fcn.004076d0
add esp, 8
mov eax, dword [esi + 0x14]
push edi
push edi
push 0x4cd
mov eax, dword [eax + 0x30]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push str.226_ABOR_command_successful.
jmp 0x40872d
push str.215_UNIX_emulated_by_Quick_n_Easy_xxxxxxxxxx.
jmp 0x40872d
mov eax, dword [esi + 0x14]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [eax + 0x70]
call fcn.004087f0
mov edx, dword [eax]
mov byte [esp + 0x170], 0x16
push edx
push str.220__s
push esi
call fcn.004076d0
add esp, 0xc
lea ecx, [esp + 0x2c]
mov byte [esp + 0x170], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
call sub.MFC42.DLL_AfxGetThread
mov ecx, dword [eax + 0x30]
push edi
push edi
push 0x12
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
jmp 0x408736
push 0x42b6b8
push eax
call ebx
add esp, 8
test eax, eax
jne 0x4086c3
push str.214_The_following_commands_are_recognized:_r_n
lea ecx, [esp + 0x14]
call fcn.0041aae4
mov byte [esp + 0x170], 0x17
xor ebx, ebx
mov edi, 0x4296f4
mov edx, dword [edi]
lea ecx, [esp + 0x10]
push edx
call fcn.0041aade
inc ebx
mov eax, ebx
and eax, 0x80000003
jns 0x408672
dec eax
or eax, 0xfffffffc
inc eax
jne 0x40867b
push 0x4295fc
jmp 0x408680
push 0x429fb0
lea ecx, [esp + 0x14]
call fcn.0041aade
add edi, 0x10
cmp edi, 0x4298e4
jl 0x408657
push str._r_n214_HELP_command_successful.
lea ecx, [esp + 0x14]
call fcn.0041aade
mov ecx, dword [esp + 0x10]
push ecx
push esi
call fcn.004076d0
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], 1
call sub.MFC42.DLL_CString::CString
jmp 0x408736
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
xor ebx, ebx
mov edi, 0x4296f4
mov eax, dword [edi]
mov edx, dword [esp + 0x18]
push eax
push edx
call ebp
add esp, 8
test eax, eax
je 0x4086ed
add edi, 0x10
inc ebx
cmp edi, 0x4298e4
jl 0x4086d0
cmp ebx, 0x1f
je 0x40870c
shl ebx, 4
mov eax, dword [ebx + 0x4296fc]
push eax
push str.214__s
push esi
call fcn.004076d0
add esp, 0xc
jmp 0x408736
mov ecx, dword [esp + 0x18]
push ecx
push str.501_Unknown_command__s
push esi
call fcn.004076d0
add esp, 0xc
jmp 0x408736
push str.200_OK
jmp 0x40872d
push str.502_Command_not_implemented___Try_HELP.
push esi
call fcn.004076d0
add esp, 8
lea ecx, [esp + 0x18]
mov byte [esp + 0x170], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x170], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x168]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x164
ret