Function at 0x450fae
Capabilities:
Get common file path

Disassembly:
push 0x30c
mov eax, 0x49f0e5
call fcn.00459b85
mov ebx, ecx
and dword [ebp - 4], 0
mov edi, dword [ebp + 8]
mov ecx, edi
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push 1
mov dword [ebp - 0x318], edi
and dword [ebp - 0x314], 0
push esi
mov dword [ebp - 0x310], eax
call fcn.004077f0
and dword [ebp - 4], 0
lea eax, [ebp - 0x2d8]
push esi
push eax
mov ecx, ebx
mov dword [ebp - 0x314], 1
call fcn.0044f1c0
mov dword [ebp - 4], 1
cmp dword [ebp - 0x2c4], 0
je 0x45192b
xor esi, esi
mov dword [ebp - 0x2a8], 0x4b6748
push esi
lea eax, [ebp - 0x309]
mov dword [ebp - 0x280], 0x4b6750
push eax
lea ecx, [ebp - 0x2a8]
call fcn.004060a0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x309]
push esi
push eax
lea ecx, [ebp - 0x308]
mov dword [ebp - 0x308], 0x4a6f40
mov dword [ebp - 0x2e0], 0x4a6f48
call fcn.004060a0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x309]
push esi
push eax
push str._CommonFilesFolder_
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x248], 0x4b6748
mov dword [ebp - 0x220], 0x4b6750
call fcn.00407aa0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x2d4]
call fcn.00409340
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x248]
call fcn.00404cc0
lea eax, [ebp - 0x309]
test esi, esi
jne 0x45117f
push 1
push eax
mov esi, 0x4b65d4
lea ecx, [ebp - 0x278]
push esi
call fcn.00407aa0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x309]
push 1
push eax
push str._CommonFilesFolder_
lea ecx, [ebp - 0x248]
call fcn.00407aa0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.004079b0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x248]
call fcn.00404cc0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x278]
call fcn.00404cc0
lea eax, [ebp - 0x278]
push 1
push eax
call fcn.0044b44c
pop ecx
pop ecx
mov byte [ebp - 4], 0xc
lea ecx, [eax + 4]
cmp dword [ecx + 0x14], 8
jb 0x45115a
mov ecx, dword [ecx]
test ecx, ecx
mov eax, esi
cmovne eax, ecx
test eax, eax
cmovne esi, eax
push esi
call fcn.00473ca3
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2a4]
call fcn.00408130
jmp 0x45184b
push 0
push eax
push str._CommonFiles64Folder_
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x248], 0x4b6748
mov dword [ebp - 0x220], 0x4b6750
call fcn.00407aa0
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x2d4]
call fcn.00409340
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x248]
call fcn.00404cc0
test esi, esi
jne 0x451295
mov ecx, dword [ebp - 0x310]
call fcn.0044c84c
push 1
lea eax, [ebp - 0x309]
mov esi, 0x4b65d4
push eax
push esi
lea ecx, [ebp - 0x248]
call fcn.00407aa0
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x309]
push 1
push eax
push str._CommonFiles64Folder_
lea ecx, [ebp - 0x278]
call fcn.00407aa0
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x278]
mov ecx, edi
push eax
call fcn.004079b0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x278]
call fcn.00404cc0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x248]
call fcn.00404cc0
lea eax, [ebp - 0x278]
push SysReAllocStringLen
push eax
call fcn.0044b44c
pop ecx
pop ecx
mov byte [ebp - 4], 0x14
lea ecx, [eax + 4]
cmp dword [ecx + 0x14], 8
jb 0x451270
mov ecx, dword [ecx]
test ecx, ecx
mov eax, esi
cmovne eax, ecx
test eax, eax
cmovne esi, eax
push esi
call fcn.00473ca3
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2a4]
call fcn.00408130
jmp 0x45184b
push 0
lea eax, [ebp - 0x309]
mov dword [ebp - 0x248], 0x4b6748
push eax
push str._ProgramFilesFolder_
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x220], 0x4b6750
call fcn.00407aa0
mov byte [ebp - 4], 0x18
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x2d4]
call fcn.00409340
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x248]
call fcn.00404cc0
lea eax, [ebp - 0x309]
lea ecx, [ebp - 0x248]
test esi, esi
jne 0x4513a3
push 1
push eax
mov esi, 0x4b65d4
push esi
call fcn.00407aa0
mov byte [ebp - 4], 0x1a
lea eax, [ebp - 0x309]
push 1
push eax
push str._ProgramFilesFolder_
lea ecx, [ebp - 0x278]
call fcn.00407aa0
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x278]
mov ecx, edi
push eax
call fcn.004079b0
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x278]
call fcn.00404cc0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x248]
call fcn.00404cc0
lea eax, [ebp - 0x278]
push 0
push eax
call fcn.0044b44c
pop ecx
pop ecx
mov byte [ebp - 4], 0x1c
lea ecx, [eax + 4]
cmp dword [ecx + 0x14], 8
jb 0x45137e
mov ecx, dword [ecx]
test ecx, ecx
mov eax, esi
cmovne eax, ecx
test eax, eax
cmovne esi, eax
push esi
call fcn.00473ca3
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2a4]
call fcn.00408130
jmp 0x45184b
push 0
push eax
push str._ProgramFiles64Folder_
mov dword [ebp - 0x248], 0x4b6748
mov dword [ebp - 0x220], 0x4b6750
call fcn.00407aa0
mov byte [ebp - 4], 0x20
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x2d4]
call fcn.00409340
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x248]
call fcn.00404cc0
test esi, esi
jne 0x4514b3
mov ecx, dword [ebp - 0x310]
call fcn.0044c84c
push 1
lea eax, [ebp - 0x309]
mov esi, 0x4b65d4
push eax
push esi
lea ecx, [ebp - 0x248]
call fcn.00407aa0
mov byte [ebp - 4], 0x22
lea eax, [ebp - 0x309]
push 1
push eax
push str._ProgramFiles64Folder_
lea ecx, [ebp - 0x278]
call fcn.00407aa0
mov byte [ebp - 4], 0x23
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x278]
mov ecx, edi
push eax
call fcn.004079b0
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x278]
call fcn.00404cc0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x248]
call fcn.00404cc0
lea eax, [ebp - 0x278]
push SysReAllocStringLen
push eax
call fcn.0044b44c
pop ecx
pop ecx
mov byte [ebp - 4], 0x24
lea ecx, [eax + 4]
cmp dword [ecx + 0x14], 8
jb 0x45148e
mov ecx, dword [ecx]
test ecx, ecx
mov eax, esi
cmovne eax, ecx
test eax, eax
cmovne esi, eax
push esi
call fcn.00473ca3
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2a4]
call fcn.00408130
jmp 0x45184b
push 0
lea eax, [ebp - 0x309]
mov dword [ebp - 0x248], 0x4b6748
push eax
push str._WindowsFolder_
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x220], 0x4b6750
call fcn.00407aa0
mov byte [ebp - 4], 0x28
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x2d4]
call fcn.00409340
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x248]
call fcn.00404cc0
test esi, esi
jne 0x451575
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 1
lea eax, [ebp - 0x309]
push eax
push 0x4b65d4
lea ecx, [ebp - 0x248]
call fcn.00407aa0
mov byte [ebp - 4], 0x2a
lea eax, [ebp - 0x309]
push 1
push eax
push str._WindowsFolder_
lea ecx, [ebp - 0x278]
call fcn.00407aa0
mov byte [ebp - 4], 0x2b
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x278]
mov ecx, edi
push eax
call fcn.004079b0
mov byte [ebp - 4], 0x2a
jmp 0x451703
push 0
lea eax, [ebp - 0x309]
mov dword [ebp - 0x248], 0x4b6748
push eax
push str._SystemFolder_
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x220], 0x4b6750
call fcn.00407aa0
mov byte [ebp - 4], 0x2d
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x2d4]
call fcn.00409340
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x248]
call fcn.00404cc0
test esi, esi
jne 0x451637
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 1
lea eax, [ebp - 0x309]
push eax
push 0x4b65d4
lea ecx, [ebp - 0x248]
call fcn.00407aa0
mov byte [ebp - 4], 0x2f
lea eax, [ebp - 0x309]
push 1
push eax
push str._SystemFolder_
lea ecx, [ebp - 0x278]
call fcn.00407aa0
mov byte [ebp - 4], 0x30
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x278]
mov ecx, edi
push eax
call fcn.004079b0
mov byte [ebp - 4], 0x2f
jmp 0x451703
push 0
lea eax, [ebp - 0x309]
mov dword [ebp - 0x248], 0x4b6748
push eax
push str._System64Folder_
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x220], 0x4b6750
call fcn.00407aa0
mov byte [ebp - 4], 0x32
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x2d4]
call fcn.00409340
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x248]
call fcn.00404cc0
test esi, esi
jne 0x451742
mov ecx, dword [ebp - 0x310]
call fcn.0044c84c
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 1
lea eax, [ebp - 0x309]
push eax
push 0x4b65d4
lea ecx, [ebp - 0x248]
call fcn.00407aa0
mov byte [ebp - 4], 0x34
lea eax, [ebp - 0x309]
push 1
push eax
push str._System64Folder_
lea ecx, [ebp - 0x278]
call fcn.00407aa0
mov byte [ebp - 4], 0x35
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x278]
mov ecx, edi
push eax
call fcn.004079b0
mov byte [ebp - 4], 0x34
lea ecx, [ebp - 0x278]
call fcn.00404cc0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x248]
call fcn.00404cc0
lea eax, [ebp - 0x218]
push eax
call fcn.00473ca3
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2a4]
call fcn.00408130
jmp 0x4518e9
push 0
lea eax, [ebp - 0x309]
mov dword [ebp - 0x248], 0x4b6748
push eax
push str._LocalAppDataFolder_
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x220], 0x4b6750
call fcn.00407aa0
mov byte [ebp - 4], 0x37
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x2d4]
call fcn.00409340
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x248]
call fcn.00404cc0
test esi, esi
jne 0x45185f
push 1
lea eax, [ebp - 0x309]
mov esi, 0x4b65d4
push eax
push esi
lea ecx, [ebp - 0x248]
call fcn.00407aa0
mov byte [ebp - 4], 0x39
lea eax, [ebp - 0x309]
push 1
push eax
push str._LocalAppDataFolder_
lea ecx, [ebp - 0x278]
call fcn.00407aa0
mov byte [ebp - 4], 0x3a
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x278]
mov ecx, edi
push eax
call fcn.004079b0
mov byte [ebp - 4], 0x39
lea ecx, [ebp - 0x278]
call fcn.00404cc0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x248]
call fcn.00404cc0
lea eax, [ebp - 0x278]
push 0x1c
push eax
call fcn.0044b597
pop ecx
pop ecx
mov byte [ebp - 4], 0x3b
lea ecx, [eax + 4]
cmp dword [ecx + 0x14], 8
jb 0x45182b
mov ecx, dword [ecx]
test ecx, ecx
mov eax, esi
cmovne eax, ecx
test eax, eax
cmovne esi, eax
push esi
call fcn.00473ca3
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2a4]
call fcn.00408130
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x278]
call fcn.00404cc0
jmp 0x4518e9
lea eax, [ebp - 0x2d8]
mov ecx, ebx
push eax
call fcn.0044fd4b
test al, al
je 0x4518e9
push 1
lea eax, [ebp - 0x309]
push eax
push 0x4b65d4
lea ecx, [ebp - 0x278]
call fcn.00407aa0
mov byte [ebp - 4], 0x3e
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x2d8]
mov ecx, edi
push eax
call fcn.004079b0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x278]
call fcn.00404cc0
lea eax, [ebp - 0x2d8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.00451944
mov byte [ebp - 4], 0x3f
add eax, 4
push eax
lea ecx, [ebp - 0x2a4]
call fcn.00407b80
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x278]
call fcn.00404cc0
cmp dword [ebp - 0x294], 0
je 0x45190d
push edi
lea ecx, [ebp - 0x2a8]
call fcn.004249dd
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [edi + 4]
call fcn.00407b80
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x308]
call fcn.00404cc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a8]
call fcn.00404cc0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2d8]
call fcn.00404cc0
mov eax, edi
call fcn.00459b34
ret 0xc