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

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x4759e8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4931b8]
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x110]
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp]
push eax
push 0
push 0
push 0x26
push 0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
call ebx
test eax, eax
jl 0x41352d
call fcn.00440f8f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4134ce
push 0x80004005
call fcn.004014f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp]
mov byte [ebp - 4], 1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4134e7
sub eax, edx
push eax
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00409700
mov esi, dword [ebp - 0x14]
push esi
push str._ProgramFiles_
mov ecx, edi
call fcn.00409280
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41352d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp]
push ecx
push 0
push 0
push 0x1a
push 0
call ebx
test eax, eax
jl 0x4135b8
call fcn.00440f8f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x413559
push 0x80004005
call fcn.004014f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp]
mov byte [ebp - 4], 2
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413572
sub eax, edx
push eax
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00409700
mov esi, dword [ebp - 0x14]
push esi
push str._AppData_
mov ecx, edi
call fcn.00409280
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4135b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
push str._FFProfile_
push eax
call fcn.0045677f
add esp, 8
cmp eax, 0xffffffff
jle 0x41378c
call fcn.00440f8f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4135eb
push 0x80004005
call fcn.004014f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x38], edi
lea ecx, [ebp]
push ecx
push 0
push 0
push 0x1a
push 0
mov byte [ebp - 4], 3
call ebx
test eax, eax
jl 0x41376c
call fcn.00440f8f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41362e
push 0x80004005
call fcn.004014f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp]
mov byte [ebp - 4], 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413647
sub eax, edx
push eax
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00409700
push 0x1a
push str.MozillaFirefoxProfiles_
lea ecx, [ebp - 0x14]
call fcn.00409700
lea ecx, [ebp - 0x34]
call fcn.00441443
push 0x47a9d8
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
mov bl, 5
push eax
mov byte [ebp - 4], bl
call fcn.00409f70
add esp, 0xc
mov eax, dword [eax]
push 0
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.004414d8
mov esi, eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4136c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x41372f
lea ecx, [ebp - 0x34]
call fcn.00441147
mov edx, dword [ebp - 0x34]
mov esi, eax
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [ebp - 0x34]
call eax
test eax, eax
je 0x4136c3
lea ecx, [ebp - 0x34]
call fcn.00441408
test eax, eax
jne 0x4136c3
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00441712
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00409700
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41372f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
push esi
push str._FFProfile_
call fcn.00409280
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.00441469
lea eax, [esi - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41376c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41378c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.00455dfd
add ebp, 0x108
mov esp, ebp
pop ebp
ret