Function at 0x18088ab7
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x181d600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, edi
mov dword [ebp - 0x218], edx
call fcn.18007546
mov ebx, dword [0x181dd0b4]
test ebx, ebx
je 0x18088c01
and dword [ebp - 0x210], 0
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x218]
mov ecx, ebx
push 0x5000
push esi
call dword [0x181663e8]
call ebx
add esp, 0x10
mov dword [ebp - 0x224], eax
test eax, eax
js 0x18088bea
mov ebx, dword [ebp - 0x210]
test ebx, ebx
je 0x18088be3
push ebx
call fcn.1813abd0
mov dword [ebp - 0x218], eax
pop ecx
test eax, eax
je 0x18088be3
mov ecx, dword [edi]
mov edx, ebx
sub edx, ecx
sar edx, 1
push eax
mov esi, dword [ecx - 0xc]
mov ecx, edi
mov dword [ebp - 0x21c], edx
call fcn.180075b2
mov edx, dword [ebp - 0x21c]
cmp edx, esi
mov esi, dword [ebp - 0x218]
mov dword [ebp - 0x220], eax
ja 0x18088bc6
mov ecx, dword [edi]
lea edx, [eax + edx*2]
mov ebx, dword [ecx - 8]
lea ecx, [esi + esi]
test ecx, ecx
je 0x18088bd9
test eax, eax
jne 0x18088b99
call fcn.1813aa5f
mov dword [eax], 0x16
call fcn.1813a955
jmp 0x18088bd9
test edx, edx
je 0x18088b87
lea eax, [ebx + ebx]
cmp eax, ecx
jae 0x18088bb1
call fcn.1813aa5f
mov dword [eax], 0x22
jmp 0x18088b92
push ecx
push edx
push dword [ebp - 0x220]
lfence
call fcn.18136600
add esp, 0xc
jmp 0x18088bd9
lfence
mov edx, dword [edi]
mov ecx, eax
push esi
push ebx
mov edx, dword [edx - 8]
call fcn.18007797
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.18007587
jmp 0x18088bea
mov ecx, edi
call fcn.18007546
push dword [ebp - 0x210]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x224]
jmp 0x18088d76
push 0x10
push 0x18175c9c
push esi
call fcn.18136e81
add esp, 0xc
test eax, eax
jne 0x18088c6e
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.ProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x18088c53
lea eax, [ebp - 0x20c]
push eax
call fcn.1813abd0
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.180075ed
xor eax, eax
jmp 0x18088d76
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x18088d76
movzx eax, ax
or eax, 0x80070000
jmp 0x18088d76
and dword [ebp - 0x214], 0
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x218]
push 0x5000
push esi
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov dword [ebp - 0x21c], eax
test eax, eax
js 0x18088d64
mov ebx, dword [ebp - 0x214]
test ebx, ebx
je 0x18088d5d
push ebx
call fcn.1813abd0
mov dword [ebp - 0x218], eax
pop ecx
test eax, eax
je 0x18088d5d
mov ecx, dword [edi]
mov edx, ebx
sub edx, ecx
sar edx, 1
push eax
mov esi, dword [ecx - 0xc]
mov ecx, edi
mov dword [ebp - 0x224], edx
call fcn.180075b2
mov edx, dword [ebp - 0x224]
cmp edx, esi
mov esi, dword [ebp - 0x218]
mov dword [ebp - 0x220], eax
ja 0x18088d40
mov ecx, dword [edi]
lea edx, [eax + edx*2]
mov ebx, dword [ecx - 8]
lea ecx, [esi + esi]
test ecx, ecx
je 0x18088d53
test eax, eax
jne 0x18088d13
call fcn.1813aa5f
mov dword [eax], 0x16
call fcn.1813a955
jmp 0x18088d53
test edx, edx
je 0x18088d01
lea eax, [ebx + ebx]
cmp eax, ecx
jae 0x18088d2b
call fcn.1813aa5f
mov dword [eax], 0x22
jmp 0x18088d0c
push ecx
push edx
push dword [ebp - 0x220]
lfence
call fcn.18136600
add esp, 0xc
jmp 0x18088d53
lfence
mov edx, dword [edi]
mov ecx, eax
push esi
push ebx
mov edx, dword [edx - 8]
call fcn.18007797
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.18007587
jmp 0x18088d64
mov ecx, edi
call fcn.18007546
push dword [ebp - 0x214]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18121ed8
leave
ret