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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4409c3
push eax
mov eax, 0x2c4c
mov dword fs:[0], esp
call fcn.0041e2c0
push esi
mov dword [esp + 0x14], 0
lea eax, [esp + 0x2c64]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x2c5c], 1
call fcn.00432520
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c58], 2
call fcn.00432c79
push 0x45332c
lea ecx, [esp + 0x2c68]
call fcn.0042f37e
cmp eax, 0xffffffff
je 0x40e035
push 0x453328
lea ecx, [esp + 0x2c68]
call fcn.0042f37e
cmp eax, 0xffffffff
je 0x40e035
mov ecx, dword [esp + 0x2c64]
push edi
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x2c68]
push eax
call fcn.00432b75
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x544]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov dl, byte [0x453326]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [0x453b24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cx, word [0x453324]
mov byte [esp + 0x12], dl
mov word [esp + 0x10], cx
mov dword [esp + 8], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x544]
push ecx
push edx
mov byte [esp + 0x2c64], 3
call fcn.0041e0a9
mov esi, eax
add esp, 8
test esi, esi
je 0x40dfdf
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push esi
lea ecx, [esp + 0x10]
call fcn.00432819
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c5c], 4
call fcn.00432c79
mov eax, dword [esp + 0xc]
push str.programfiles
push eax
call fcn.0041dffa
add esp, 8
test eax, eax
jne 0x40dec7
push eax
lea ecx, [esp + 0x230]
push 0x26
push ecx
push eax
call edi
test eax, eax
je 0x40dfb5
lea edx, [esp + 0x22c]
push edx
jmp 0x40dfac
mov eax, dword [esp + 0xc]
push str.desktop
push eax
call fcn.0041dffa
add esp, 8
test eax, eax
jne 0x40deff
push eax
lea ecx, [esp + 0x440]
push eax
push ecx
push eax
call edi
test eax, eax
je 0x40dfb5
lea edx, [esp + 0x43c]
push edx
jmp 0x40dfac
mov eax, dword [esp + 0xc]
push str.system
push eax
call fcn.0041dffa
add esp, 8
test eax, eax
jne 0x40df35
push eax
lea ecx, [esp + 0x128]
push 0x25
push ecx
push eax
call edi
test eax, eax
je 0x40dfb5
lea edx, [esp + 0x124]
push edx
jmp 0x40dfac
mov eax, dword [esp + 0xc]
push str.windows
push eax
call fcn.0041dffa
add esp, 8
test eax, eax
jne 0x40df67
push eax
lea ecx, [esp + 0x338]
push 0x24
push ecx
push eax
call edi
test eax, eax
je 0x40dfb5
lea edx, [esp + 0x334]
push edx
jmp 0x40dfac
mov eax, dword [esp + 0xc]
push str.root
push eax
call fcn.0041dffa
add esp, 8
test eax, eax
jne 0x40dfab
lea ecx, [esp + 0x1c]
push 0x105
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 8]
push edx
call fcn.00432b48
mov eax, dword [esp + 0x1d]
lea ecx, [esp + 8]
push eax
call fcn.00432b48
jmp 0x40dfb5
push esi
lea ecx, [esp + 0xc]
call fcn.00432b21
lea ecx, [esp + 0x10]
push ecx
push 0
call fcn.0041e0a9
add esp, 8
lea ecx, [esp + 0xc]
mov esi, eax
mov byte [esp + 0x2c5c], 3
call fcn.004327ab
test esi, esi
jne 0x40de73
mov esi, dword [esp + 0x2c64]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.00432520
mov dword [esp + 0x18], 1
lea ecx, [esp + 8]
mov byte [esp + 0x2c5c], 2
call fcn.004327ab
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c5c], 1
call fcn.004327ab
lea ecx, [esp + 0x2c68]
mov byte [esp + 0x2c5c], 0
call fcn.004327ab
mov eax, esi
pop edi
jmp 0x40e07a
mov esi, dword [esp + 0x2c60]
lea eax, [esp + 0x2c64]
push eax
mov ecx, esi
call fcn.00432520
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 1
mov byte [esp + 0x2c58], 1
call fcn.004327ab
lea ecx, [esp + 0x2c64]
mov byte [esp + 0x2c58], 0
call fcn.004327ab
mov eax, esi
mov ecx, dword [esp + 0x2c50]
pop esi
mov dword fs:[0], ecx
add esp, 0x2c58
ret 8