Function at 0x1000a1cbc
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 0x1000a1d02
lea r8, [0x10000a4c8]
lea rcx, [0x10000a2b8]
mov edx, 0x6e5
call fcn.100099ad8
mov ecx, 0x12
mov byte [r12], sil
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbp, rax
test rax, rax
jne 0x1000a1d23
mov edi, 0x8007000e
jmp 0x1000a1f36
xor eax, eax
lea rcx, [0x10000a4d8]
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 0x1000a1e8d
mov rcx, rbx
lea rdi, [0x10000a4b0]
mov rsi, rbp
repe cmpsw word [rsi], word [rdi]
lea rbx, [0x1001653b8]
jne 0x1000a1d98
mov r13b, 1
mov rcx, qword [0x1001653b8]
cmp rcx, rbx
je 0x1000a1d98
test byte [rcx + 0x1c], r13b
je 0x1000a1d98
cmp byte [rcx + 0x19], 4
jb 0x1000a1d98
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039e8]
mov edx, 0x58
call fcn.10001c7b8
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
lea r8, [0x10000a4f8]
lea rdx, [0x10000a510]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call fcn.1000a103c
mov rsi, qword [rsp + 0x68]
mov edi, eax
test eax, eax
js 0x1000a1f1f
lea rdx, [0x10000a570]
mov rcx, rsi
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x1000a1dfc
lea rdx, [0x10000a588]
mov rcx, rsi
call sub.msvcrt.dll__wcsicmp
test eax, eax
jne 0x1000a1dff
mov r14b, 1
mov rcx, qword [0x1001653b8]
cmp rcx, rbx
je 0x1000a1e3f
test byte [rcx + 0x1c], 1
je 0x1000a1e3f
cmp byte [rcx + 0x19], 4
jb 0x1000a1e3f
mov rcx, qword [rcx + 0x10]
movzx eax, r14b
lea r8, [0x1000039e8]
movzx r9d, r13b
mov edx, 0x5b
mov dword [rsp + 0x20], eax
call fcn.10001e8b4
mov rcx, qword [0x1001653b8]
test r13b, r13b
je 0x1000a1f1f
test r14b, r14b
je 0x1000a1f1f
mov byte [r12], 1
cmp rcx, rbx
je 0x1000a1f1f
test byte [rcx + 0x1c], 1
je 0x1000a1f1f
cmp byte [rcx + 0x19], 4
jb 0x1000a1f1f
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039e8]
mov edx, 0x5c
call fcn.10001c7b8
jmp 0x1000a1f1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
cmp edi, 0x800700cb
je 0x1000a1ee2
mov rcx, qword [0x1001653b8]
lea rbx, [0x1001653b8]
cmp rcx, rbx
je 0x1000a1f2d
test byte [rcx + 0x1c], 1
je 0x1000a1f2d
cmp byte [rcx + 0x19], 2
jb 0x1000a1f2d
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039e8]
mov edx, 0x5a
mov r9d, edi
call fcn.10001c7dc
jmp 0x1000a1f2d
mov rcx, qword [0x1001653b8]
lea rbx, [0x1001653b8]
cmp rcx, rbx
je 0x1000a1f1d
test byte [rcx + 0x1c], 1
je 0x1000a1f1d
cmp byte [rcx + 0x19], 4
jb 0x1000a1f1d
mov rcx, qword [rcx + 0x10]
lea r9, [0x10000a4d8]
lea r8, [0x1000039e8]
mov edx, 0x59
call fcn.10001da24
xor edi, edi
test rsi, rsi
je 0x1000a1f2d
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