Function at 0x41d2fa
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3e88
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 - 0xbbb]
push edi
xor ebx, ebx
push 0x3e7
push ebx
push eax
mov byte [ebp - 0xbbc], bl
call fcn.00626f50
push esi
call fcn.00631510
add esp, 0x10
mov edi, str.PerformWS_FTPPasswordRecovery
cmp eax, 1
jae 0x41d38e
lea eax, [ebp - 0xbbc]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x41d36c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str._s_Failed_to_find_appdata_folder__Error0x_.8x
jmp 0x41d64e
lea eax, [ebp - 0xbbc]
push eax
push edi
push str._s___app_data_path___s
call fcn.00449974
add esp, 0xc
lea esi, [ebp - 0xbbc]
mov eax, str._sIpswitchWS_FTPSitesws_ftp.ini
jmp 0x41d393
mov eax, str._sSitesws_ftp.ini
push esi
push eax
lea eax, [ebp - 0x1774]
push 0x3e8
push eax
call fcn.00445d6d
lea eax, [ebp - 0x1774]
push eax
push edi
push str._s_Final_WS_FTP_profile_path_is__s
call fcn.00449974
push 0x66ca20
lea eax, [ebp - 0x1774]
mov dword [ebp - 0x3e88], ebx
push eax
lea eax, [ebp - 0x3e88]
push eax
call fcn.00632119
add esp, 0x28
test eax, eax
jne 0x41d641
cmp dword [ebp - 0x3e88], ebx
je 0x41d641
mov esi, 0x2710
jmp 0x41d612
lea eax, [ebp - 0x3e84]
push eax
call fcn.00631510
pop ecx
test eax, eax
je 0x41d425
lea eax, [ebp - 0x3e84]
push eax
call fcn.00631510
dec eax
pop ecx
cmp eax, esi
jae 0x41d667
mov byte [ebp + eax - 0x3e84], bl
lea eax, [ebp - 0x3e84]
push eax
call fcn.00449bad
lea eax, [ebp - 0x3e84]
push eax
call fcn.00449da7
lea eax, [ebp - 0x3e84]
push 0x5b
push eax
call fcn.006270b0
add esp, 0x10
test eax, eax
je 0x41d480
lea eax, [ebp - 0x3e84]
push 0x5d
push eax
call fcn.006270b0
pop ecx
pop ecx
test eax, eax
je 0x41d480
lea eax, [ebp - 0x3e84]
push eax
push edi
push str._s____Found_starting_of_new_account____s
call fcn.00449974
add esp, 0xc
jmp 0x41d600
push str.host
call fcn.00631510
push eax
lea eax, [ebp - 0x3e84]
push str.host
push eax
call fcn.006317d8
add esp, 0x10
test eax, eax
jne 0x41d4e8
push str.host
call fcn.00631510
lea ecx, [ebp - 0x3e84]
add eax, ecx
push eax
lea eax, [ebp - 0x7d4]
push 0x3e8
push eax
call fcn.006311ec
lea eax, [ebp - 0x7d4]
push eax
call fcn.00449da7
lea eax, [ebp - 0x7d4]
push eax
push edi
push str._s___Host_name____s
call fcn.00449974
add esp, 0x20
push str.uid
call fcn.00631510
push eax
lea eax, [ebp - 0x3e84]
push str.uid
push eax
call fcn.006317d8
add esp, 0x10
test eax, eax
jne 0x41d550
push str.uid
call fcn.00631510
lea ecx, [ebp - 0x3e84]
add eax, ecx
push eax
lea eax, [ebp - 0x3ec]
push 0x3e8
push eax
call fcn.006311ec
lea eax, [ebp - 0x3ec]
push eax
call fcn.00449da7
lea eax, [ebp - 0x3ec]
push eax
push edi
push str._s___Account_name____s
call fcn.00449974
add esp, 0x20
push str.pwd
call fcn.00631510
push eax
lea eax, [ebp - 0x3e84]
push str.pwd
push eax
call fcn.006317d8
add esp, 0x10
test eax, eax
jne 0x41d612
push str.pwd
call fcn.00631510
lea ecx, [ebp - 0x3e84]
add eax, ecx
push eax
lea eax, [ebp - 0xfa4]
push 0x3e8
push eax
call fcn.006311ec
lea eax, [ebp - 0xfa4]
push eax
call fcn.00449da7
lea eax, [ebp - 0xfa4]
push eax
push edi
push str._s___Encoded_Password____s
call fcn.00449974
lea eax, [ebp - 0x138c]
push eax
lea eax, [ebp - 0xfa4]
push eax
call fcn.0040e1b8
add esp, 0x28
test eax, eax
je 0x41d612
push 0xffffffffffffffff
mov ecx, 0x66ae5d
lea eax, [ebp - 0x138c]
push ecx
push eax
lea eax, [ebp - 0x3ec]
push eax
lea eax, [ebp - 0x7d4]
push eax
push ecx
push 0x132
push 4
call fcn.00412c85
add esp, 0x20
mov byte [ebp - 0x7d4], bl
mov byte [ebp - 0x3ec], bl
mov byte [ebp - 0x138c], bl
push dword [ebp - 0x3e88]
lea eax, [ebp - 0x3e84]
push esi
push eax
call fcn.00631f4f
add esp, 0xc
test eax, eax
jne 0x41d3f7
push dword [ebp - 0x3e88]
call fcn.00637603
xor eax, eax
pop ecx
inc eax
jmp 0x41d658
lea eax, [ebp - 0x1774]
push eax
push edi
push str._s_Unable_to_find_ws_ftp_password_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