Function at 0x43cb9c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x6598
call fcn.005fec20
mov eax, dword [0x708c34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1773]
push edi
mov edi, 0x3e7
xor ebx, ebx
push edi
push ebx
push eax
mov byte [ebp - 0x1774], bl
call fcn.00626f50
push edi
lea eax, [ebp - 0xfa3]
mov byte [ebp - 0xfa4], bl
push ebx
push eax
call fcn.00626f50
push esi
call fcn.00631510
add esp, 0x1c
cmp eax, 1
jae 0x43cc28
lea eax, [ebp - 0x1774]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x43cc22
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RecoverWinSCPPasswordFromFile
push str._s_Failed_to_find_appdata_folder__Error0x_.8x
jmp 0x43d00c
lea esi, [ebp - 0x1774]
push esi
push str._sWinSCP.ini
lea eax, [ebp - 0xfa4]
push 0x3e8
push eax
call fcn.00445d6d
lea eax, [ebp - 0xfa4]
push eax
push str.RecoverWinSCPPasswordFromFile
push str._s___Final_winscp_storage_file____s
call fcn.00449974
push 0x66ca20
lea eax, [ebp - 0xfa4]
mov dword [ebp - 0x6598], ebx
push eax
lea eax, [ebp - 0x6598]
push eax
call fcn.00632119
add esp, 0x28
test eax, eax
jne 0x43cffb
cmp dword [ebp - 0x6598], ebx
je 0x43cffb
mov edi, ebx
mov byte [ebp - 0x3ec], bl
mov byte [ebp - 0x7d4], bl
mov byte [ebp - 0xbbc], bl
jmp 0x43cf68
lea eax, [ebp - 0x6594]
push eax
call fcn.00631510
pop ecx
test eax, eax
je 0x43ccd4
lea eax, [ebp - 0x6594]
push eax
call fcn.00631510
dec eax
pop ecx
cmp eax, 0x2710
jae 0x43d025
mov byte [ebp + eax - 0x6594], bl
lea eax, [ebp - 0x6594]
push eax
call fcn.00449da7
lea eax, [ebp - 0x6594]
push eax
lea eax, [ebp - 0x3e84]
push 0x2710
push eax
call fcn.006311ec
lea eax, [ebp - 0x3e84]
push eax
call fcn.00631510
inc eax
push eax
lea eax, [ebp - 0x3e84]
push eax
call fcn.00631711
push str._sessions_
call fcn.00631510
push eax
lea eax, [ebp - 0x3e84]
push str._sessions_
push eax
call fcn.00631760
add esp, 0x2c
test eax, eax
jne 0x43cdcc
lea eax, [ebp - 0x3ec]
push eax
call fcn.00631510
pop ecx
test eax, eax
je 0x43cd99
lea eax, [ebp - 0x3ec]
push eax
lea eax, [ebp - 0x7d4]
push eax
lea eax, [ebp - 0xbbc]
push eax
push str.Adding_New_FTP_Session:__Host_s__User_s__Pass_s
call fcn.00449974
push 0xffffffffffffffff
push 0x66ae5d
lea eax, [ebp - 0x3ec]
push eax
lea eax, [ebp - 0x7d4]
push eax
lea eax, [ebp - 0xbbc]
push eax
push 0x66ae5d
push 0x136
push 4
call fcn.00412c85
add esp, 0x30
lea eax, [ebp - 0x3e84]
push eax
push str.RecoverWinSCPPasswordFromFile
push str._n_n_s___Found_new_account_line____s
call fcn.00449974
xor edi, edi
mov byte [ebp - 0x3ec], bl
add esp, 0xc
mov byte [ebp - 0x7d4], bl
mov byte [ebp - 0xbbc], bl
inc edi
jmp 0x43cf68
cmp byte [ebp - 0x3e84], 0x5b
jne 0x43cddc
mov edi, ebx
jmp 0x43cf68
test edi, edi
je 0x43cf68
lea eax, [ebp - 0x3e84]
push str.hostname
push eax
call fcn.00627320
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x43ce50
push str.hostname
call fcn.00631510
lea ecx, [ebp - 0x3e84]
sub esi, ecx
lea ecx, [ebp - 0x6594]
add ecx, esi
add ecx, eax
lea eax, [ebp - 0xbbc]
push ecx
push 0x3e8
push eax
call fcn.006311ec
lea eax, [ebp - 0xbbc]
push eax
call fcn.00449da7
lea eax, [ebp - 0xbbc]
push eax
push str.Found_hostname_s
call fcn.00449974
add esp, 0x1c
jmp 0x43cf68
lea eax, [ebp - 0x3e84]
push str.username
push eax
call fcn.00627320
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x43ceb1
push str.username
call fcn.00631510
lea ecx, [ebp - 0x3e84]
sub esi, ecx
lea ecx, [ebp - 0x6594]
add ecx, esi
add ecx, eax
lea eax, [ebp - 0x7d4]
push ecx
push 0x3e8
push eax
call fcn.006311ec
lea eax, [ebp - 0x7d4]
push eax
call fcn.00449da7
lea eax, [ebp - 0x7d4]
push eax
push str.Found_username_s
jmp 0x43ce43
lea eax, [ebp - 0x3e84]
push str.password
push eax
call fcn.00627320
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x43cf68
push str.password
call fcn.00631510
lea ecx, [ebp - 0x3e84]
sub esi, ecx
lea ecx, [ebp - 0x6594]
add ecx, esi
add ecx, eax
lea eax, [ebp - 0x138c]
push ecx
push 0x3e8
push eax
call fcn.006311ec
lea eax, [ebp - 0x138c]
push eax
call fcn.00449da7
lea eax, [ebp - 0x138c]
push eax
push str.Found_encoded_password_s
call fcn.00449974
push 0x400
lea eax, [ebp - 0x3ec]
push eax
lea eax, [ebp - 0x138c]
push eax
lea eax, [ebp - 0x7d4]
push eax
lea eax, [ebp - 0xbbc]
push eax
call fcn.0040e954
add esp, 0x30
cmp eax, 1
jne 0x43cf55
lea eax, [ebp - 0x3ec]
push eax
push str.Final_decrypted_password_s
jmp 0x43cf61
lea eax, [ebp - 0x138c]
push eax
push str.Failed_to_decrypt_encoded_password__s
call fcn.00449974
pop ecx
pop ecx
push dword [ebp - 0x6598]
lea eax, [ebp - 0x6594]
push 0x2710
push eax
call fcn.00631f4f
add esp, 0xc
test eax, eax
jne 0x43cca3
lea eax, [ebp - 0x3ec]
push eax
call fcn.00631510
pop ecx
test eax, eax
je 0x43cfea
lea eax, [ebp - 0x3ec]
push eax
lea eax, [ebp - 0x7d4]
push eax
lea eax, [ebp - 0xbbc]
push eax
push str.Adding_New_FTP_Session:__Host_s__User_s__Pass_s
call fcn.00449974
push 0xffffffffffffffff
push 0x66ae5d
lea eax, [ebp - 0x3ec]
push eax
lea eax, [ebp - 0x7d4]
push eax
lea eax, [ebp - 0xbbc]
push eax
push 0x66ae5d
push 0x136
push 4
call fcn.00412c85
add esp, 0x30
push dword [ebp - 0x6598]
call fcn.00637603
xor eax, eax
pop ecx
inc eax
jmp 0x43d016
lea eax, [ebp - 0xfa4]
push eax
push str.RecoverWinSCPPasswordFromFile
push str._s___This_WinSCP_file_does_not_exist___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