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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001928b
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x10021030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x10]
call fcn.10001100
mov dword [ebp - 4], 0
mov byte [0x10023f2c], 0
lea eax, [ebp - 0x14]
push eax
call fcn.10018700
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x30]
push edx
lea ecx, [ebp - 0x10]
call fcn.10001160
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.10001140
lea ecx, [ebp - 0x10]
call fcn.10001250
movzx eax, al
test eax, eax
je 0x10018c73
lea ecx, [ebp - 0x18]
push ecx
call fcn.10018910
add esp, 4
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x38], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x10]
call fcn.10001160
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.10001140
lea ecx, [ebp - 0x10]
call fcn.10001250
movzx ecx, al
test ecx, ecx
je 0x10018d2c
push 0x104
lea ecx, [ebp - 0x10]
call fcn.10002b80
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.10001270
push str.762A7E2A4F2A442A492A4F2A442A5E2A762A7B2A7B2A682A582A452A5D2A592A4F2A582A762A2A2A
lea edx, [ebp - 0x1c]
push edx
call fcn.100110b0
add esp, 8
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x10]
call fcn.10001180
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.10001140
lea edx, [ebp - 0x10]
push edx
call fcn.10018640
add esp, 4
lea ecx, [ebp - 0x10]
call fcn.10001880
push eax
call fcn.10018500
add esp, 4
test eax, eax
je 0x10018d24
movzx eax, byte [0x10023f2c]
and eax, 0xf
mov byte [0x10023f2c], al
movzx ecx, byte [0x10023f2c]
add ecx, 0x20
mov byte [0x10023f2c], cl
jmp 0x10018d2c
lea ecx, [ebp - 0x10]
call fcn.100011a0
lea ecx, [ebp - 0x10]
call fcn.10001250
movzx edx, al
test edx, edx
je 0x10018df1
lea eax, [ebp - 0x20]
push eax
call fcn.10016d30
add esp, 4
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x48]
push edx
lea ecx, [ebp - 0x10]
call fcn.10001160
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.10001140
push str.042A042A762A7B2A7B2A682A582A452A5D2A592A4F2A582A762A2A2A
lea eax, [ebp - 0x24]
push eax
call fcn.100110b0
add esp, 8
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x50]
push edx
lea ecx, [ebp - 0x10]
call fcn.10001180
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.10001140
lea eax, [ebp - 0x10]
push eax
call fcn.10018640
add esp, 4
lea ecx, [ebp - 0x10]
call fcn.10001880
push eax
call fcn.10018500
add esp, 4
test eax, eax
je 0x10018de9
movzx ecx, byte [0x10023f2c]
and ecx, 0xf
mov byte [0x10023f2c], cl
movzx edx, byte [0x10023f2c]
add edx, 0x30
mov byte [0x10023f2c], dl
jmp 0x10018df1
lea ecx, [ebp - 0x10]
call fcn.100011a0
mov ecx, 0x10023f78
call fcn.10001250
movzx eax, al
test eax, eax
jne 0x10018e0f
push 0x10023f78
lea ecx, [ebp - 0x10]
call fcn.10001160
lea ecx, [ebp - 0x10]
call fcn.10001250
movzx ecx, al
test ecx, ecx
jne 0x10018e2c
lea edx, [ebp - 0x10]
push edx
mov ecx, 0x10023f70
call fcn.10001160
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.10001120
mov ecx, dword [ebp - 0x28]
or ecx, 1
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10001140
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret