Function at 0x14000ac24
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x2f60
call fcn.140030d40
sub rsp, rax
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x2fb0], rbx
mov rax, qword [0x1400409c0]
xor rax, rsp
mov qword [rsp + 0x2f50], rax
mov rsi, rdx
movsxd rdi, ecx
mov ebx, 0x1770
mov rcx, rbx
call fcn.140016208
mov r12, rax
mov r8d, ebx
mov rdx, rax
mov ecx, edi
call fcn.140004540
mov rdx, r12
lea rcx, str.entry__S
call fcn.1400116b0
mov ecx, 8
call fcn.140016c48
test rax, rax
je 0x14000acab
lea rcx, [rsp + 0x28]
mov qword [rax], rcx
jmp 0x14000acad
xor eax, eax
mov qword [rsp + 0x28], rax
and qword [rsp + 0x40], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
lea rdx, [0x14003423c]
mov rcx, r12
call fcn.14001759c
mov rbx, rax
test rax, rax
je 0x14000ad2e
mov rcx, rbx
call fcn.140016330
test rax, rax
je 0x14000ad2e
mov rcx, rbx
call fcn.140016330
lea rcx, [rax + 1]
call fcn.140016208
mov qword [rsp + 0x58], rax
mov rdx, rbx
mov rcx, rax
call fcn.140016900
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x28]
call fcn.14000804c
lea rdx, [0x14003423c]
xor ecx, ecx
call fcn.14001759c
mov rbx, rax
test rax, rax
jne 0x14000acdb
mov rdx, qword [rsp + 0x48]
sub rdx, qword [rsp + 0x40]
sar rdx, 3
lea rcx, [0x140035fe8]
call fcn.1400116b0
xor r14d, r14d
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
sub rcx, rdx
sar rcx, 3
xor ebp, ebp
mov r15, rdi
test rcx, rcx
je 0x14000afeb
mov bl, byte [rsp + 0x20]
cmp rbp, rcx
jb 0x14000ad7d
call fcn.140016c28
mov rdx, qword [rsp + 0x40]
mov rdi, qword [rdx + rbp*8]
lea rdx, [rdi + 2]
lea rcx, [rsp + 0x17e0]
call fcn.140016900
lea rcx, [rsp + 0x17e0]
call fcn.140008f10
cmp byte [rdi + 1], 0x31
sete r13b
movsx ecx, byte [rdi]
sub ecx, 0x41
je 0x14000af4c
sub ecx, 3
je 0x14000af4c
sub ecx, 1
je 0x14000ae63
cmp ecx, 0xe
jne 0x14000afa5
xor r8d, r8d
lea rdx, [rsp + 0x17e0]
lea rcx, [rsp + 0x70]
call fcn.140006e74
cmp r15, 0x79
jne 0x14000ae1a
lea r8, [0x140035fe4]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140009b3c
mov bl, al
lea r8, [0x140035fe0]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140009b3c
or bl, al
jmp 0x14000afa5
lea rcx, [rsp + 0x70]
call fcn.140005bb8
mov bl, al
lea rcx, [rsp + 0x70]
call fcn.140016330
mov r8, rax
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140007324
lea rcx, [0x14003423c]
call fcn.140016330
mov r8, rax
lea rdx, [0x14003423c]
mov rcx, rsi
call fcn.140007324
jmp 0x14000afa5
mov r8d, 0x1770
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x17e0]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x14000af22
cmp byte [rsp + 0x70], 0x22
jne 0x14000aecd
lea rbx, [rsp + 0x70]
dec rbx
lea rcx, [rsp + 0x70]
call fcn.140016330
cmp byte [rax + rbx], 0x22
jne 0x14000aecd
lea rcx, [rsp + 0x70]
call fcn.140016330
mov byte [rax + rbx], 0
lea rcx, [rsp + 0x71]
call fcn.140016330
mov r8, rax
lea rdx, [rsp + 0x71]
mov rcx, rsi
call fcn.140007324
jmp 0x14000aee7
lea rcx, [rsp + 0x70]
call fcn.140016330
mov r8, rax
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140007324
lea rcx, [rsp + 0x70]
call fcn.140016330
lea rcx, [rsp + 0x70]
cmp byte [rax + rcx - 1], 0x3b
je 0x14000af1b
lea rcx, [0x14003423c]
call fcn.140016330
mov r8, rax
lea rdx, [0x14003423c]
mov rcx, rsi
call fcn.140007324
mov bl, 1
jmp 0x14000afa5
test r13b, r13b
je 0x14000afc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x14000afa5
lea rdx, [rsp + 0x17e0]
mov ecx, 0x3f0
call fcn.140004f7c
jmp 0x14000afa5
xor r8d, r8d
lea rdx, [rsp + 0x17e0]
lea rcx, [rsp + 0x70]
call fcn.1400070d0
lea rcx, [rsp + 0x70]
call fcn.140005bb8
mov bl, al
lea rcx, [rsp + 0x70]
call fcn.140016330
mov r8, rax
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140007324
lea rcx, [0x14003423c]
call fcn.140016330
mov r8, rax
lea rdx, [0x14003423c]
mov rcx, rsi
call fcn.140007324
test r13b, r13b
je 0x14000afc0
test bl, bl
jne 0x14000afc0
lea rdx, [rsp + 0x17e0]
mov ecx, 0x3ee
call fcn.140004f7c
mov rcx, rdi
call fcn.1400166c0
inc r14d
inc rbp
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
sub rcx, rdx
sar rcx, 3
movsxd rax, r14d
cmp rax, rcx
jb 0x14000ad6e
mov rcx, r12
call fcn.1400166c0
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000b003
call fcn.1400166c0
and qword [rsp + 0x40], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x28]
call fcn.1400166c0
mov rcx, qword [rsp + 0x2f50]
xor rcx, rsp
call fcn.140016a50
mov rbx, qword [rsp + 0x2fb0]
add rsp, 0x2f60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret