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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f718
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
mov eax, dword [0x467c48]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x2c]
push eax
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00404de0
test eax, eax
je 0x406535
xor ebx, ebx
mov edi, 0x46642c
mov eax, dword [edi]
mov edx, dword [ebp - 0x2c]
push eax
push edx
call fcn.0041a96f
add esp, 8
test eax, eax
je 0x4053b1
add edi, 0xc
inc ebx
cmp edi, 0x466540
jl 0x40537d
cmp ebx, 0x17
jne 0x4053e4
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.500_Syntax_error__command_unrecognized.
jmp 0x406529
lea eax, [ebx + ebx*2]
mov ecx, dword [eax*4 + 0x466430]
test ecx, ecx
je 0x40539c
mov ecx, dword [ebp - 0x20]
push 0x46c838
push ecx
call fcn.0041a96f
add esp, 8
test eax, eax
jne 0x40539c
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.501_Syntax_error
jmp 0x406529
mov edi, 1
cmp ebx, edi
jle 0x405404
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x405404
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.530_Please_log_in_with_USER_and_PASS_first.
jmp 0x406529
cmp ebx, 0x16
ja case.0x40540d.8
jmp dword [ebx*4 + 0x406564]
lea ecx, [ebp - 0x20]
call fcn.004414f3
lea edi, [esi + 0x30]
lea edx, [ebp - 0x20]
push edx
mov ecx, edi
mov dword [esi + 0x2c], 0
call fcn.00441153
mov eax, dword [0x467c48]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x1c]
push ecx
push edx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0044e0e3
mov eax, dword [esi + 0x28]
mov ebx, dword [ebp - 0x1c]
mov edi, dword [edi]
push ebx
mov ecx, dword [eax + 0x6c]
mov eax, dword [eax + 0x2c]
push edi
push eax
mov ecx, dword [ecx + 0x110]
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 fcn.00441323
mov ecx, esi
call fcn.004051f0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00441066
jmp 0x406535
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4054ac
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.503_Bad_sequence_of_commands.
jmp 0x406529
lea ecx, [ebp - 0x58]
call fcn.00415d10
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, 0x46c8e4
call fcn.004164e0
test eax, eax
je 0x4054ef
push 0x466bb8
lea ecx, [esi + 0x5c]
call fcn.004411a3
push ecx
mov dword [esi + 0x2c], edi
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.230_Logged_on
jmp 0x4054fa
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.530_Login_or_password_incorrect_
call fcn.004410d4
mov ecx, esi
call fcn.004051f0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00415d70
jmp 0x406535
mov eax, dword [esi + 0x30]
lea ecx, [ebp - 0x20]
lea edi, [esi + 0x5c]
push ecx
push edi
push eax
mov ecx, 0x46c8e4
call fcn.00416bc0
mov edx, dword [0x467c48]
mov dword [ebp - 0x18], edx
sub eax, 0
mov byte [ebp - 4], 4
je 0x405576
dec eax
mov eax, dword [ebp - 0x20]
push eax
je 0x40555e
lea ecx, [ebp - 0x18]
push str.550_CWD_failed.___s_:_directory_not_found.
push ecx
call fcn.0043ac98
add esp, 8
mov ecx, esp
mov dword [ebp - 0x24], esp
jmp 0x40558f
lea ecx, [ebp - 0x18]
push str.550_CWD_failed.___s_:_Permission_denied.
push ecx
call fcn.0043ac98
add esp, 8
mov ecx, esp
mov dword [ebp - 0x24], esp
jmp 0x40558f
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push eax
push str.250_CWD_successful.___s__is_current_directory.
push ecx
call fcn.0043ac98
add esp, 8
mov ecx, esp
mov dword [ebp - 0x24], esp
lea edx, [ebp - 0x18]
push edx
call fcn.00440ddb
mov ecx, esi
call fcn.004051f0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00441066
jmp 0x406535
mov eax, dword [0x467c48]
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x5c]
lea edx, [ebp - 0x1c]
push ecx
push str.257___s__is_current_directory.
push edx
mov byte [ebp - 4], 5
call fcn.0043ac98
add esp, 8
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.00440ddb
mov ecx, esi
call fcn.004051f0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00441066
jmp 0x406535
mov ecx, dword [0x467c48]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x20]
push 0x2c
push 0
lea eax, [ebp - 0x18]
push edx
push eax
mov byte [ebp - 4], 6
call fcn.004417ea
test eax, eax
je 0x4056bf
xor ebx, ebx
cmp ebx, 5
ja case.default.0x405624
jmp dword [ebx*4 + 0x4065c0]
lea ecx, [ebp - 0x18]
lea edi, [esi + 0x20]
push ecx
mov ecx, edi
call fcn.00441153
push 0x466ad8
mov ecx, edi
call fcn.004413f6
jmp case.default.0x405624
lea edx, [ebp - 0x18]
lea edi, [esi + 0x20]
push edx
jmp 0x405657
lea eax, [ebp - 0x18]
lea edi, [esi + 0x20]
push eax
mov ecx, edi
call fcn.00441432
push 0x466ad8
mov ecx, edi
call fcn.004413f6
jmp case.default.0x405624
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [esi + 0x20]
call fcn.00441432
jmp case.default.0x405624
mov edx, dword [ebp - 0x18]
push edx
call fcn.0041aaee
add esp, 4
shl eax, 8
mov dword [esi + 0x1c], eax
jmp case.default.0x405624
mov eax, dword [ebp - 0x18]
push eax
call fcn.0041aaee
mov ecx, dword [esi + 0x1c]
add esp, 4
add ecx, eax
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0x20]
lea eax, [ebx + 1]
push 0x2c
push eax
lea edx, [ebp - 0x18]
push ecx
push edx
mov ebx, eax
call fcn.004417ea
test eax, eax
jne 0x40561f
push ecx
mov dword [esi + 0x14], 0
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.200_Port_command_successful
call fcn.004410d4
mov ecx, esi
call fcn.004051f0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00441066
jmp 0x406535
mov ecx, esi
call fcn.00406660
push 0x3c
call fcn.00440da7
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
mov byte [ebp - 4], 7
je 0x405716
push 0xffffffffffffffff
push esi
mov ecx, eax
call fcn.00406cd0
jmp 0x405718
xor eax, eax
push 0
push 0x3f
push edi
push 0
mov ecx, eax
mov byte [ebp - 4], 1
mov dword [esi + 0x24], eax
call fcn.0044e04e
test eax, eax
jne 0x405748
mov ecx, esi
call fcn.00406660
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.421_Cant_create_socket
jmp 0x406529
mov eax, dword [esi + 0x24]
push 5
mov eax, dword [eax + 4]
push eax
call sub.WSOCK32.dll_listen
mov ecx, dword [esi + 0x24]
push 0x3f
call fcn.0044e35a
mov eax, dword [0x467c48]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x18]
mov bl, 9
push ecx
push edx
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.0044e149
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x24]
push eax
push ecx
mov ecx, dword [esi + 0x24]
call fcn.0044e149
push 0x466aa0
push 0x466ad8
lea ecx, [ebp - 0x18]
call fcn.0043a5e0
mov edx, dword [0x467c48]
mov dword [ebp - 0x1c], edx
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 fcn.0043ac98
add esp, 0x10
lea edx, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x14], esp
push edx
call fcn.00440ddb
mov ecx, esi
call fcn.004051f0
lea ecx, [ebp - 0x1c]
mov dword [esi + 0x14], edi
mov byte [ebp - 4], bl
call fcn.00441066
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.00441066
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00441066
jmp 0x406535
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 fcn.00441323
jmp 0x40652e
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x40585f
mov eax, dword [esi + 0x20]
push 0x46c838
push eax
call fcn.0041a96f
add esp, 8
test eax, eax
je 0x40584f
cmp dword [esi + 0x1c], 0xffffffff
jne 0x40585f
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.503_Bad_sequence_of_commands.
jmp 0x406529
mov edx, dword [ebp - 0x20]
push 0x46c838
push edx
call fcn.0041a96f
add esp, 8
test eax, eax
jne 0x405882
lea eax, [esi + 0x5c]
lea ecx, [ebp - 0x20]
push eax
call fcn.00441153
jmp 0x4058ea
mov ecx, dword [0x467c48]
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0x1c]
lea eax, [esi + 0x5c]
push edx
push 6
push ecx
mov bl, 0xb
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
mov byte [ebp - 4], bl
call fcn.00440ddb
push ecx
lea edx, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push edx
mov byte [ebp - 4], 0xc
call fcn.00440ddb
lea ecx, [esi + 0x30]
mov byte [ebp - 4], bl
call fcn.004065f0
push eax
mov ecx, 0x46c8e4
call fcn.00417340
test eax, eax
jne 0x4058de
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push eax
call fcn.00441153
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00441066
mov ecx, dword [0x467c48]
mov dword [ebp - 0x18], ecx
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, 0x46c8e4
mov byte [ebp - 4], bl
call fcn.00416e50
dec eax
je 0x4059d3
dec eax
je 0x4059c6
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x4059ae
push 0x3c
call fcn.00440da7
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
mov byte [ebp - 4], 0xf
je 0x40594a
push 0
push esi
mov ecx, eax
call fcn.00406cd0
mov edi, eax
jmp 0x40594c
xor edi, edi
push 0
push 0x3f
push 1
push 0
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.0044e04e
mov edx, dword [ebp - 0x18]
mov ecx, edi
push edx
call fcn.004076e0
push 0x3f
mov ecx, edi
call fcn.0044e35a
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
push ecx
push eax
mov ecx, edi
mov dword [esi + 0x24], edi
call fcn.0044e2bb
test eax, eax
jne 0x4059a1
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4059a1
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.425_Cant_open_data_connection
jmp 0x4059de
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.150_Opening_data_channel_for_directory_list.
jmp 0x4059de
mov edx, dword [ebp - 0x18]
mov ecx, dword [esi + 0x24]
push edx
call fcn.004076e0
mov ecx, dword [esi + 0x24]
push 0
call fcn.00407710
jmp 0x4059ea
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Directory_not_found
jmp 0x4059de
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Permission_denied
call fcn.004410d4
mov ecx, esi
call fcn.004051f0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00441066
jmp 0x406535
push 0x4669e0
lea ecx, [ebp - 0x1c]
call fcn.004410d4
mov eax, dword [0x467c48]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x30]
lea ecx, [ebp - 0x1c]
lea edi, [esi + 0x5c]
push ecx
push edi
push eax
mov ecx, 0x46c8e4
mov byte [ebp - 4], 0x11
call fcn.00416bc0
sub eax, 0
je 0x405a6d
dec eax
je 0x405a51
dec eax
jne 0x405a96
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push edx
push str.550_CWD_failed.___s_:_directory_not_found.
push eax
call fcn.0043ac98
add esp, 8
mov ecx, esp
mov dword [ebp - 0x14], esp
jmp 0x405a86
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
push str.550_CWD_failed.___s_:_Permission_denied.
push ecx
call fcn.0043ac98
add esp, 8
mov ecx, esp
mov dword [ebp - 0x14], esp
jmp 0x405a86
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push eax
push str.250_CWD_successful.___s__is_current_directory.
push ecx
call fcn.0043ac98
add esp, 8
mov ecx, esp
mov dword [ebp - 0x14], esp
lea edx, [ebp - 0x18]
push edx
call fcn.00440ddb
mov ecx, esi
call fcn.004051f0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x10
call fcn.00441066
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00441066
jmp 0x406535
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x405ae5
mov eax, dword [esi + 0x20]
push 0x46c838
push eax
call fcn.0041a96f
add esp, 8
test eax, eax
je 0x405ad5
cmp dword [esi + 0x1c], 0xffffffff
jne 0x405ae5
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.503_Bad_sequence_of_commands.
jmp 0x406529
mov eax, dword [0x467c48]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x1c]
lea edx, [esi + 0x5c]
push ecx
push edi
push ecx
mov bl, 0x12
mov ecx, esp
mov dword [ebp - 0x14], esp
push edx
mov byte [ebp - 4], bl
call fcn.00440ddb
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
mov byte [ebp - 4], 0x13
call fcn.00440ddb
lea ecx, [esi + 0x30]
mov byte [ebp - 4], bl
call fcn.004065f0
push eax
mov ecx, 0x46c8e4
call fcn.00417340
dec eax
je 0x405bf3
dec eax
je 0x405be6
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x405bcf
push 0x3c
call fcn.00440da7
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
mov byte [ebp - 4], 0x15
je 0x405b6b
push 1
push esi
mov ecx, eax
call fcn.00406cd0
mov edi, eax
jmp 0x405b6d
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 fcn.0044e04e
push 0x3f
mov ecx, edi
call fcn.0044e35a
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, edi
call fcn.004076e0
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
push edx
push eax
mov ecx, edi
call fcn.0044e2bb
test eax, eax
jne 0x405bc2
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x405bc2
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.425_Cant_open_data_connection
jmp 0x405bfe
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.150_Opening_data_channel_for_file_transfer.
jmp 0x405bfe
mov eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x24]
push eax
call fcn.004076e0
mov ecx, dword [esi + 0x24]
push edi
call fcn.00407710
jmp 0x405c0a
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_File_not_found
jmp 0x405bfe
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Permission_denied
call fcn.004410d4
mov ecx, esi
call fcn.004051f0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00441066
jmp 0x406535
mov eax, dword [esi + 0x14]
cmp eax, 0xffffffff
jne 0x405c33
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.503_Bad_sequence_of_commands.
jmp 0x406529
test eax, eax
jne 0x405c62
mov eax, dword [esi + 0x20]
push 0x46c838
push eax
call fcn.0041a96f
add esp, 8
test eax, eax
je 0x405c52
cmp dword [esi + 0x1c], 0xffffffff
jne 0x405c62
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.503_Bad_sequence_of_commands.
jmp 0x406529
mov ecx, dword [0x467c48]
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0x1c]
lea eax, [esi + 0x5c]
push edx
push 2
push ecx
mov byte [ebp - 4], 0x16
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00440ddb
push ecx
lea edx, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push edx
mov byte [ebp - 4], 0x17
call fcn.00440ddb
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 0x16
call fcn.004065f0
push eax
mov ecx, 0x46c8e4
call fcn.00417340
dec eax
je 0x405d74
dec eax
je 0x405d67
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x405d4f
push 0x3c
call fcn.00440da7
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
mov byte [ebp - 4], 0x19
je 0x405cea
push 2
push esi
mov ecx, eax
call fcn.00406cd0
mov edi, eax
jmp 0x405cec
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 fcn.0044e04e
push 0x3f
mov ecx, edi
call fcn.0044e35a
mov eax, dword [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.004076e0
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
push ecx
push eax
mov ecx, edi
call fcn.0044e2bb
test eax, eax
jne 0x405d42
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x405d42
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.425_Cant_open_data_connection
jmp 0x405d7f
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.150_Opening_data_channel_for_file_transfer.
jmp 0x405d7f
mov edx, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x24]
push edx
call fcn.004076e0
mov ecx, dword [esi + 0x24]
push 2
call fcn.00407710
jmp 0x405d8b
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Filename_invalid
jmp 0x405d7f
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Permission_denied
call fcn.004410d4
mov ecx, esi
call fcn.004051f0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00441066
jmp 0x406535
mov eax, dword [0x467c48]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
lea edx, [esi + 0x5c]
push ecx
push edi
push ecx
mov bl, 0x1a
mov ecx, esp
mov dword [ebp - 0x14], esp
push edx
mov byte [ebp - 4], bl
call fcn.00440ddb
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
mov byte [ebp - 4], 0x1b
call fcn.00440ddb
lea ecx, [esi + 0x30]
mov byte [ebp - 4], bl
call fcn.004065f0
push eax
mov ecx, 0x46c8e4
call fcn.00417340
dec eax
je 0x405e4f
dec eax
je 0x405e42
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x170]
push ecx
push edx
call fcn.00442a89
mov eax, dword [0x467c48]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x164]
lea edx, [ebp - 0x1c]
push ecx
push str.213__d
push edx
mov byte [ebp - 4], 0x1d
call fcn.0043ac98
add esp, 8
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00440ddb
mov ecx, esi
call fcn.004051f0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00441066
jmp 0x405e66
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_File_not_found
jmp 0x405e5a
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Permission_denied
call fcn.004410d4
mov ecx, esi
call fcn.004051f0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00441066
jmp 0x406535
mov ecx, dword [0x467c48]
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0x1c]
lea eax, [esi + 0x5c]
push edx
push 4
push ecx
mov ebx, 0x1e
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
mov byte [ebp - 4], bl
call fcn.00440ddb
push ecx
lea edx, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x28], esp
push edx
mov byte [ebp - 4], 0x1f
call fcn.00440ddb
lea ecx, [esi + 0x30]
mov byte [ebp - 4], bl
call fcn.004065f0
push eax
mov ecx, 0x46c8e4
call fcn.00417340
dec eax
je 0x405f1c
dec eax
je 0x405f0f
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x21
push eax
call fcn.00442672
push ecx
mov dword [ebp - 4], ebx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.250_File_deleted_successfully
jmp 0x405f27
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_File_not_found
jmp 0x405f27
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Permission_denied
call fcn.004410d4
mov ecx, esi
call fcn.004051f0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00441066
jmp 0x406535
mov ecx, dword [0x467c48]
mov dword [ebp - 0x1c], ecx
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 fcn.00440ddb
push ecx
lea edx, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push edx
mov byte [ebp - 4], 0x24
call fcn.00440ddb
lea ecx, [esi + 0x30]
mov byte [ebp - 4], bl
call fcn.004065f0
push eax
mov ecx, 0x46c8e4
call fcn.004176f0
dec eax
je 0x405fe1
dec eax
je 0x405fd4
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405fc7
call sub.WSOCK32.dll_WSAGetLastError
push ecx
cmp eax, 0x91
mov ecx, esp
jne 0x405fbd
mov dword [ebp - 0x14], esp
push str.550_Directory_not_empty.
jmp 0x405fec
mov dword [ebp - 0x14], esp
push str.450_Internal_error_deleting_the_directory.
jmp 0x405fec
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.250_Directory_deleted_successfully
jmp 0x405fec
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Directory_not_found
jmp 0x405fec
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Permission_denied
call fcn.004410d4
mov ecx, esi
call fcn.004051f0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00441066
jmp 0x406535
mov ecx, dword [0x467c48]
mov dword [ebp - 0x18], ecx
lea edx, [ebp - 0x18]
lea eax, [esi + 0x5c]
push edx
push 5
push ecx
mov byte [ebp - 4], 0x26
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00440ddb
push ecx
lea edx, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push edx
mov byte [ebp - 4], 0x27
call fcn.00440ddb
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 0x26
call fcn.004065f0
push eax
mov ecx, 0x46c8e4
call fcn.004176f0
sub eax, 0
je 0x406183
dec eax
je 0x406176
sub eax, 2
je 0x406169
push 0x4668c8
lea ecx, [ebp - 0x18]
call fcn.004413f6
mov eax, dword [0x467c48]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
push 0x46c838
push ecx
mov byte [ebp - 4], 0x29
call fcn.0041a96f
add esp, 8
test eax, eax
je 0x406133
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x4668c8
lea ecx, [ebp - 0x18]
call fcn.0043a912
inc eax
lea edx, [ebp - 0x34]
push eax
push edx
lea ecx, [ebp - 0x18]
call fcn.0043a878
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x2a
call fcn.00441432
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x29
call fcn.00441066
push 0x4668c8
lea ecx, [ebp - 0x18]
call fcn.0043a912
inc eax
lea ecx, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0043a743
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x2b
call fcn.00441153
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x29
call fcn.00441066
mov ecx, dword [ebp - 0x1c]
push 0
push ecx
call ebx
mov edx, dword [ebp - 0x18]
push 0x46c838
push edx
mov edi, eax
call fcn.0041a96f
add esp, 8
test eax, eax
jne 0x4060a6
jmp 0x406136
mov edi, dword [ebp - 0x14]
push ecx
test edi, edi
mov ecx, esp
jne 0x406147
mov dword [ebp - 0x14], esp
push str.450_Internal_error_creating_the_directory.
jmp 0x40614f
mov dword [ebp - 0x14], esp
push str.250_Directory_created_successfully
call fcn.004410d4
mov ecx, esi
call fcn.004051f0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x26
call fcn.00441066
jmp 0x40619a
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Directoryname_not_valid
jmp 0x40618e
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Cant_create_directory._Permission_denied
jmp 0x40618e
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Directory_already_exists
call fcn.004410d4
mov ecx, esi
call fcn.004051f0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00441066
jmp 0x406535
mov eax, dword [0x467c48]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
lea edi, [esi + 0x5c]
push ecx
push 3
push ecx
mov byte [ebp - 4], 0x2c
mov ecx, esp
mov dword [ebp - 0x14], esp
push edi
call fcn.00440ddb
push ecx
lea edx, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push edx
mov byte [ebp - 4], 0x2d
call fcn.00440ddb
lea ebx, [esi + 0x30]
mov byte [ebp - 4], 0x2c
mov ecx, ebx
call fcn.004065f0
push eax
mov ecx, 0x46c8e4
call fcn.00417340
test eax, eax
jne 0x406237
lea eax, [ebp - 0x18]
lea ecx, [esi + 0x54]
push eax
call fcn.00441153
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 fcn.004410d4
mov ecx, esi
call fcn.004051f0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00441066
jmp 0x406535
lea ecx, [ebp - 0x18]
push ecx
push 3
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push edi
call fcn.00440ddb
push ecx
lea edx, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push edx
mov byte [ebp - 4], 0x2f
call fcn.00440ddb
mov ecx, ebx
mov byte [ebp - 4], 0x2c
call fcn.004065f0
push eax
mov ecx, 0x46c8e4
call fcn.004176f0
sub eax, 0
je 0x406291
push ecx
dec eax
mov ecx, esp
je 0x406287
mov dword [ebp - 0x14], esp
push str.550_file_directory_not_found
jmp 0x4062af
mov dword [ebp - 0x14], esp
push str.550_Permission_denied
jmp 0x4062af
lea eax, [ebp - 0x18]
lea ecx, [esi + 0x54]
push eax
call fcn.00441153
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 fcn.004410d4
mov ecx, esi
call fcn.004051f0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00441066
jmp 0x406535
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4062e6
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.503_Bad_sequence_of_commands_
jmp 0x406529
mov eax, dword [esi + 0x50]
mov edx, dword [0x467c48]
test eax, eax
je 0x4063a3
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 0x1c]
lea edx, [esi + 0x5c]
push eax
push 3
push ecx
mov bl, 0x31
mov ecx, esp
mov dword [ebp - 0x14], esp
push edx
mov byte [ebp - 4], bl
call fcn.00440ddb
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
mov byte [ebp - 4], 0x32
call fcn.00440ddb
lea ecx, [esi + 0x30]
mov byte [ebp - 4], bl
call fcn.004065f0
push eax
mov ecx, 0x46c8e4
call fcn.00417340
sub eax, 0
je 0x40637b
dec eax
je 0x40636e
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 0x406364
mov dword [ebp - 0x14], esp
push str.450_Internal_error_renaming_the_file
jmp 0x406386
mov dword [ebp - 0x14], esp
push str.250_file_renamed_successfully
jmp 0x406386
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Permission_denied
jmp 0x406386
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_file_exists
call fcn.004410d4
mov ecx, esi
call fcn.004051f0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00441066
jmp 0x406535
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 0x1c]
lea edx, [esi + 0x5c]
push eax
push 3
push ecx
mov bl, 0x34
mov ecx, esp
mov dword [ebp - 0x14], esp
push edx
mov byte [ebp - 4], bl
call fcn.00440ddb
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
mov byte [ebp - 4], 0x35
call fcn.00440ddb
lea ecx, [esi + 0x30]
mov byte [ebp - 4], bl
call fcn.004065f0
push eax
mov ecx, 0x46c8e4
call fcn.004176f0
sub eax, 0
je 0x406439
dec eax
je 0x40642c
sub eax, 2
je 0x40641f
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 0x406415
mov dword [ebp - 0x14], esp
push str.450_Internal_error_renaming_the_file
jmp 0x406444
mov dword [ebp - 0x14], esp
push str.250_file_renamed_successfully
jmp 0x406444
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Filename_invalid
jmp 0x406444
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_Permission_denied
jmp 0x406444
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.550_directory_exists
call fcn.004410d4
mov ecx, esi
call fcn.004051f0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00441066
jmp 0x406535
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x40649e
call fcn.00407400
test eax, eax
je 0x406488
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.426_Connection_closed__transfer_aborted.
call fcn.004410d4
mov ecx, esi
call fcn.004051f0
mov eax, dword [esi + 0x28]
push 0
push 0
push 0x4ca
mov edx, dword [eax + 0x2c]
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 0x406529
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.215_UNIX_emulated_by_Pablos_FTP_Server
jmp 0x406529
mov eax, dword [esi + 0x28]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [eax + 0x6c]
call fcn.00406600
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 fcn.00441323
mov ecx, esi
call fcn.004051f0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10]
mov esi, dword [esi + 0x28]
push 0
push edi
push 0x4ca
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00441066
jmp 0x406535
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.200_OK
jmp 0x406529
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.502_Command_not_implemented.
call fcn.004410d4
mov ecx, esi
call fcn.004051f0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00441066
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00441066
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret