Function at 0xa5ff60
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 0xa64d48
call fcn.00a517f0
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0xa5ffac
jmp 0xa601be
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + eax + 0x208]
push ecx
call fcn.00a63770
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0xa5ffd5
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0xa601be
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0xd2d61642
push 7
push 0xa64d48
call fcn.00a517f0
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0xa60006
jmp 0xa601be
mov dword [ebp - 0x18], 0
push 0x5b17dd70
push 0x10
push 0xa64e8c
call fcn.00a517f0
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.00a5fc80
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0xa6004a
jmp 0xa601be
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00a5ff30
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 0xa6006e
jmp 0xa601be
mov edx, dword [0xa68cb8]
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.00a63770
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0xa600a8
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0xa601be
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 0xa600cb
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0xa601be
cmp dword [ebp - 0x18], 0
je 0xa600fa
mov eax, dword [ebp - 0x10]
push eax
push 0xb5416aed
push 3
push 0xa64ea0
call fcn.00a517f0
add esp, 0xc
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00a56ec0
add esp, 0x10
jmp 0xa60108
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 0xa64ea4
call fcn.00a517f0
add esp, 0xc
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.00a56ec0
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0x6d362e2e
push 0xb
push 0xa64b94
call fcn.00a517f0
add esp, 0xc
push eax
call fcn.00a625e0
add esp, 0xc
test eax, eax
setne cl
mov byte [ebp - 5], cl
movzx edx, byte [ebp - 5]
test edx, edx
jne 0xa60169
jmp 0xa601be
cmp dword [ebp - 0xc], 0
jne 0xa60171
jmp 0xa601be
cmp dword [ebp - 4], 0
jne 0xa60179
jmp 0xa601be
mov eax, dword [ebp - 4]
push eax
push 0x8a7c48c4
push 0x19
push 0xa64eac
call fcn.00a517f0
add esp, 0xc
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00a56c20
add esp, 0xc
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00a62850
add esp, 8
test eax, eax
setne cl
mov byte [ebp - 5], cl
xor edx, edx
jne 0xa5ff7f
mov eax, dword [ebp - 0x10]
push eax
call fcn.00a63970
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call fcn.00a63970
add esp, 4
mov edx, dword [ebp - 0xc]
push edx
call fcn.00a63970
add esp, 4
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret