Function at 0x431d66
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x6d90
call fcn.00612c90
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x1f63]
push esi
push edi
mov esi, 0x3e7
mov dword [ebp - 0x6d8c], ecx
push esi
push 0
push eax
mov byte [ebp - 0x1f64], 0
call fcn.006390b0
add esp, 0xc
mov byte [ebp - 0x1b7c], 0
lea eax, [ebp - 0x1b7b]
push esi
push 0
push eax
call fcn.006390b0
add esp, 0xc
lea edi, [ebp - 0x20]
mov esi, str.FreeCommander.ftp.ini
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call fcn.00643470
pop ecx
cmp eax, 1
jae 0x431e19
lea eax, [ebp - 0x1b7c]
push eax
xor eax, eax
push eax
push eax
push 0x1c
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x431e0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret 4
mov eax, str._sFreeCommanderXESettings_s
lea ebx, [ebp - 0x1b7c]
jmp 0x431e1e
mov eax, str._sSettings_s
lea ecx, [ebp - 0x20]
mov edi, 0x3e8
push ecx
push ebx
push eax
lea eax, [ebp - 0x1f64]
push edi
push eax
call fcn.00402e0a
add esp, 0x14
lea eax, [ebp - 0x1f64]
xor ebx, ebx
mov dword [ebp - 0x6d88], ebx
push 0x6c63d0
push eax
lea eax, [ebp - 0x6d88]
push eax
call fcn.00649a00
add esp, 0xc
test eax, eax
jne 0x431df9
cmp dword [ebp - 0x6d88], ebx
je 0x431df9
lea esi, [edi - 1]
mov byte [ebp - 0xbdc], bl
push esi
lea eax, [ebp - 0xbdb]
push ebx
push eax
call fcn.006390b0
add esp, 0xc
mov byte [ebp - 0x1794], bl
lea eax, [ebp - 0x1793]
push esi
push ebx
push eax
call fcn.006390b0
add esp, 0xc
mov byte [ebp - 0x13ac], bl
lea eax, [ebp - 0x13ab]
push esi
push ebx
push eax
call fcn.006390b0
add esp, 0xc
mov byte [ebp - 0x7f4], bl
lea eax, [ebp - 0x7f3]
push esi
push ebx
push eax
call fcn.006390b0
add esp, 0xc
mov byte [ebp - 0x40c], bl
lea eax, [ebp - 0x40b]
push esi
push ebx
push eax
call fcn.006390b0
add esp, 0xc
mov byte [ebp - 0xfc4], bl
lea eax, [ebp - 0xfc3]
push esi
push ebx
push eax
call fcn.006390b0
add esp, 0xc
lea eax, [ebp - 0x4674]
push dword [ebp - 0x6d88]
push 0x2710
push eax
call fcn.006494dd
mov esi, dword [ebp - 0x6d8c]
jmp 0x43218f
lea eax, [ebp - 0x4674]
push eax
call fcn.00643470
pop ecx
test eax, eax
je 0x431f48
lea eax, [ebp - 0x4674]
push eax
call fcn.00643470
dec eax
pop ecx
cmp eax, 0x2710
jae 0x432238
mov byte [ebp + eax - 0x4674], bl
lea ecx, [ebp - 0x4674]
call fcn.004047e7
lea eax, [ebp - 0x4674]
push eax
lea eax, [ebp - 0x6d84]
push 0x2710
push eax
call fcn.006494f3
add esp, 0xc
lea eax, [ebp - 0x6d84]
push eax
call fcn.00643470
pop ecx
inc eax
push eax
lea eax, [ebp - 0x6d84]
push eax
call fcn.0064ffd4
lea eax, [ebp - 0x4674]
push 0x5b
push eax
call fcn.006393d0
add esp, 0x10
test eax, eax
je 0x432067
lea eax, [ebp - 0x4674]
push 0x5d
push eax
call fcn.006393d0
pop ecx
pop ecx
test eax, eax
je 0x432067
lea eax, [ebp - 0xbdc]
push eax
call fcn.00643470
pop ecx
test eax, eax
je 0x432044
lea eax, [ebp - 0x40c]
push eax
call fcn.00643470
pop ecx
test eax, eax
je 0x432001
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x7f4]
push eax
push str._s:_s
lea eax, [ebp - 0xfc4]
push edi
push eax
call fcn.00402e0a
add esp, 0x14
jmp 0x432018
lea eax, [ebp - 0x7f4]
push eax
lea eax, [ebp - 0xfc4]
push edi
push eax
call fcn.006494f3
add esp, 0xc
push 0xffffffffffffffff
mov ecx, 0x6c5bb9
lea eax, [ebp - 0xbdc]
push ecx
push eax
lea eax, [ebp - 0x13ac]
push eax
lea eax, [ebp - 0xfc4]
push eax
push ecx
push 0x14e
push 4
mov ecx, esi
call fcn.0043ee6b
mov byte [ebp - 0x13ac], bl
mov byte [ebp - 0x40c], bl
mov byte [ebp - 0x7f4], bl
mov byte [ebp - 0x1794], bl
mov byte [ebp - 0xbdc], bl
jmp 0x432178
lea eax, [ebp - 0x6d84]
push str.ftpserver
push eax
call fcn.00639500
pop ecx
pop ecx
test eax, eax
je 0x4320a3
lea eax, [ebp - 0x4674]
push 0x3d
push eax
call fcn.006393d0
inc eax
push eax
lea eax, [ebp - 0x7f4]
push edi
push eax
call fcn.006494f3
lea ecx, [ebp - 0x7f4]
jmp 0x432119
lea eax, [ebp - 0x6d84]
push str.serverport
push eax
call fcn.00639500
pop ecx
pop ecx
test eax, eax
je 0x4320df
lea eax, [ebp - 0x4674]
push 0x3d
push eax
call fcn.006393d0
inc eax
push eax
lea eax, [ebp - 0x40c]
push edi
push eax
call fcn.006494f3
lea ecx, [ebp - 0x40c]
jmp 0x432119
lea eax, [ebp - 0x6d84]
push str.ftpuser
push eax
call fcn.00639500
pop ecx
pop ecx
test eax, eax
je 0x432123
lea eax, [ebp - 0x4674]
push 0x3d
push eax
call fcn.006393d0
inc eax
push eax
lea eax, [ebp - 0x13ac]
push edi
push eax
call fcn.006494f3
lea ecx, [ebp - 0x13ac]
add esp, 0x14
call fcn.004047e7
jmp 0x432178
lea eax, [ebp - 0x6d84]
push str.ftpuserpass
push eax
call fcn.00639500
pop ecx
pop ecx
test eax, eax
je 0x432178
lea eax, [ebp - 0x4674]
push 0x3d
push eax
call fcn.006393d0
inc eax
push eax
lea eax, [ebp - 0x1794]
push edi
push eax
call fcn.006494f3
add esp, 0x14
lea ecx, [ebp - 0x1794]
call fcn.004047e7
push ecx
lea edx, [ebp - 0xbdc]
lea ecx, [ebp - 0x1794]
call fcn.00431c71
pop ecx
push dword [ebp - 0x6d88]
lea eax, [ebp - 0x4674]
push 0x2710
push eax
call fcn.006494dd
add esp, 0xc
test eax, eax
jne 0x431f17
push dword [ebp - 0x6d88]
call fcn.00649273
pop ecx
lea eax, [ebp - 0xbdc]
push eax
call fcn.00643470
pop ecx
test eax, eax
je 0x432230
lea eax, [ebp - 0x40c]
push eax
call fcn.00643470
pop ecx
test eax, eax
je 0x4321ed
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x7f4]
push eax
push str._s:_s
lea eax, [ebp - 0xfc4]
push edi
push eax
call fcn.00402e0a
add esp, 0x14
jmp 0x432204
lea eax, [ebp - 0x7f4]
push eax
lea eax, [ebp - 0xfc4]
push edi
push eax
call fcn.006494f3
add esp, 0xc
push 0xffffffffffffffff
mov edx, 0x6c5bb9
lea eax, [ebp - 0xbdc]
push edx
push eax
lea eax, [ebp - 0x13ac]
push eax
lea ecx, [ebp - 0xfc4]
push ecx
push edx
push 0x14e
push 4
mov ecx, esi
call fcn.0043ee6b
xor eax, eax
inc eax
jmp 0x431dfb
call fcn.00612782
int3