Function at 0x423ef0
Capabilities:
Copy file
Delete file
Get common file path
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1b94
call fcn.005fec20
mov eax, dword [0x708c34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, str.RecoverCuteFTPPasswordFromFile
push edi
push str._n_n_s_:_recovering_from__file__s
call fcn.00449974
add esp, 0xc
lea eax, [ebp - 0x1b74]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
xor ebx, ebx
push ebx
push 0x186a0
push edx
push eax
call fcn.005feba0
push edx
push eax
lea eax, [ebp - 0x1b74]
push eax
push str._sce_sm_ff__d
lea eax, [ebp - 0x404]
push 0x3e8
push eax
call fcn.00445d6d
lea eax, [ebp - 0x404]
push eax
push edi
push str._n_s_:_Final_account_path_is__s
call fcn.00449974
add esp, 0x24
lea eax, [ebp - 0x404]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x423fae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x404]
push eax
push esi
push edi
push str._s:_Failed_to_copy_file__s_to_tmp_file__s__Error0x_.8x
call fcn.00449974
add esp, 0x14
jmp 0x423fc9
lea eax, [ebp - 0x404]
push eax
push edi
push str._s:_Successfully_copied_to_tmp_file__s
call fcn.00449974
add esp, 0xc
lea esi, [ebp - 0x404]
push esi
push edi
push str._n_s_:_Final_account_path_is__s
call fcn.00449974
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x1b84], edi
cmp edi, 0xffffffff
jne 0x424019
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.RecoverCuteFTPPasswordFromFile
push str._n_s_:_Failed_to_open__s__Error0x_.8x
call fcn.00449974
add esp, 0x10
xor eax, eax
jmp 0x4244ce
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x1b90], eax
test eax, eax
jne 0x424053
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.RecoverCuteFTPPasswordFromFile
push str._s_:_Failed_to_create_flle_mapping_for__s___Error0x_.8x
call fcn.00449974
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x424012
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x1b80], edi
test edi, edi
jne 0x42409f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RecoverCuteFTPPasswordFromFile
push str._s_:_Failed_to_map_view_of_flle__Error0x_.8x
call fcn.00449974
add esp, 0xc
push dword [ebp - 0x1b90]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1b84]
call esi
jmp 0x424012
push edi
push str.RecoverCuteFTPPasswordFromFile
push str._n_s_:_File_is_successfully_mapped_at_address__0x_.8x
call fcn.00449974
add esp, 0xc
mov dword [ebp - 0x1b94], ebx
lea eax, [ebp - 0x1b94]
push eax
push dword [ebp - 0x1b84]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x1b7c], esi
cmp dword [ebp - 0x1b94], ebx
je 0x4240ee
push str.RecoverCuteFTPPasswordFromFile
push str._n_s_:_Critical_Situation___File_Size_is_higher_than_we_have_expected
call fcn.00449974
pop ecx
pop ecx
jmp 0x424084
push esi
push str.RecoverCuteFTPPasswordFromFile
push str._n_s_:_File_size_is__u
call fcn.00449974
push str._n_Searching_for_start_label_CSMSit
mov dword [ebp - 0x1c], 0x534d5343
mov dword [ebp - 0x18], 0x657469
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xf], ebx
mov dword [ebp - 0xb], 0xb000000
mov word [ebp - 7], bx
mov byte [ebp - 5], bl
mov word [ebp - 0x1b78], 0xfeff
mov byte [ebp - 0x1b76], 0xff
call fcn.00449974
lea eax, [ebp - 0x1c]
push eax
call fcn.00631510
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
call fcn.00449f17
mov edi, eax
add esp, 0x24
test edi, edi
jne 0x424172
push str.RecoverCuteFTPPasswordFromFile
push str._n_s_:_No_CSMSite_string_found__returning_now
call fcn.00449974
pop ecx
pop ecx
jmp 0x4244b6
mov eax, edi
sub eax, dword [ebp - 0x1b80]
push eax
push edi
push str._n_Found_CSMSite_at_0x_.8x__offset__0x_.8x_
call fcn.00449974
lea eax, [ebp - 0x1c]
push eax
call fcn.00631510
add edi, eax
mov bl, byte [edi + 4]
movzx eax, bl
push eax
push eax
push str._n_Found_Current_site_index_0x_.8x___d_
call fcn.00449974
xor eax, eax
mov byte [ebp - 0x10], bl
add esp, 0x1c
inc eax
mov dword [ebp - 0x1b8c], eax
xor ebx, ebx
lea eax, [ebp - 0x1b78]
push 3
push eax
add edi, 0x10
mov byte [ebp - 0x13a4], bl
push edi
mov byte [ebp - 0x178c], bl
mov byte [ebp - 0xfbc], bl
mov byte [ebp - 0xbd4], bl
mov byte [ebp - 0x7ec], bl
call fcn.0062534d
add esp, 0xc
test eax, eax
jne 0x42447c
movzx esi, byte [edi + 3]
push esi
push str._n_Found_Site_name_length__d
call fcn.00449974
mov eax, dword [ebp - 0x1b7c]
lea esi, [edi + esi*2]
mov edi, dword [ebp - 0x1b80]
sub eax, esi
add eax, edi
push eax
push eax
push esi
push str._n_Searching_for_next_seperator_at_0x_.8x_in_remaining_size_0x_.8x___d_
mov dword [ebp - 0x1b88], eax
call fcn.00449974
push 3
lea eax, [ebp - 0x1b78]
push eax
push dword [ebp - 0x1b88]
push esi
call fcn.00449f17
mov esi, eax
add esp, 0x28
test esi, esi
je 0x424475
mov ecx, esi
sub ecx, edi
push ecx
push esi
push str._n_Found_next_Seperator_at_0x_.8x__offset__0x_.8x_
call fcn.00449974
mov eax, dword [ebp - 0x1b88]
add esi, 4
push eax
push eax
push esi
push str._n_Searching_for_next_seperator__for_host_address__at_0x_.8x_in_remaining_size_0x_.8x___d_
call fcn.00449974
push 3
lea eax, [ebp - 0x1b78]
push eax
mov eax, dword [ebp - 0x1b7c]
sub eax, esi
add eax, edi
push eax
push esi
call fcn.00449f17
mov esi, eax
add esp, 0x2c
mov dword [ebp - 0x1b88], esi
test esi, esi
je 0x42446e
mov ecx, esi
sub ecx, edi
push ecx
push esi
push str._n_Found_next_Seperator__for_host_address__at_0x_.8x__offset__0x_.8x_
call fcn.00449974
movzx esi, byte [esi + 3]
push esi
push str._n_Found_Host_Address_length__d
call fcn.00449974
mov edi, dword [ebp - 0x1b88]
lea eax, [ebp - 0x7ec]
add esp, 0x14
add edi, 4
push ebx
push ebx
push 0x3e8
push eax
push esi
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x7ec]
mov byte [ebp + esi - 0x7ec], bl
push eax
push str._n_Found_Host_Address__s
call fcn.00449974
push 3
lea eax, [ebp - 0x1b78]
lea edi, [edi + esi*2]
push eax
add edi, 4
push edi
call fcn.0062534d
add esp, 0x14
test eax, eax
jne 0x424467
mov bl, byte [edi + 3]
movzx esi, bl
push esi
push str._n_Found_Username_length__d
call fcn.00449974
add esi, esi
lea eax, [ebp - 0xbd4]
push esi
add edi, 4
push edi
push eax
call fcn.006269d0
add esp, 0x14
test bl, bl
je 0x42435b
push 0x3e8
lea eax, [ebp - 0x178c]
push eax
lea eax, [ebp - 0xbd4]
push esi
push eax
call fcn.004093c5
add esp, 0x10
push 3
lea eax, [ebp - 0x1b78]
add edi, esi
push eax
push edi
call fcn.0062534d
add esp, 0xc
test eax, eax
jne 0x424460
mov bl, byte [edi + 3]
movzx esi, bl
push esi
push str._n_Found_password_length__d
call fcn.00449974
add esi, esi
lea eax, [ebp - 0xfbc]
push esi
add edi, 4
push edi
push eax
call fcn.006269d0
add esp, 0x14
test bl, bl
je 0x4243be
push 0x3e8
lea eax, [ebp - 0x13a4]
push eax
lea eax, [ebp - 0xfbc]
push esi
push eax
call fcn.004093c5
add esp, 0x10
push 0xffffffffffffffff
mov ecx, 0x66ae5d
lea eax, [ebp - 0x13a4]
push ecx
push eax
lea eax, [ebp - 0x178c]
push eax
lea eax, [ebp - 0x7ec]
push eax
push ecx
push 0x134
push 4
call fcn.00412c85
mov ebx, dword [ebp - 0x1b80]
add edi, esi
mov esi, dword [ebp - 0x1b7c]
inc byte [ebp - 0x10]
sub esi, edi
add esi, ebx
push esi
push esi
push edi
push str._n_Searching_for_next_SITE_RECORD_at_0x_.8x_in_remaining_size_0x_.8x___d_
call fcn.00449974
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
push edi
call fcn.00449f17
mov edi, eax
add esp, 0x40
test edi, edi
je 0x424459
sub eax, ebx
push eax
push edi
push str._n_Found_next_SITE_RECORD__at_0x_.8x__offset__0x_.8x_
call fcn.00449974
mov eax, dword [ebp - 0x1b7c]
add esp, 0xc
add eax, ebx
cmp edi, eax
ja 0x424448
inc dword [ebp - 0x1b8c]
jmp 0x4241b2
push eax
push edi
push str._n_Error___Next_SITE_RECORD__0x_.8x__is_outside_file_boundary__0x_.8x_...._Breaking_now
call fcn.00449974
add esp, 0xc
jmp 0x424487
push str._n_Could_not_find_SITE_RECORD_for_host_address_
jmp 0x424481
push str._n_Unable_to_find_seperator_before_password__...breaking_now
jmp 0x424481
push str._n_Unable_to_find_seperator_before_username__...breaking_now
jmp 0x424481
push str._n_Could_not_find_next_Seperator__for_host_address_
jmp 0x424481
push str._n_Could_not_find_next_Seperator
jmp 0x424481
push str._n_Unable_to_find_seperator_before_Site_Name__...breaking_now
call fcn.00449974
pop ecx
mov eax, dword [ebp - 0x1b8c]
push eax
push str._n_Total_CuteFTP_Site_records_found___d
call fcn.00449974
pop ecx
pop ecx
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x1b80]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor ebx, ebx
inc ebx
push dword [ebp - 0x1b90]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1b84]
call esi
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005fe955
leave
ret