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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2650
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x270
mov eax, dword [0x524330]
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
and dword [ebp - 4], 0
lea eax, [ebp - 0x120]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x460ebb
call fcn.00498191
mov dword [ebp - 0x1e4], eax
push dword [ebp - 0x1e4]
lea ecx, [ebp - 0x124]
call fcn.00403ced
mov byte [ebp - 4], 1
lea eax, [ebp - 0x120]
test eax, eax
jne 0x460e09
and dword [ebp - 0x164], 0
jmp 0x460e5d
lea eax, [ebp - 0x120]
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0x1e8]
inc eax
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x1e8]
mov al, byte [eax]
mov byte [ebp - 0x1ed], al
inc dword [ebp - 0x1e8]
cmp byte [ebp - 0x1ed], 0
jne 0x460e22
mov eax, dword [ebp - 0x1e8]
sub eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x1f4], eax
mov eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x164], eax
push dword [ebp - 0x164]
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x124]
call fcn.00403e1c
push 0x4fd1ac
push str.Application_Data
lea ecx, [ebp - 0x124]
call fcn.00448fb1
push dword [ebp - 0x124]
push str._AllUsersProfile_
mov ecx, dword [ebp + 8]
call fcn.00448fb1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x124]
sub eax, 0x10
mov dword [ebp - 0x168], eax
mov ecx, dword [ebp - 0x168]
call fcn.0040110c
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 0x460fa8
call fcn.00498191
mov dword [ebp - 0x1f8], eax
push dword [ebp - 0x1f8]
lea ecx, [ebp - 0x128]
call fcn.00403ced
mov byte [ebp - 4], 2
lea eax, [ebp - 0x120]
test eax, eax
jne 0x460f0b
and dword [ebp - 0x16c], 0
jmp 0x460f5f
lea eax, [ebp - 0x120]
mov dword [ebp - 0x1fc], eax
mov eax, dword [ebp - 0x1fc]
inc eax
mov dword [ebp - 0x200], eax
mov eax, dword [ebp - 0x1fc]
mov al, byte [eax]
mov byte [ebp - 0x201], al
inc dword [ebp - 0x1fc]
cmp byte [ebp - 0x201], 0
jne 0x460f24
mov eax, dword [ebp - 0x1fc]
sub eax, dword [ebp - 0x200]
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0x208]
mov dword [ebp - 0x16c], eax
push dword [ebp - 0x16c]
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x128]
call fcn.00403e1c
push dword [ebp - 0x128]
push str._ProgramFiles_
mov ecx, dword [ebp + 8]
call fcn.00448fb1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x128]
sub eax, 0x10
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x170]
call fcn.0040110c
lea eax, [ebp - 0x120]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x4610e7
call fcn.00498191
mov dword [ebp - 0x20c], eax
push dword [ebp - 0x20c]
lea ecx, [ebp - 0x12c]
call fcn.00403ced
mov byte [ebp - 4], 3
lea eax, [ebp - 0x120]
test eax, eax
jne 0x460ff8
and dword [ebp - 0x174], 0
jmp 0x46104c
lea eax, [ebp - 0x120]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x210]
inc eax
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x210]
mov al, byte [eax]
mov byte [ebp - 0x215], al
inc dword [ebp - 0x210]
cmp byte [ebp - 0x215], 0
jne 0x461011
mov eax, dword [ebp - 0x210]
sub eax, dword [ebp - 0x214]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x174], eax
push dword [ebp - 0x174]
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00403e1c
push 0
push 0x4fd1e8
mov ecx, dword [ebp + 8]
call fcn.0040355e
cmp eax, 0xffffffff
jle 0x4610a2
push str.LocalLow
push str.Local
lea ecx, [ebp - 0x12c]
call fcn.00448fb1
push dword [ebp - 0x12c]
push 0x4fd210
mov ecx, dword [ebp + 8]
call fcn.00448fb1
jmp 0x4610c9
push 0
push 0x4fd224
mov ecx, dword [ebp + 8]
call fcn.0040355e
cmp eax, 0xffffffff
jle 0x4610c9
push dword [ebp - 0x12c]
push 0x4fd234
mov ecx, dword [ebp + 8]
call fcn.00448fb1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x12c]
sub eax, 0x10
mov dword [ebp - 0x198], eax
mov ecx, dword [ebp - 0x198]
call fcn.0040110c
lea eax, [ebp - 0x120]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x4611d4
call fcn.00498191
mov dword [ebp - 0x220], eax
push dword [ebp - 0x220]
lea ecx, [ebp - 0x130]
call fcn.00403ced
mov byte [ebp - 4], 4
lea eax, [ebp - 0x120]
test eax, eax
jne 0x461137
and dword [ebp - 0x19c], 0
jmp 0x46118b
lea eax, [ebp - 0x120]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x224]
inc eax
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x224]
mov al, byte [eax]
mov byte [ebp - 0x229], al
inc dword [ebp - 0x224]
cmp byte [ebp - 0x229], 0
jne 0x461150
mov eax, dword [ebp - 0x224]
sub eax, dword [ebp - 0x228]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x19c], eax
push dword [ebp - 0x19c]
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x130]
call fcn.00403e1c
push dword [ebp - 0x130]
push 0x4fd244
mov ecx, dword [ebp + 8]
call fcn.00448fb1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x130]
sub eax, 0x10
mov dword [ebp - 0x1a0], eax
mov ecx, dword [ebp - 0x1a0]
call fcn.0040110c
push 0x4fd250
mov ecx, dword [ebp + 8]
call fcn.0040abe6
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xffffffff
jle 0x461238
lea eax, [ebp - 0x134]
push eax
call fcn.0046bfdd
pop ecx
mov dword [ebp - 0x238], eax
mov byte [ebp - 4], 5
push dword [ebp - 0x134]
push str._TEMP_
mov ecx, dword [ebp + 8]
call fcn.00448fb1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x134]
sub eax, 0x10
mov dword [ebp - 0x1ac], eax
mov ecx, dword [ebp - 0x1ac]
call fcn.0040110c
push 0x4fd260
mov ecx, dword [ebp + 8]
call fcn.0040abe6
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0xffffffff
jle 0x46158e
call fcn.00498191
mov dword [ebp - 0x240], eax
push dword [ebp - 0x240]
lea ecx, [ebp - 0x138]
call fcn.00403ced
mov byte [ebp - 4], 6
lea eax, [ebp - 0x120]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x461570
call fcn.00498191
mov dword [ebp - 0x244], eax
push dword [ebp - 0x244]
lea ecx, [ebp - 0x158]
call fcn.00403ced
mov byte [ebp - 4], 7
lea eax, [ebp - 0x120]
test eax, eax
jne 0x4612c8
and dword [ebp - 0x1b8], 0
jmp 0x46131c
lea eax, [ebp - 0x120]
mov dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x248]
inc eax
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x248]
mov al, byte [eax]
mov byte [ebp - 0x24d], al
inc dword [ebp - 0x248]
cmp byte [ebp - 0x24d], 0
jne 0x4612e1
mov eax, dword [ebp - 0x248]
sub eax, dword [ebp - 0x24c]
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x1b8], eax
push dword [ebp - 0x1b8]
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x158]
call fcn.00403e1c
mov eax, str.MozillaFirefoxProfiles_
test eax, eax
jne 0x461346
and dword [ebp - 0x1bc], 0
jmp 0x461398
mov dword [ebp - 0x258], str.MozillaFirefoxProfiles_
mov eax, dword [ebp - 0x258]
inc eax
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x258]
mov al, byte [eax]
mov byte [ebp - 0x25d], al
inc dword [ebp - 0x258]
cmp byte [ebp - 0x25d], 0
jne 0x46135d
mov eax, dword [ebp - 0x258]
sub eax, dword [ebp - 0x25c]
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x1bc], eax
push dword [ebp - 0x1bc]
push str.MozillaFirefoxProfiles_
lea ecx, [ebp - 0x158]
call fcn.00403e1c
lea ecx, [ebp - 0x154]
call fcn.004aa758
mov dword [ebp - 0x268], eax
mov byte [ebp - 4], 8
push 0x4fd288
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.004038b5
add esp, 0xc
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x1c0], eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x1c0]
mov eax, dword [eax]
mov dword [ebp - 0x1c4], eax
push 0
push dword [ebp - 0x1c4]
lea ecx, [ebp - 0x154]
call fcn.004aa7d0
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x15c]
sub eax, 0x10
mov dword [ebp - 0x1c8], eax
mov ecx, dword [ebp - 0x1c8]
call fcn.0040110c
cmp dword [ebp - 0x13c], 0
je 0x461530
lea ecx, [ebp - 0x154]
call fcn.004aa5df
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x13c], eax
push 0x10
mov eax, dword [ebp - 0x154]
lea ecx, [ebp - 0x154]
call dword [eax + 0x38]
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], 0
je 0x46152b
lea ecx, [ebp - 0x154]
call fcn.004aa71d
mov dword [ebp - 0x27c], eax
cmp dword [ebp - 0x27c], 0
jne 0x46152b
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp - 0x154]
call fcn.004aaa0a
mov dword [ebp - 0x280], eax
mov eax, dword [ebp - 0x280]
mov dword [ebp - 0x1d4], eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x1d4]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x1cc], eax
mov eax, dword [ebp - 0x1d4]
mov eax, dword [eax]
mov dword [ebp - 0x1d0], eax
push dword [ebp - 0x1cc]
push dword [ebp - 0x1d0]
lea ecx, [ebp - 0x158]
call fcn.00403e1c
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x160]
sub eax, 0x10
mov dword [ebp - 0x1d8], eax
mov ecx, dword [ebp - 0x1d8]
call fcn.0040110c
jmp 0x461530
jmp 0x461445
push dword [ebp - 0x158]
push 0x4fd28c
mov ecx, dword [ebp + 8]
call fcn.00448fb1
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x154]
call fcn.004aa77e
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x158]
sub eax, 0x10
mov dword [ebp - 0x1dc], eax
mov ecx, dword [ebp - 0x1dc]
call fcn.0040110c
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x138]
sub eax, 0x10
mov dword [ebp - 0x1e0], eax
mov ecx, dword [ebp - 0x1e0]
call fcn.0040110c
jmp 0x46159a
or 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.004bc439
leave
ret