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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100192d6
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
mov ecx, 0x10023f70
call fcn.100011a0
lea eax, [ebp - 0x14]
push eax
call fcn.10016fe0
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 0x1001755d
lea ecx, [ebp - 0x18]
push ecx
call fcn.10017200
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 0x10017639
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
mov ecx, 0x10023f58
call fcn.10001880
push eax
lea edx, [ebp - 0x1c]
push edx
call fcn.10011220
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.10016f10
add esp, 4
lea ecx, [ebp - 0x10]
call fcn.10001880
push eax
call fcn.10016be0
add esp, 4
test eax, eax
je 0x10017614
movzx eax, byte [0x10023f2c]
and eax, 0xf
mov byte [0x10023f2c], al
movzx ecx, byte [0x10023f2c]
add ecx, 0x20
mov byte [0x10023f2c], cl
jmp 0x1001761c
lea ecx, [ebp - 0x10]
call fcn.100011a0
lea ecx, [ebp - 0x10]
call fcn.10001880
push eax
call fcn.10016c30
add esp, 4
test eax, eax
jne 0x10017639
lea ecx, [ebp - 0x10]
call fcn.100011a0
lea ecx, [ebp - 0x10]
call fcn.10001250
movzx edx, al
test edx, edx
je 0x10017704
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
mov ecx, 0x10023f54
call fcn.10001880
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10011220
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.10016f10
add esp, 4
lea ecx, [ebp - 0x10]
call fcn.10001880
push eax
call fcn.10016c30
add esp, 4
test eax, eax
jne 0x100176e4
lea ecx, [ebp - 0x10]
call fcn.100011a0
jmp 0x10017704
movzx ecx, byte [0x10023f2c]
and ecx, 0xf
mov byte [0x10023f2c], cl
movzx edx, byte [0x10023f2c]
add edx, 0x30
mov byte [0x10023f2c], dl
lea ecx, [ebp - 0x10]
call fcn.10001250
movzx eax, al
test eax, eax
jne 0x10017721
lea ecx, [ebp - 0x10]
push ecx
mov ecx, 0x10023f70
call fcn.10001160
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.10001120
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
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