Function at 0x42b404
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x6d80
call fcn.005fec20
mov eax, dword [0x708c34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x1b73]
push esi
push edi
mov esi, 0x3e7
mov byte [ebp - 0x1b74], 0
push esi
push 0
push eax
call fcn.00626f50
push esi
lea eax, [ebp - 0x1f5b]
mov byte [ebp - 0x1f5c], 0
push 0
push eax
call fcn.00626f50
push 5
pop ecx
mov esi, str.FreeCommander.ftp.ini
lea edi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call fcn.00631510
add esp, 0x1c
cmp eax, 1
jae 0x42b4aa
lea eax, [ebp - 0x1f5c]
push eax
xor eax, eax
push eax
push eax
push 0x1c
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x42b49d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RecoverFreeCommanderPasswords
push str._s_Failed_to_find_appdata_folder__Error0x_.8x
jmp 0x42b938
mov eax, str._sFreeCommanderXESettings_s
lea ebx, [ebp - 0x1f5c]
jmp 0x42b4af
mov eax, str._sSettings_s
lea ecx, [ebp - 0x1c]
mov esi, 0x3e8
push ecx
push ebx
push eax
lea eax, [ebp - 0x1b74]
push esi
push eax
call fcn.00445d6d
lea eax, [ebp - 0x1b74]
push eax
push str._n_Final_file_path_is____s
call fcn.00449974
push 0x66ca20
lea eax, [ebp - 0x1b74]
xor ebx, ebx
push eax
lea eax, [ebp - 0x6d80]
mov dword [ebp - 0x6d80], ebx
push eax
call fcn.00632119
add esp, 0x28
test eax, eax
jne 0x42b927
cmp dword [ebp - 0x6d80], ebx
je 0x42b927
lea edi, [esi - 1]
mov byte [ebp - 0xbd4], bl
push edi
lea eax, [ebp - 0xbd3]
push ebx
push eax
call fcn.00626f50
push edi
lea eax, [ebp - 0x178b]
mov byte [ebp - 0x178c], bl
push ebx
push eax
call fcn.00626f50
push edi
lea eax, [ebp - 0xfbb]
mov byte [ebp - 0xfbc], bl
push ebx
push eax
call fcn.00626f50
push edi
lea eax, [ebp - 0x7eb]
mov byte [ebp - 0x7ec], bl
push ebx
push eax
call fcn.00626f50
push edi
lea eax, [ebp - 0x403]
mov byte [ebp - 0x404], bl
push ebx
push eax
call fcn.00626f50
push edi
lea eax, [ebp - 0x13a3]
mov byte [ebp - 0x13a4], bl
push ebx
push eax
call fcn.00626f50
add esp, 0x48
lea eax, [ebp - 0x466c]
push dword [ebp - 0x6d80]
push 0x2710
push eax
call fcn.00631f4f
mov edi, 0x66ae5d
jmp 0x42b885
lea eax, [ebp - 0x466c]
push eax
call fcn.00631510
pop ecx
test eax, eax
je 0x42b5df
lea eax, [ebp - 0x466c]
push eax
call fcn.00631510
dec eax
pop ecx
cmp eax, 0x2710
jae 0x42b951
mov byte [ebp + eax - 0x466c], bl
lea eax, [ebp - 0x466c]
push eax
call fcn.00449da7
lea eax, [ebp - 0x466c]
push eax
lea eax, [ebp - 0x6d7c]
push 0x2710
push eax
call fcn.006311ec
lea eax, [ebp - 0x6d7c]
push eax
call fcn.00631510
inc eax
push eax
lea eax, [ebp - 0x6d7c]
push eax
call fcn.00631711
lea eax, [ebp - 0x466c]
push 0x5b
push eax
call fcn.006270b0
add esp, 0x24
test eax, eax
je 0x42b711
lea eax, [ebp - 0x466c]
push 0x5d
push eax
call fcn.006270b0
pop ecx
pop ecx
test eax, eax
je 0x42b711
lea eax, [ebp - 0xbd4]
push eax
lea eax, [ebp - 0x466c]
push eax
push str._n___Found_new_entry....__s___s_
call fcn.00449974
lea eax, [ebp - 0xbd4]
push eax
call fcn.00631510
add esp, 0x10
test eax, eax
je 0x42b6ee
lea eax, [ebp - 0x404]
push eax
call fcn.00631510
pop ecx
test eax, eax
je 0x42b6af
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x7ec]
push eax
push str._s:_s
lea eax, [ebp - 0x13a4]
push esi
push eax
call fcn.00445d6d
add esp, 0x14
jmp 0x42b6c6
lea eax, [ebp - 0x7ec]
push eax
lea eax, [ebp - 0x13a4]
push esi
push eax
call fcn.006311ec
add esp, 0xc
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0xbd4]
push eax
lea eax, [ebp - 0xfbc]
push eax
lea eax, [ebp - 0x13a4]
push eax
push edi
push 0x14e
push 4
call fcn.00412c85
add esp, 0x20
mov byte [ebp - 0xfbc], bl
mov byte [ebp - 0x404], bl
mov byte [ebp - 0x7ec], bl
mov byte [ebp - 0x178c], bl
mov byte [ebp - 0xbd4], bl
jmp 0x42b86e
lea eax, [ebp - 0x6d7c]
push str.ftpserver
push eax
call fcn.00627320
pop ecx
pop ecx
test eax, eax
je 0x42b762
lea eax, [ebp - 0x466c]
push 0x3d
push eax
call fcn.006270b0
inc eax
push eax
lea eax, [ebp - 0x7ec]
push esi
push eax
call fcn.006311ec
lea eax, [ebp - 0x7ec]
push eax
call fcn.00449da7
lea eax, [ebp - 0x7ec]
push eax
push str._n_Found_host_s
jmp 0x42b7fc
lea eax, [ebp - 0x6d7c]
push str.serverport
push eax
call fcn.00627320
pop ecx
pop ecx
test eax, eax
je 0x42b7b0
lea eax, [ebp - 0x466c]
push 0x3d
push eax
call fcn.006270b0
inc eax
push eax
lea eax, [ebp - 0x404]
push esi
push eax
call fcn.006311ec
lea eax, [ebp - 0x404]
push eax
call fcn.00449da7
lea eax, [ebp - 0x404]
push eax
push str._n_Found_port_s
jmp 0x42b7fc
lea eax, [ebp - 0x6d7c]
push str.ftpuser
push eax
call fcn.00627320
pop ecx
pop ecx
test eax, eax
je 0x42b806
lea eax, [ebp - 0x466c]
push 0x3d
push eax
call fcn.006270b0
inc eax
push eax
lea eax, [ebp - 0xfbc]
push esi
push eax
call fcn.006311ec
lea eax, [ebp - 0xfbc]
push eax
call fcn.00449da7
lea eax, [ebp - 0xfbc]
push eax
push str._n_Found_username_s
call fcn.00449974
add esp, 0x20
jmp 0x42b86e
lea eax, [ebp - 0x6d7c]
push str.ftpuserpass
push eax
call fcn.00627320
pop ecx
pop ecx
test eax, eax
je 0x42b86e
lea eax, [ebp - 0x466c]
push 0x3d
push eax
call fcn.006270b0
inc eax
push eax
lea eax, [ebp - 0x178c]
push esi
push eax
call fcn.006311ec
lea eax, [ebp - 0x178c]
push eax
call fcn.00449da7
push esi
lea eax, [ebp - 0xbd4]
push eax
lea eax, [ebp - 0x178c]
push eax
call fcn.00407bcc
lea eax, [ebp - 0xbd4]
push eax
push str._n_Found_password_s
call fcn.00449974
add esp, 0x2c
push dword [ebp - 0x6d80]
lea eax, [ebp - 0x466c]
push 0x2710
push eax
call fcn.00631f4f
add esp, 0xc
test eax, eax
jne 0x42b5ae
push dword [ebp - 0x6d80]
call fcn.00637603
lea eax, [ebp - 0xbd4]
push eax
call fcn.00631510
pop ecx
pop ecx
test eax, eax
je 0x42b922
lea eax, [ebp - 0x404]
push eax
call fcn.00631510
pop ecx
test eax, eax
je 0x42b8e3
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x7ec]
push eax
push str._s:_s
lea eax, [ebp - 0x13a4]
push esi
push eax
call fcn.00445d6d
add esp, 0x14
jmp 0x42b8fa
lea eax, [ebp - 0x7ec]
push eax
lea eax, [ebp - 0x13a4]
push esi
push eax
call fcn.006311ec
add esp, 0xc
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0xbd4]
push eax
lea eax, [ebp - 0xfbc]
push eax
lea ecx, [ebp - 0x13a4]
push ecx
push edi
push 0x14e
push 4
call fcn.00412c85
add esp, 0x20
xor eax, eax
inc eax
jmp 0x42b942
lea eax, [ebp - 0x1b74]
push eax
push str.RecoverFreeCommanderPasswords
push str._s_Failed_to_open_file__s
call fcn.00449974
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005fe955
leave
ret
call fcn.005fe87a
int3