Function at 0x42f710
Capabilities:
Get common file path
Get file size
Get program files directory
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1b84
call fcn.005fec20
mov eax, dword [0x708c34]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 9
pop ecx
push 0x3c4
mov dword [ebp - 0x1b6c], eax
lea edi, [ebp - 0xfb0]
xor ebx, ebx
lea eax, [ebp - 0xf8c]
mov esi, str.LeapFTP_3.0usersdefault_sites.dat
push ebx
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00626f50
mov esi, dword [ebp - 0x1b6c]
push esi
call fcn.00631510
add esp, 0x10
cmp eax, 1
jae 0x42f7d8
cmp dword [0x716864], ebx
push 0x26
pop eax
push 0x2a
pop ecx
cmovne eax, ecx
lea ecx, [ebp - 0x1b68]
push ecx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x42f7af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RecoverLeapFTPPasswords
push str._s_Failed_to_find_Program_files_folder__Error0x_.8x
call fcn.00449974
add esp, 0xc
xor eax, eax
jmp 0x42fb7d
lea eax, [ebp - 0xfb0]
push eax
lea eax, [ebp - 0x1b68]
push eax
push 0x66c218
lea eax, [ebp - 0x3f8]
push 0x3e8
push eax
call fcn.00445d6d
add esp, 0x14
jmp 0x42f7ed
push esi
lea eax, [ebp - 0x3f8]
push 0x3e8
push eax
call fcn.006311ec
add esp, 0xc
lea eax, [ebp - 0x3f8]
mov esi, str.RecoverLeapFTPPasswords
push eax
push esi
push str._n_s_Final_profile_path___s
call fcn.00449974
add esp, 0xc
lea eax, [ebp - 0x3f8]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x1b84], edi
cmp edi, 0xffffffff
jne 0x42f84e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x3f8]
push eax
push esi
push str._n_s_:_Failed_to_open__s__Error0x_.8x
call fcn.00449974
add esp, 0x10
jmp 0x42f7a8
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
mov dword [ebp - 0x1b80], esi
test esi, esi
jne 0x42f893
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x3f8]
push eax
push str.RecoverLeapFTPPasswords
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 0x42f7a8
push ebx
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x1b74], eax
test eax, eax
jne 0x42f8d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RecoverLeapFTPPasswords
push str._s_:_Failed_to_map_view_of_flle__Error0x_.8x
call fcn.00449974
add esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
jmp 0x42f7a8
push eax
push str.RecoverLeapFTPPasswords
push str._n_s_:_File_is_successfully_mapped_at_address__0x_.8x
call fcn.00449974
add esp, 0xc
mov dword [ebp - 0x1b7c], ebx
lea eax, [ebp - 0x1b7c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1b6c], eax
cmp dword [ebp - 0x1b7c], ebx
je 0x42f91b
push str.RecoverLeapFTPPasswords
push str._n_s_:_Critical_Situation___File_Size_is_higher_than_we_have_expected
call fcn.00449974
pop ecx
pop ecx
jmp 0x42f8c2
push eax
push str.RecoverLeapFTPPasswords
push str._n_s_:_File_size_is__u
call fcn.00449974
mov esi, str.My_Sites
lea edi, [ebp - 0x10]
push str._n_Searching_for_start_label_My_Sites...
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.00449974
lea eax, [ebp - 0x10]
push eax
call fcn.00631510
mov edi, dword [ebp - 0x1b74]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x10
push edi
call fcn.00449f17
mov ecx, eax
add esp, 0x24
test ecx, ecx
jne 0x42f97b
push str.RecoverLeapFTPPasswords
push str._n_s_:_No_start_label_My_Sites_string_found__returning_now
call fcn.00449974
pop ecx
pop ecx
jmp 0x42fb65
mov eax, ecx
sub eax, edi
push eax
push ecx
push str._n_Found_My_Sites_label_at_0x_.8x__offset__0x_.8x_
call fcn.00449974
xor eax, eax
add esp, 0xc
inc eax
add edi, 0x10
mov dword [ebp - 0x1b78], eax
mov eax, dword [ebp - 0x1b74]
add eax, dword [ebp - 0x1b6c]
mov dword [ebp - 0x1b70], eax
mov byte [ebp - 0x1780], bl
mov byte [ebp - 0x1398], bl
mov byte [ebp - 0x7e0], bl
mov byte [ebp - 0xbc8], bl
cmp edi, eax
ja 0x42fb36
movzx esi, byte [edi + 2]
push esi
push str._n_Found_Site_name_length__d
call fcn.00449974
mov eax, dword [ebp - 0x1b70]
add edi, 5
add edi, esi
pop ecx
pop ecx
cmp edi, eax
ja 0x42fb36
movzx esi, byte [edi]
push esi
push str._n_Found_server_length__d
call fcn.00449974
push esi
lea eax, [edi + 1]
mov ebx, 0x3e8
push eax
lea eax, [ebp - 0xbc8]
push ebx
push eax
call fcn.00631360
lea eax, [ebp - 0xbc8]
push eax
push str._n_Found_server__s
call fcn.00449974
mov eax, dword [ebp - 0x1b70]
inc edi
add edi, esi
add esp, 0x20
cmp edi, eax
ja 0x42fb36
movzx esi, byte [edi]
push esi
push str._n_Found_username_length__d
call fcn.00449974
push esi
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x7e0]
push ebx
push eax
call fcn.00631360
lea eax, [ebp - 0x7e0]
push eax
push str._n_Found_username__s
call fcn.00449974
mov eax, dword [ebp - 0x1b70]
inc edi
add edi, esi
add esp, 0x20
cmp edi, eax
ja 0x42fb36
mov bl, byte [edi]
movzx esi, bl
push esi
push str._n_Found_password_length__d
mov dword [ebp - 0x1b6c], esi
call fcn.00449974
push esi
lea eax, [edi + 1]
mov esi, 0x3e8
push eax
lea eax, [ebp - 0x1398]
push esi
push eax
call fcn.00631360
add esp, 0x18
test bl, bl
je 0x42fad3
push esi
mov esi, dword [ebp - 0x1b6c]
lea eax, [ebp - 0x1780]
push eax
lea eax, [ebp - 0x1398]
push esi
push eax
call fcn.00407dec
add esp, 0x10
jmp 0x42fad9
mov esi, dword [ebp - 0x1b6c]
push 0xffffffffffffffff
mov ecx, 0x66ae5d
lea eax, [ebp - 0x1780]
push ecx
push eax
lea eax, [ebp - 0x7e0]
push eax
lea eax, [ebp - 0xbc8]
push eax
push ecx
push 0x145
push 4
call fcn.00412c85
add edi, 0x4f
add edi, esi
mov eax, edi
sub eax, dword [ebp - 0x1b74]
push eax
push edi
push str._n_Next_SITE_RECORD__at_0x_.8x__offset__0x_.8x_
call fcn.00449974
mov eax, dword [ebp - 0x1b70]
add esp, 0x2c
cmp edi, eax
ja 0x42fb36
inc dword [ebp - 0x1b78]
xor ebx, ebx
jmp 0x42f9ac
push eax
push edi
push str._n_Error___Next_SITE_RECORD__0x_.8x__is_outside_file_boundary__0x_.8x_...._Breaking_now
call fcn.00449974
mov eax, dword [ebp - 0x1b78]
push eax
push str._n_Total_LEAPFTP_Site_records_found___d
call fcn.00449974
add esp, 0x14
push dword [ebp - 0x1b74]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor ebx, ebx
inc ebx
push dword [ebp - 0x1b80]
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