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

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x48d250]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 0x2c
mov eax, 0x46e27d
call fcn.00450123
mov eax, dword [ebp + 0x110]
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [ebp - 0x18], eax
xor ebx, ebx
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x26
push ebx
mov dword [ebp - 4], ebx
call edi
test eax, eax
jl 0x407a4f
call fcn.00430032
push eax
lea ecx, [ebp - 0x14]
call fcn.00401358
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004015e6
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push esi
push str._ProgramFiles_
call fcn.004048e3
lea ecx, [esi - 0x10]
mov byte [ebp - 4], bl
call fcn.004010dc
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x1a
push ebx
call edi
test eax, eax
jl 0x407a98
call fcn.00430032
push eax
lea ecx, [ebp - 0x14]
call fcn.00401358
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004015e6
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push esi
push str._AppData_
call fcn.004048e3
lea ecx, [esi - 0x10]
mov byte [ebp - 4], bl
call fcn.004010dc
mov ecx, dword [ebp - 0x18]
mov esi, str._TEMP_
push esi
call fcn.004028fc
cmp eax, 0xffffffff
jle 0x407ad3
lea eax, [ebp - 0x14]
push eax
call fcn.00406b88
pop ecx
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push esi
mov byte [ebp - 4], 3
call fcn.004048e3
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.004010dc
mov ecx, dword [ebp - 0x18]
mov esi, str._FFProfile_
push esi
call fcn.004028fc
cmp eax, 0xffffffff
jle 0x407bfe
call fcn.00430032
push eax
lea ecx, [ebp - 0x20]
call fcn.00401358
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x1a
push ebx
mov byte [ebp - 4], 4
call edi
test eax, eax
jl 0x407bf3
call fcn.00430032
push eax
lea ecx, [ebp - 0x14]
call fcn.00401358
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.004015e6
push str.MozillaFirefoxProfiles_
lea ecx, [ebp - 0x14]
call fcn.004015e6
lea ecx, [ebp - 0x38]
call fcn.0043aec8
push 0x474158
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 6
call fcn.00405089
add esp, 0xc
mov eax, dword [eax]
push ebx
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 7
call fcn.0043af5d
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov edi, eax
mov byte [ebp - 4], 6
call fcn.004010dc
cmp edi, ebx
je 0x407bd2
lea ecx, [ebp - 0x38]
call fcn.0043abcc
mov edi, eax
mov eax, dword [ebp - 0x38]
push 0x10
lea ecx, [ebp - 0x38]
call dword [eax + 0x38]
cmp eax, ebx
je 0x407b7c
lea ecx, [ebp - 0x38]
call fcn.0043ae8d
cmp eax, ebx
jne 0x407b7c
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x38]
call fcn.0043b197
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 8
call fcn.00401503
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 6
call fcn.004010dc
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push edi
push esi
call fcn.004048e3
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
call fcn.0043aeee
lea ecx, [edi - 0x10]
call fcn.004010dc
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004010dc
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.004500e1
add ebp, 0x108
leave
ret 4