Function at 0x1400aa6b0
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push r12
push r15
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x140111028]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov r12, r9
mov qword [rsp + 0x20], rdx
lea r9, str._5_4
mov rbx, r8
lea rdx, str._s_s
mov rsi, rcx
call fcn.140091410
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r15, rax
test rax, rax
jne 0x1400aa721
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r15, rax
test rax, rax
jne 0x1400aa721
lea rbx, [rsi + 0x10]
jmp 0x1400aa75b
mov rdx, qword [rsi + 0x18]
lea r8, str.LUA_NOENV
add rdx, 0x40
mov rcx, rsi
call fcn.140091570
mov rax, qword [rsi + 0x10]
lea rbx, [rsi + 0x10]
movzx ecx, byte [rax - 8]
cmp cl, 1
je 0x1400aa7a3
test cl, 0xf
je 0x1400aa7a3
mov edx, 0xfffffffe
mov rcx, rsi
call fcn.140090ce0
test r12, r12
jne 0x1400aa769
mov rax, qword [rbx]
mov byte [rax + 8], r12b
jmp 0x1400aa783
mov rdx, r12
mov rcx, rsi
call fcn.1400b5c20
mov rcx, qword [rbx]
mov qword [rcx], rax
movzx eax, byte [rax + 8]
or al, 0x40
mov byte [rcx + 8], al
mov rax, qword [rsi + 0x18]
add qword [rbx], 0x10
cmp qword [rax + 0x18], 0
jle 0x1400aa9be
mov rcx, rsi
call fcn.1400a3f30
jmp 0x1400aa9be
mov edx, 0xfffffffe
mov qword [rsp + 0x470], r13
mov rcx, rsi
call fcn.140090ce0
lea rdx, [0x1400fac0c]
mov rcx, r15
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov r13, rax
test rax, rax
jne 0x1400aa818
test r15, r15
jne 0x1400aa7de
mov rax, qword [rbx]
mov byte [rax + 8], r15b
jmp 0x1400aa7f8
mov rdx, r15
mov rcx, rsi
call fcn.1400b5c20
mov rcx, qword [rbx]
mov qword [rcx], rax
movzx eax, byte [rax + 8]
or al, 0x40
mov byte [rcx + 8], al
mov rax, qword [rsi + 0x18]
add qword [rbx], 0x10
cmp qword [rax + 0x18], 0
jle 0x1400aa9b6
mov rcx, rsi
call fcn.1400a3f30
jmp 0x1400aa9b6
mov qword [rsp + 0x478], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x468], r14
nop
inc rdi
cmp byte [r15 + rdi], 0
jne 0x1400aa830
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
mov rax, qword [rbx]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0x400
mov qword [rax], rcx
mov byte [rax + 8], 2
add qword [rbx], 0x10
cmp r15, r13
jae 0x1400aa8e7
mov r14, r13
sub r14, r15
je 0x1400aa8ab
mov r8d, 0xffffffff
lea rcx, [rsp + 0x30]
mov rdx, r14
call fcn.140093860
mov r8, r14
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x40]
add rcx, r14
mov qword [rsp + 0x40], rcx
jmp 0x1400aa8b0
mov rcx, qword [rsp + 0x40]
cmp rcx, qword [rsp + 0x38]
jb 0x1400aa8cf
mov edx, 1
lea rcx, [rsp + 0x30]
lea r8d, [rdx - 2]
call fcn.140093860
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x30]
mov byte [rax + rcx], 0x3b
mov rcx, qword [rsp + 0x40]
inc rcx
mov qword [rsp + 0x40], rcx
jmp 0x1400aa8ec
mov rcx, qword [rsp + 0x40]
mov r14, 0xffffffffffffffff
inc r14
cmp byte [r12 + r14], 0
jne 0x1400aa8f3
test r14, r14
je 0x1400aa930
mov r8d, 0xffffffff
lea rcx, [rsp + 0x30]
mov rdx, r14
call fcn.140093860
mov r8, r14
mov rdx, r12
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x40]
add rcx, r14
mov qword [rsp + 0x40], rcx
mov r14, qword [rsp + 0x468]
lea rax, [r15 - 2]
add rax, rdi
cmp r13, rax
jae 0x1400aa9a4
cmp rcx, qword [rsp + 0x38]
jb 0x1400aa963
mov edx, 1
lea rcx, [rsp + 0x30]
lea r8d, [rdx - 2]
call fcn.140093860
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x30]
sub rdi, r13
add rdi, 0xfffffffffffffffe
mov byte [rax + rcx], 0x3b
inc qword [rsp + 0x40]
add rdi, r15
je 0x1400aa9a4
mov r8d, 0xffffffff
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.140093860
lea rdx, [r13 + 2]
mov r8, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
add qword [rsp + 0x40], rdi
lea rcx, [rsp + 0x30]
call fcn.140093a70
mov rdi, qword [rsp + 0x478]
mov r13, qword [rsp + 0x470]
mov rcx, rsi
call fcn.1400aa460
mov rdx, qword [rbx]
mov rcx, rsi
mov r8, qword [rsp + 0x20]
sub rdx, 0x30
call fcn.140091780
mov edx, 0xfffffffe
mov rcx, rsi
call fcn.140090ce0
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.1400c6990
add rsp, 0x480
pop r15
pop r12
pop rsi
pop rbx
pop rbp
ret