Function at 0x1000a2298
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
xor esi, esi
xor r14b, r14b
xor r13b, r13b
and dword [rax + 8], esi
mov r12, rcx
mov qword [rax + 0x10], rsi
test rcx, rcx
jne 0x1000a22de
lea r8, [0x10000a448]
lea rcx, [0x10000a238]
mov edx, 0x6e5
call fcn.10009a050
mov ecx, 0x12
mov byte [r12], sil
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbp, rax
test rax, rax
jne 0x1000a22ff
mov edi, 0x8007000e
jmp 0x1000a2512
xor eax, eax
lea rcx, [0x10000a458]
mov rdx, rbp
mov qword [rbp], rax
lea ebx, [rax + 9]
mov qword [rbp + 8], rax
mov r8d, ebx
mov word [rbp + 0x10], ax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1000a2469
mov rcx, rbx
lea rdi, [0x10000a430]
mov rsi, rbp
repe cmpsw word [rsi], word [rdi]
lea rbx, [0x1001653b8]
jne 0x1000a2374
mov r13b, 1
mov rcx, qword [0x1001653b8]
cmp rcx, rbx
je 0x1000a2374
test byte [rcx + 0x1c], r13b
je 0x1000a2374
cmp byte [rcx + 0x19], 4
jb 0x1000a2374
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039a8]
mov edx, 0x58
call fcn.10001c854
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
lea r8, [0x10000a478]
lea rdx, [0x10000a490]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call fcn.1000a1618
mov rsi, qword [rsp + 0x68]
mov edi, eax
test eax, eax
js 0x1000a24fb
lea rdx, [0x10000a4f0]
mov rcx, rsi
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x1000a23d8
lea rdx, [0x10000a508]
mov rcx, rsi
call sub.msvcrt.dll__wcsicmp
test eax, eax
jne 0x1000a23db
mov r14b, 1
mov rcx, qword [0x1001653b8]
cmp rcx, rbx
je 0x1000a241b
test byte [rcx + 0x1c], 1
je 0x1000a241b
cmp byte [rcx + 0x19], 4
jb 0x1000a241b
mov rcx, qword [rcx + 0x10]
movzx eax, r14b
lea r8, [0x1000039a8]
movzx r9d, r13b
mov edx, 0x5b
mov dword [rsp + 0x20], eax
call fcn.10001d914
mov rcx, qword [0x1001653b8]
test r13b, r13b
je 0x1000a24fb
test r14b, r14b
je 0x1000a24fb
mov byte [r12], 1
cmp rcx, rbx
je 0x1000a24fb
test byte [rcx + 0x1c], 1
je 0x1000a24fb
cmp byte [rcx + 0x19], 4
jb 0x1000a24fb
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039a8]
mov edx, 0x5c
call fcn.10001c854
jmp 0x1000a24fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
cmp edi, 0x800700cb
je 0x1000a24be
mov rcx, qword [0x1001653b8]
lea rbx, [0x1001653b8]
cmp rcx, rbx
je 0x1000a2509
test byte [rcx + 0x1c], 1
je 0x1000a2509
cmp byte [rcx + 0x19], 2
jb 0x1000a2509
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039a8]
mov edx, 0x5a
mov r9d, edi
call fcn.10001c878
jmp 0x1000a2509
mov rcx, qword [0x1001653b8]
lea rbx, [0x1001653b8]
cmp rcx, rbx
je 0x1000a24f9
test byte [rcx + 0x1c], 1
je 0x1000a24f9
cmp byte [rcx + 0x19], 4
jb 0x1000a24f9
mov rcx, qword [rcx + 0x10]
lea r9, [0x10000a458]
lea r8, [0x1000039a8]
mov edx, 0x59
call fcn.10001db08
xor edi, edi
test rsi, rsi
je 0x1000a2509
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov eax, edi
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret