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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46e5b7
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x487550]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push esi
push edi
mov eax, dword [0x487550]
xor eax, esp
push eax
lea eax, [esp + 0x2a8]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], 0
call fcn.00449640
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x9e]
push ecx
mov dword [esp + 0x40], esi
mov ebx, edx
mov word [esp + 0xa0], ax
call fcn.00452c80
add esp, 0xc
call fcn.0042ec20
test al, al
je 0x41ad64
lea esi, [esp + 0x94]
call fcn.0041abe0
test al, al
je 0x41ada9
mov ecx, esi
call fcn.0042dea0
cmp edx, ebx
jb 0x41ada9
ja 0x41ad4f
cmp eax, dword [esp + 0x34]
jbe 0x41ada9
lea eax, [esp + 0x94]
mov ecx, edi
call fcn.004037f0
mov eax, edi
jmp 0x41af9d
lea edx, [esp + 0x94]
push edx
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x41adad
lea ecx, [esp + 0x94]
call fcn.0042dea0
cmp edx, ebx
jb 0x41adad
ja 0x41ad94
cmp eax, esi
jbe 0x41adad
lea eax, [esp + 0x94]
mov ecx, edi
call fcn.004037f0
mov eax, edi
jmp 0x41af9d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x5c]
call fcn.0042e4d0
mov dword [esp + 0x2b0], 0
cmp dword [esp + 0x74], 8
mov ecx, dword [esp + 0x60]
jae 0x41add0
lea ecx, [esp + 0x60]
call fcn.0042dea0
cmp edx, ebx
jb 0x41ae1c
ja 0x41addf
cmp eax, esi
jbe 0x41ae1c
xor eax, eax
push 0xffffffffffffffff
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], 0
mov word [edi + 4], ax
push eax
lea eax, [esp + 0x64]
mov ecx, edi
call fcn.004042a0
cmp dword [esp + 0x74], 8
jb 0x41ae15
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0044caf8
add esp, 4
mov eax, edi
jmp 0x41af9d
lea edi, [esp + 0x5c]
lea ebx, [esp + 0x78]
call fcn.0042bf50
mov byte [esp + 0x2b0], 1
call fcn.0041fe10
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0xc]
call eax
xor ecx, ecx
xor ebx, ebx
push 8
mov eax, 0x4794f8
lea esi, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
call fcn.00403ee0
mov byte [esp + 0x2b0], 2
call fcn.0041fe10
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x44]
mov esi, eax
call fcn.0042c040
add esp, 4
mov edi, 0x10
mov byte [esp + 0x2b0], 3
cmp dword [eax + 0x18], edi
jb 0x41ae9a
mov eax, dword [eax + 4]
jmp 0x41ae9d
add eax, 4
mov ecx, dword [esi]
mov edx, dword [ecx + 0x18]
push eax
push str.error_status
push esi
call edx
cmp dword [esp + 0x58], edi
jb 0x41aebe
mov eax, dword [esp + 0x44]
push eax
call fcn.0044caf8
add esp, 4
mov esi, 0xf
mov byte [esp + 0x2b0], 1
cmp dword [esp + 0x2c], 8
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
jb 0x41aeeb
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0044caf8
add esp, 4
push 0x11
push str.vInstallPathError
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00403b10
mov byte [esp + 0x2b0], 4
call fcn.0041fe10
mov edx, dword [eax]
mov edx, dword [edx + 8]
lea ecx, [esp + 0x14]
push ecx
push eax
call edx
mov byte [esp + 0x2b0], 1
cmp dword [esp + 0x2c], edi
jb 0x41af3c
mov eax, dword [esp + 0x18]
push eax
call fcn.0044caf8
add esp, 4
mov esi, dword [esp + 0x30]
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push ebx
mov eax, 0x477e5c
mov word [esi + 4], cx
call fcn.00403ee0
cmp dword [esp + 0x90], edi
jb 0x41af71
mov edx, dword [esp + 0x7c]
push edx
call fcn.0044caf8
add esp, 4
cmp dword [esp + 0x74], 8
mov dword [esp + 0x90], 0xf
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
jb 0x41af9b
mov eax, dword [esp + 0x60]
push eax
call fcn.0044caf8
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.0044c790
mov esp, ebp
pop ebp
ret