Function at 0x14000a490
Capabilities:
Get common file path
Get process image filename
Query environment variable

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x618
mov rcx, qword [rsp + 0x620]
call fcn.14000b1f0
movzx eax, al
test eax, eax
je 0x14000a4bb
xor al, al
jmp 0x14000a7bd
mov r8, qword [rsp + 0x620]
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call fcn.14000a9f0
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call fcn.14000ad40
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call fcn.14000aa70
nop
cmp dword [rsp + 0x628], 0xffffffff
jne 0x14000a53d
mov qword [rsp + 0x40], 0
lea r8, [rsp + 0x40]
mov edx, 0x104
mov rcx, qword [rsp + 0x620]
call fcn.14000aa70
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x628], eax
mov edx, 0x104
lea rcx, [rsp + 0x2e0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, 0x104
lea rdx, [rsp + 0x3f0]
mov rcx, rax
call sub.KERNEL32.dll_K32GetProcessImageFileNameA
mov eax, eax
mov qword [rsp + 0x58], rax
mov edx, 0x104
lea rcx, [rsp + 0x3f0]
call fcn.14000ad40
lea r8, [rsp + 0x58]
mov edx, 0x104
lea rcx, [rsp + 0x3f0]
call fcn.14000aa70
nop
lea rdx, str.rgnxJONnOWBzHiAZtS1LYSrXtS4mKFImW7fDxOb1yCISwxCNY
lea rcx, [rsp + 0x60]
call fcn.140005410
nop
lea rdx, [rsp + 0x60]
lea rcx, str.IR4dDC8iChwmISc
call fcn.140019ad0
mov r8d, 0x104
lea rdx, [rsp + 0x500]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x14000a5e5
mov dword [rsp + 0x24], 1
jmp 0x14000a5ed
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
mov byte [rsp + 0x20], al
lea rcx, [rsp + 0x60]
call fcn.1400056d0
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14000a7bb
mov r8d, 0x104
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x500]
call fcn.14000b190
test eax, eax
jbe 0x14000a7bb
lea rdx, str.FqN4IPTzLUAf5KrUM4wngFVYFyfM191UEOE84tIJQDCw5JtwwGjegarfKw290vsEOEtxdeUp1hH27R5W942JCq
lea rcx, [rsp + 0x80]
call fcn.140005410
nop
lea rdx, [rsp + 0x80]
lea rcx, str.Gi0ZXSc0Ow0_CR01TDgGMCAHRTI7
call fcn.140019ad0
mov r8, rax
mov edx, 0x104
lea rcx, [rsp + 0x1d0]
call fcn.14000a960
nop
lea rcx, [rsp + 0x80]
call fcn.1400056d0
nop
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x28]
mov edx, 0x104
lea rcx, [rsp + 0x1d0]
call fcn.14000aa70
nop
mov eax, dword [rsp + 0x628]
cmp qword [rsp + 0x28], rax
jae 0x14000a6b8
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
jmp 0x14000a6c4
mov eax, dword [rsp + 0x628]
mov qword [rsp + 0x48], rax
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x620]
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
jne 0x14000a6ea
xor al, al
jmp 0x14000a7bd
lea rdx, str.4KV75xZiL2aVz3mI8ynmOMjR9etQ7wesY
lea rcx, [rsp + 0xa0]
call fcn.140005410
nop
lea rdx, [rsp + 0xa0]
lea rcx, str.aBc
call fcn.140019ad0
mov r8, rax
mov edx, 0x104
lea rcx, [rsp + 0x2e0]
call fcn.14000a960
nop
lea rcx, [rsp + 0xa0]
call fcn.1400056d0
nop
mov qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov edx, 0x104
lea rcx, [rsp + 0x2e0]
call fcn.14000aa70
nop
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x30], rax
jae 0x14000a770
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
jmp 0x14000a77a
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov r8d, dword [rsp + 0x50]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x2e0]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
jne 0x14000a79d
xor al, al
jmp 0x14000a7bd
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x14000a7bb
xor al, al
jmp 0x14000a7bd
mov al, 1
add rsp, 0x618
ret