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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e0ed
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x16c
mov eax, dword [0x49b1b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
lea eax, [ebp - 0x120]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x4186db
lea ecx, [ebp - 0x124]
call fcn.0040f570
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x124]
call fcn.00409540
lea ecx, [ebp - 0x124]
call fcn.0040f9b0
push eax
push str._ProgramFiles_
mov ecx, dword [ebp + 8]
call fcn.00408ea0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.0040f890
lea edx, [ebp - 0x120]
push edx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x41873d
lea ecx, [ebp - 0x128]
call fcn.0040f570
mov byte [ebp - 4], 2
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x128]
call fcn.00409540
lea ecx, [ebp - 0x128]
call fcn.0040f9b0
push eax
push str._AppData_
mov ecx, dword [ebp + 8]
call fcn.00408ea0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x128]
call fcn.0040f890
push str._FFProfile_
mov ecx, dword [ebp + 8]
call fcn.00408dd0
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0xffffffff
jle 0x41892e
lea ecx, [ebp - 0x12c]
call fcn.0040f570
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x120]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x41891f
lea ecx, [ebp - 0x14c]
call fcn.0040f570
mov byte [ebp - 4], 4
lea edx, [ebp - 0x120]
push edx
lea ecx, [ebp - 0x14c]
call fcn.00409540
push str.MozillaFirefoxProfiles_
lea ecx, [ebp - 0x14c]
call fcn.00409540
lea ecx, [ebp - 0x148]
call fcn.00447fe9
mov dword [ebp - 0x15c], eax
mov byte [ebp - 4], 5
push 0x482a80
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x150]
push ecx
call fcn.00409470
add esp, 0xc
mov dword [ebp - 0x160], eax
mov edx, dword [ebp - 0x160]
mov dword [ebp - 0x164], edx
mov byte [ebp - 4], 6
push 0
mov ecx, dword [ebp - 0x164]
call fcn.0040f9b0
push eax
lea ecx, [ebp - 0x148]
call fcn.0044807e
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x130], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x150]
call fcn.0040f890
cmp dword [ebp - 0x130], 0
je 0x4188e8
lea ecx, [ebp - 0x148]
call fcn.00447ced
mov dword [ebp - 0x16c], eax
mov ecx, dword [ebp - 0x16c]
mov dword [ebp - 0x130], ecx
lea ecx, [ebp - 0x148]
call fcn.00408040
mov dword [ebp - 0x170], eax
cmp dword [ebp - 0x170], 0
je 0x4188e3
lea ecx, [ebp - 0x148]
call fcn.00447fae
mov dword [ebp - 0x174], eax
cmp dword [ebp - 0x174], 0
jne 0x4188e3
lea edx, [ebp - 0x154]
push edx
lea ecx, [ebp - 0x148]
call fcn.004482b8
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x178]
mov dword [ebp - 0x17c], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x17c]
push ecx
lea ecx, [ebp - 0x14c]
call fcn.00409570
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x154]
call fcn.0040f890
jmp 0x4188e8
jmp 0x41883a
lea ecx, [ebp - 0x14c]
call fcn.0040f9b0
push eax
push str._FFProfile_
mov ecx, dword [ebp + 8]
call fcn.00408ea0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x148]
call fcn.0044800f
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14c]
call fcn.0040f890
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x12c]
call fcn.0040f890
jmp 0x41893d
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045e58d
mov esp, ebp
pop ebp
ret