Function at 0x14000bb8c
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x2f60
call fcn.14003ad30
sub rsp, rax
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x2fb0], rbx
mov rax, qword [0x14004de00]
xor rax, rsp
mov qword [rsp + 0x2f50], rax
mov rsi, rdx
movsxd rdi, ecx
mov ebx, 0x1770
mov rcx, rbx
call fcn.14001b160
mov r12, rax
mov r8d, ebx
mov rdx, rax
mov ecx, edi
call fcn.140004538
mov rdx, r12
lea rcx, str.entry__S
call fcn.140016394
mov ecx, 8
call fcn.14001c708
test rax, rax
je 0x14000bc13
lea rcx, [rsp + 0x28]
mov qword [rax], rcx
jmp 0x14000bc15
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, [0x14003e2ac]
mov rcx, r12
call fcn.14001d05c
mov rbx, rax
test rax, rax
je 0x14000bc96
mov rcx, rbx
call fcn.14001bd50
test rax, rax
je 0x14000bc96
mov rcx, rbx
call fcn.14001bd50
lea rcx, [rax + 1]
call fcn.14001b160
mov qword [rsp + 0x58], rax
mov rdx, rbx
mov rcx, rax
call fcn.14001c3c0
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x28]
call fcn.14000ac6c
lea rdx, [0x14003e2ac]
xor ecx, ecx
call fcn.14001d05c
mov rbx, rax
test rax, rax
jne 0x14000bc43
mov rdx, qword [rsp + 0x48]
sub rdx, qword [rsp + 0x40]
sar rdx, 3
lea rcx, [0x140040178]
call fcn.140016394
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 0x14000bf53
mov bl, byte [rsp + 0x20]
cmp rbp, rcx
jb 0x14000bce5
call fcn.14001c6e8
mov rdx, qword [rsp + 0x40]
mov rdi, qword [rdx + rbp*8]
lea rdx, [rdi + 2]
lea rcx, [rsp + 0x17e0]
call fcn.14001c3c0
lea rcx, [rsp + 0x17e0]
call fcn.14000995c
cmp byte [rdi + 1], 0x31
sete r13b
movsx ecx, byte [rdi]
sub ecx, 0x41
je 0x14000beb4
sub ecx, 3
je 0x14000beb4
sub ecx, 1
je 0x14000bdcb
cmp ecx, 0xe
jne 0x14000bf0d
xor r8d, r8d
lea rdx, [rsp + 0x17e0]
lea rcx, [rsp + 0x70]
call fcn.140007a54
cmp r15, 0x79
jne 0x14000bd82
lea r8, [0x140040174]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14000a660
mov bl, al
lea r8, [0x140040170]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14000a660
or bl, al
jmp 0x14000bf0d
lea rcx, [rsp + 0x70]
call fcn.14000651c
mov bl, al
lea rcx, [rsp + 0x70]
call fcn.14001bd50
mov r8, rax
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140007f04
lea rcx, [0x14003e2ac]
call fcn.14001bd50
mov r8, rax
lea rdx, [0x14003e2ac]
mov rcx, rsi
call fcn.140007f04
jmp 0x14000bf0d
mov r8d, 0x1770
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x17e0]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x14000be8a
cmp byte [rsp + 0x70], 0x22
jne 0x14000be35
lea rbx, [rsp + 0x70]
dec rbx
lea rcx, [rsp + 0x70]
call fcn.14001bd50
cmp byte [rax + rbx], 0x22
jne 0x14000be35
lea rcx, [rsp + 0x70]
call fcn.14001bd50
mov byte [rax + rbx], 0
lea rcx, [rsp + 0x71]
call fcn.14001bd50
mov r8, rax
lea rdx, [rsp + 0x71]
mov rcx, rsi
call fcn.140007f04
jmp 0x14000be4f
lea rcx, [rsp + 0x70]
call fcn.14001bd50
mov r8, rax
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140007f04
lea rcx, [rsp + 0x70]
call fcn.14001bd50
lea rcx, [rsp + 0x70]
cmp byte [rax + rcx - 1], 0x3b
je 0x14000be83
lea rcx, [0x14003e2ac]
call fcn.14001bd50
mov r8, rax
lea rdx, [0x14003e2ac]
mov rcx, rsi
call fcn.140007f04
mov bl, 1
jmp 0x14000bf0d
test r13b, r13b
je 0x14000bf28
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x14000bf0d
lea rdx, [rsp + 0x17e0]
mov ecx, 0x3f0
call fcn.140005aec
jmp 0x14000bf0d
xor r8d, r8d
lea rdx, [rsp + 0x17e0]
lea rcx, [rsp + 0x70]
call fcn.140007cb0
lea rcx, [rsp + 0x70]
call fcn.14000651c
mov bl, al
lea rcx, [rsp + 0x70]
call fcn.14001bd50
mov r8, rax
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140007f04
lea rcx, [0x14003e2ac]
call fcn.14001bd50
mov r8, rax
lea rdx, [0x14003e2ac]
mov rcx, rsi
call fcn.140007f04
test r13b, r13b
je 0x14000bf28
test bl, bl
jne 0x14000bf28
lea rdx, [rsp + 0x17e0]
mov ecx, 0x3ee
call fcn.140005aec
mov rcx, rdi
call fcn.14001c17c
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 0x14000bcd6
mov rcx, r12
call fcn.14001c17c
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000bf6b
call fcn.14001c17c
and qword [rsp + 0x40], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x28]
call fcn.14001c17c
mov rcx, qword [rsp + 0x2f50]
xor rcx, rsp
call fcn.14001c510
mov rbx, qword [rsp + 0x2fb0]
add rsp, 0x2f60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret