Function at 0x41f837
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x61bc
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 - 0xfaf]
push esi
push edi
mov esi, 0x3e7
mov byte [ebp - 0xfb0], 0
push esi
push 0
push eax
call fcn.00626f50
push esi
lea eax, [ebp - 0x1397]
mov byte [ebp - 0x1398], 0
push 0
push eax
call fcn.00626f50
mov esi, str.altftp.ini
lea edi, [ebp - 0x10]
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.00631510
add esp, 0x1c
cmp eax, 1
jae 0x41f8db
lea eax, [ebp - 0x1398]
push eax
xor eax, eax
push eax
push eax
push 0x26
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x41f8ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RecoverAltCommanderPasswords
push str._s_Failed_to_find_appdata_folder__Error0x_.8x
jmp 0x41fc18
mov eax, str._s_altcmd_s
lea ebx, [ebp - 0x1398]
jmp 0x41f8e0
mov eax, 0x66c218
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
lea eax, [ebp - 0xfb0]
push 0x3e8
push eax
call fcn.00445d6d
lea eax, [ebp - 0xfb0]
push eax
push str._n_Final_file_path_is____s
call fcn.00449974
push 0x66ca20
lea eax, [ebp - 0xfb0]
xor ebx, ebx
push eax
lea eax, [ebp - 0x61bc]
mov dword [ebp - 0x61bc], ebx
push eax
call fcn.00632119
add esp, 0x28
test eax, eax
jne 0x41fc07
cmp dword [ebp - 0x61bc], ebx
je 0x41fc07
mov esi, 0x3e7
mov byte [ebp - 0x3f8], bl
push esi
lea eax, [ebp - 0x3f7]
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 - 0xbc7]
mov byte [ebp - 0xbc8], bl
push ebx
push eax
call fcn.00626f50
push dword [ebp - 0x61bc]
mov edi, 0x2710
lea eax, [ebp - 0x3aa8]
push edi
push eax
call fcn.00631f4f
add esp, 0x30
mov esi, 0x66ae5d
jmp 0x41fbb5
lea eax, [ebp - 0x3aa8]
push eax
call fcn.00631510
pop ecx
test eax, eax
je 0x41f9d3
lea eax, [ebp - 0x3aa8]
push eax
call fcn.00631510
dec eax
pop ecx
cmp eax, edi
jae 0x41fc31
mov byte [ebp + eax - 0x3aa8], bl
lea eax, [ebp - 0x3aa8]
push eax
call fcn.00449da7
lea eax, [ebp - 0x3aa8]
push eax
lea eax, [ebp - 0x61b8]
push edi
push eax
call fcn.006311ec
lea eax, [ebp - 0x61b8]
push eax
call fcn.00631510
inc eax
push eax
lea eax, [ebp - 0x61b8]
push eax
call fcn.00631711
lea eax, [ebp - 0x3aa8]
push 0x5b
push eax
call fcn.006270b0
add esp, 0x24
test eax, eax
je 0x41faa0
lea eax, [ebp - 0x3aa8]
push 0x5d
push eax
call fcn.006270b0
pop ecx
pop ecx
test eax, eax
je 0x41faa0
lea eax, [ebp - 0x3f8]
push eax
lea eax, [ebp - 0x3aa8]
push eax
push str._n___Found_new_entry....__s___s_
call fcn.00449974
lea eax, [ebp - 0x3f8]
push eax
call fcn.00631510
add esp, 0x10
test eax, eax
je 0x41fa89
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x3f8]
push eax
lea eax, [ebp - 0x7e0]
push eax
lea eax, [ebp - 0xbc8]
push eax
push esi
push 0x15b
push 4
call fcn.00412c85
add esp, 0x20
mov byte [ebp - 0x7e0], bl
mov byte [ebp - 0xbc8], bl
mov byte [ebp - 0x3f8], bl
jmp 0x41fb9f
lea eax, [ebp - 0x61b8]
push str.host
push eax
call fcn.00627320
pop ecx
pop ecx
test eax, eax
je 0x41faf5
lea eax, [ebp - 0x3aa8]
push 0x3d
push eax
call fcn.006270b0
inc eax
push eax
lea eax, [ebp - 0xbc8]
push 0x3e8
push eax
call fcn.006311ec
lea eax, [ebp - 0xbc8]
push eax
call fcn.00449da7
lea eax, [ebp - 0xbc8]
push eax
push str._n_Found_host_s
jmp 0x41fb97
lea eax, [ebp - 0x61b8]
push str.username
push eax
call fcn.00627320
pop ecx
pop ecx
test eax, eax
je 0x41fb47
lea eax, [ebp - 0x3aa8]
push 0x3d
push eax
call fcn.006270b0
inc eax
push eax
lea eax, [ebp - 0x7e0]
push 0x3e8
push eax
call fcn.006311ec
lea eax, [ebp - 0x7e0]
push eax
call fcn.00449da7
lea eax, [ebp - 0x7e0]
push eax
push str._n_Found_username_s
jmp 0x41fb97
lea eax, [ebp - 0x61b8]
push str.password
push eax
call fcn.00627320
pop ecx
pop ecx
test eax, eax
je 0x41fb9f
lea eax, [ebp - 0x3aa8]
push 0x3d
push eax
call fcn.006270b0
inc eax
push eax
lea eax, [ebp - 0x3f8]
push 0x3e8
push eax
call fcn.006311ec
lea eax, [ebp - 0x3f8]
push eax
call fcn.00449da7
lea eax, [ebp - 0x3f8]
push eax
push str._n_Found_password_s
call fcn.00449974
add esp, 0x20
push dword [ebp - 0x61bc]
lea eax, [ebp - 0x3aa8]
push edi
push eax
call fcn.00631f4f
add esp, 0xc
test eax, eax
jne 0x41f9a5
push dword [ebp - 0x61bc]
call fcn.00637603
lea eax, [ebp - 0x3f8]
push eax
call fcn.00631510
pop ecx
pop ecx
test eax, eax
je 0x41fc02
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x3f8]
push eax
lea eax, [ebp - 0x7e0]
push eax
lea ecx, [ebp - 0xbc8]
push ecx
push esi
push 0x15b
push 4
call fcn.00412c85
add esp, 0x20
xor eax, eax
inc eax
jmp 0x41fc22
lea eax, [ebp - 0xfb0]
push eax
push str.RecoverAltCommanderPasswords
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