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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a424
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x170
mov eax, dword [0x4991b0]
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 - 0x158], ecx
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 0x401c41
lea ecx, [ebp - 0x124]
call fcn.0040e8d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x124]
call fcn.00407e80
lea ecx, [ebp - 0x124]
call fcn.0040edb0
push eax
push 0x47fa04
mov ecx, dword [ebp + 8]
call fcn.004077e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.0040ea70
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 0x401ca3
lea ecx, [ebp - 0x128]
call fcn.0040e8d0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x128]
call fcn.00407e80
lea ecx, [ebp - 0x128]
call fcn.0040edb0
push eax
push 0x47fa14
mov ecx, dword [ebp + 8]
call fcn.004077e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x128]
call fcn.0040ea70
push 0x47fa20
mov ecx, dword [ebp + 8]
call fcn.00407760
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0xffffffff
jle 0x401e94
lea ecx, [ebp - 0x12c]
call fcn.0040e8d0
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 0x401e85
lea ecx, [ebp - 0x14c]
call fcn.0040e8d0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x120]
push edx
lea ecx, [ebp - 0x14c]
call fcn.00407e80
push 0x47fa2c
lea ecx, [ebp - 0x14c]
call fcn.00407e80
lea ecx, [ebp - 0x148]
call fcn.0044639e
mov dword [ebp - 0x160], eax
mov byte [ebp - 4], 5
push 0x47fa48
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x150]
push ecx
call fcn.00407db0
add esp, 0xc
mov dword [ebp - 0x164], eax
mov edx, dword [ebp - 0x164]
mov dword [ebp - 0x168], edx
mov byte [ebp - 4], 6
push 0
mov ecx, dword [ebp - 0x168]
call fcn.0040edb0
push eax
lea ecx, [ebp - 0x148]
call fcn.00446433
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x130], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x150]
call fcn.0040ea70
cmp dword [ebp - 0x130], 0
je 0x401e4e
lea ecx, [ebp - 0x148]
call fcn.004460a2
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x170]
mov dword [ebp - 0x130], ecx
lea ecx, [ebp - 0x148]
call fcn.00406a00
mov dword [ebp - 0x174], eax
cmp dword [ebp - 0x174], 0
je 0x401e49
lea ecx, [ebp - 0x148]
call fcn.00446363
mov dword [ebp - 0x178], eax
cmp dword [ebp - 0x178], 0
jne 0x401e49
lea edx, [ebp - 0x154]
push edx
lea ecx, [ebp - 0x148]
call fcn.0044666d
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x180], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x180]
push ecx
lea ecx, [ebp - 0x14c]
call fcn.00407eb0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x154]
call fcn.0040ea70
jmp 0x401e4e
jmp 0x401da0
lea ecx, [ebp - 0x14c]
call fcn.0040edb0
push eax
push 0x47fa4c
mov ecx, dword [ebp + 8]
call fcn.004077e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x148]
call fcn.004463c4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14c]
call fcn.0040ea70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x12c]
call fcn.0040ea70
jmp 0x401ea3
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.0045c94d
mov esp, ebp
pop ebp
ret 4