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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov byte [ebp - 5], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
push 0
push 0
push 0xd2d61642
push 7
push 0x18d34d48
call fcn.18d217f0
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x18d2ffac
jmp 0x18d301be
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + eax + 0x208]
push ecx
call fcn.18d33770
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x18d2ffd5
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x18d301be
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0xd2d61642
push 7
push 0x18d34d48
call fcn.18d217f0
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x18d30006
jmp 0x18d301be
mov dword [ebp - 0x18], 0
push 0x5b17dd70
push 0x10
push 0x18d34e8c
call fcn.18d217f0
add esp, 0xc
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.18d2fc80
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x18d3004a
jmp 0x18d301be
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.18d2ff30
add esp, 4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x18d3006e
jmp 0x18d301be
mov edx, dword [0x18d38cb8]
add edx, 0x34
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax + 1]
lea eax, [edx + edx + 0xa]
push eax
call fcn.18d33770
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x18d300a8
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x18d301be
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 1
push edx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, dword [ebp - 0x14]
jbe 0x18d300cb
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x18d301be
cmp dword [ebp - 0x18], 0
je 0x18d300fa
mov eax, dword [ebp - 0x10]
push eax
push 0xb5416aed
push 3
push 0x18d34ea0
call fcn.18d217f0
add esp, 0xc
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.18d26ec0
add esp, 0x10
jmp 0x18d30108
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x65c1e14f
push 6
push 0x18d34ea4
call fcn.18d217f0
add esp, 0xc
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.18d26ec0
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0x6d362e2e
push 0xb
push 0x18d34b94
call fcn.18d217f0
add esp, 0xc
push eax
call fcn.18d325e0
add esp, 0xc
test eax, eax
setne cl
mov byte [ebp - 5], cl
movzx edx, byte [ebp - 5]
test edx, edx
jne 0x18d30169
jmp 0x18d301be
cmp dword [ebp - 0xc], 0
jne 0x18d30171
jmp 0x18d301be
cmp dword [ebp - 4], 0
jne 0x18d30179
jmp 0x18d301be
mov eax, dword [ebp - 4]
push eax
push 0x8a7c48c4
push 0x19
push 0x18d34eac
call fcn.18d217f0
add esp, 0xc
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.18d26c20
add esp, 0xc
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.18d32850
add esp, 8
test eax, eax
setne cl
mov byte [ebp - 5], cl
xor edx, edx
jne 0x18d2ff7f
mov eax, dword [ebp - 0x10]
push eax
call fcn.18d33970
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call fcn.18d33970
add esp, 4
mov edx, dword [ebp - 0xc]
push edx
call fcn.18d33970
add esp, 4
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret