Function at 0x1800a40d0
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x180123010]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov r15, r8
mov r14, rdx
xor r12d, r12d
lea r8, [rcx + 0x10]
cmp qword [r8], r12
jne 0x1800a411d
xor al, al
jmp 0x1800a4572
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r12w
mov rax, rcx
mov rdx, qword [rcx + 0x18]
cmp rdx, 8
jb 0x1800a414b
mov rax, qword [rcx]
cmp word [rax], 0x40
jne 0x1800a41fb
mov r8, qword [r8]
dec r8d
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.18001eb70
mov rbx, rax
lea rax, [rsp + 0x40]
cmp rax, rbx
je 0x1800a41a0
lea rcx, [rsp + 0x40]
call fcn.180007ae0
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x1800a41e5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a41e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800a41e0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8c14
movdqa xmm0, xmmword [0x1800e81e0]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r12w
jmp 0x1800a421e
lea rax, [rsp + 0x40]
cmp rax, rcx
je 0x1800a421e
cmp rdx, 8
jb 0x1800a420e
mov rcx, qword [rcx]
mov r8, qword [r8]
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.180007b60
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
mov r8d, 0x104
lea rdx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
mov rbx, 0xffffffffffffffff
cmp eax, 0x104
jb 0x1800a42b8
mov eax, 2
mul rsi
cmovo rax, rbx
mov rcx, rax
call fcn.1800c9754
mov rdi, rax
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
mov r8d, esi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1800a4294
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.180007b60
mov rcx, rdi
call fcn.1800c8c14
jmp 0x1800a42db
lea rax, [rbp - 0x60]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1800a42c0
mov r8, rbx
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x40]
call fcn.180007b60
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r12w
mov r8d, 2
lea rdx, [0x1800e60d4]
lea rcx, [rbp - 0x80]
call fcn.180007b60
nop
lea r9, [rbp - 0x80]
mov rbx, qword [rbp - 0x80]
mov rsi, qword [rbp - 0x68]
cmp rsi, 8
cmovae r9, rbx
lea rcx, [rsp + 0x40]
mov r12, qword [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, r12
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
call fcn.18001f340
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800a4496
mov r8d, edi
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.18001eb10
nop
mov rdx, rax
mov rcx, r14
call fcn.1800076d0
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x1800a43ba
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a43b5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800a43b5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8c14
movdqa xmm0, xmmword [0x1800e81e0]
movdqu xmmword [rsp + 0x70], xmm0
xor r14d, r14d
mov word [rsp + 0x60], r14w
test r15, r15
je 0x1800a4491
mov r8d, dword [rsp + 0x50]
sub r8d, dword [rbp - 0x70]
sub r8d, edi
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.18001eb70
nop
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
mov ecx, r14d
movzx eax, word [rdx]
cmp ax, 0x30
jb 0x1800a4435
cmp ax, 0x39
ja 0x1800a4435
lea rcx, [rcx + rcx*4]
movzx eax, ax
lea rcx, [rcx - 0x18]
lea rcx, [rax + rcx*2]
add rdx, 2
movzx eax, word [rdx]
cmp ax, 0x30
jae 0x1800a4413
mov dword [r15], ecx
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x1800a447d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a4478
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800a4478
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8c14
movdqa xmm0, xmmword [0x1800e81e0]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r14w
mov dil, 1
jmp 0x1800a44c6
lea rax, [rsp + 0x40]
cmp r14, rax
je 0x1800a44bc
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, r12
mov r8, qword [rsp + 0x50]
mov rcx, r14
call fcn.180007b60
test r15, r15
sete dil
xor r14d, r14d
cmp rsi, 8
jb 0x1800a4504
lea rdx, [rsi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x1800a44fc
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800a44fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1800c8c14
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r14w
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x1800a455a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a4555
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800a4555
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8c14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r14w
movzx eax, dil
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1800c8bf0
add rsp, 0x2c0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret