Function at 0x1400a6570
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14016ca00]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov r14, r8
mov rbx, rdx
cmp qword [rcx + 0x10], 0
jne 0x1400a65b8
xor al, al
jmp 0x1400a6931
xor r15d, r15d
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r15
mov word [rsp + 0x28], r15w
cmp qword [rcx + 0x18], 8
jb 0x1400a65e5
mov rax, qword [rcx]
jmp 0x1400a65e8
mov rax, rcx
or r12, 0xffffffffffffffff
cmp word [rax], 0x40
jne 0x1400a666f
mov r8, qword [rcx + 0x10]
dec r8d
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.140061930
mov rdi, rax
lea rax, [rsp + 0x28]
cmp rax, rdi
je 0x1400a6647
cmp qword [rsp + 0x40], 8
jb 0x1400a6625
mov rcx, qword [rsp + 0x28]
call fcn.1400bd20c
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r15
mov word [rsp + 0x28], r15w
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.14000b0c0
nop
cmp qword [rsp + 0x60], 8
jb 0x1400a6659
mov rcx, qword [rsp + 0x48]
call fcn.1400bd20c
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r15
mov word [rsp + 0x48], r15w
jmp 0x1400a668c
lea rax, [rsp + 0x28]
cmp rax, rcx
je 0x1400a668c
mov r9, r12
xor r8d, r8d
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.140006b90
mov word [rbp - 0x70], r15w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x6e]
call fcn.1400c2130
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
mov r8d, 0x104
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
cmp eax, 0x104
jb 0x1400a6732
mov eax, 2
mul rsi
cmovo rax, r12
mov rcx, rax
call fcn.1400bbc88
mov rdi, rax
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
mov r8d, esi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp word [rdi], 0
jne 0x1400a670b
mov r8, r15
jmp 0x1400a671b
mov r8, r12
nop
inc r8
cmp word [rdi + r8*2], 0
jne 0x1400a6710
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.140006900
mov rcx, rdi
call fcn.1400bd2dc
jmp 0x1400a675e
cmp word [rbp - 0x70], 0
jne 0x1400a673e
mov r8, r15
jmp 0x1400a6750
lea rax, [rbp - 0x70]
mov r8, r12
inc r8
cmp word [rax + r8*2], 0
jne 0x1400a6745
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x28]
call fcn.140006900
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r15
mov word [rsp + 0x68], r15w
mov r8d, 2
lea rdx, [0x140125520]
lea rcx, [rsp + 0x68]
call fcn.140006900
nop
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rdx, qword [rsp + 0x68]
mov r9, qword [rsp + 0x78]
xor r8d, r8d
lea rcx, [rsp + 0x28]
call fcn.140012f50
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400a68c1
mov r8d, eax
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.1400618d0
mov rdi, rax
cmp rbx, rax
je 0x1400a6806
cmp qword [rbx + 0x18], 8
jb 0x1400a67ea
mov rcx, qword [rbx]
call fcn.1400bd20c
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r15
mov word [rbx], r15w
mov rdx, rdi
mov rcx, rbx
call fcn.14000b0c0
nop
cmp qword [rsp + 0x60], 8
jb 0x1400a6818
mov rcx, qword [rsp + 0x48]
call fcn.1400bd20c
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r15
mov word [rsp + 0x48], r15w
test r14, r14
je 0x1400a68bd
mov r8d, dword [rsp + 0x38]
sub r8d, dword [rsp + 0x78]
sub r8d, esi
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.140061930
nop
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
mov r8, r15
movzx eax, word [rdx]
cmp ax, 0x30
jb 0x1400a6894
nop
cmp ax, 0x39
ja 0x1400a6894
movzx eax, ax
sub eax, 0x30
movsxd rcx, eax
lea rax, [r8 + r8*4]
lea r8, [rcx + rax*2]
add rdx, 2
movzx eax, word [rdx]
cmp ax, 0x30
jae 0x1400a6870
mov dword [r14], r8d
cmp qword [rsp + 0x60], 8
jb 0x1400a68a9
mov rcx, qword [rsp + 0x48]
call fcn.1400bd20c
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r15
mov word [rsp + 0x48], r15w
mov bl, 1
jmp 0x1400a68e4
lea rax, [rsp + 0x28]
cmp rbx, rax
je 0x1400a68de
mov r9, r12
xor r8d, r8d
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.140006b90
test r14, r14
sete bl
cmp qword [rbp - 0x80], 8
jb 0x1400a68f5
mov rcx, qword [rsp + 0x68]
call fcn.1400bd20c
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r15
mov word [rsp + 0x68], r15w
cmp qword [rsp + 0x40], 8
jb 0x1400a691a
mov rcx, qword [rsp + 0x28]
call fcn.1400bd20c
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r15
mov word [rsp + 0x28], r15w
movzx eax, bl
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400bcae0
add rsp, 0x2b0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret