Function at 0x14002b5a0
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 [0x140149080]
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.140011f60
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r15, rax
test rax, rax
jne 0x14002b611
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r15, rax
test rax, rax
jne 0x14002b611
lea rbx, [rsi + 0x10]
jmp 0x14002b64b
mov rdx, qword [rsi + 0x18]
lea r8, str.LUA_NOENV
add rdx, 0x40
mov rcx, rsi
call fcn.1400120c0
mov rax, qword [rsi + 0x10]
lea rbx, [rsi + 0x10]
movzx ecx, byte [rax - 8]
cmp cl, 1
je 0x14002b693
test cl, 0xf
je 0x14002b693
mov edx, 0xfffffffe
mov rcx, rsi
call fcn.140011930
test r12, r12
jne 0x14002b659
mov rax, qword [rbx]
mov byte [rax + 8], r12b
jmp 0x14002b673
mov rdx, r12
mov rcx, rsi
call fcn.140036b90
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 0x14002b8ae
mov rcx, rsi
call fcn.140024de0
jmp 0x14002b8ae
mov edx, 0xfffffffe
mov qword [rsp + 0x470], r13
mov rcx, rsi
call fcn.140011930
lea rdx, [0x14012249c]
mov rcx, r15
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov r13, rax
test rax, rax
jne 0x14002b708
test r15, r15
jne 0x14002b6ce
mov rax, qword [rbx]
mov byte [rax + 8], r15b
jmp 0x14002b6e8
mov rdx, r15
mov rcx, rsi
call fcn.140036b90
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 0x14002b8a6
mov rcx, rsi
call fcn.140024de0
jmp 0x14002b8a6
mov qword [rsp + 0x478], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x468], r14
nop
inc rdi
cmp byte [r15 + rdi], 0
jne 0x14002b720
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 0x14002b7d7
mov r14, r13
sub r14, r15
je 0x14002b79b
mov r8d, 0xffffffff
lea rcx, [rsp + 0x30]
mov rdx, r14
call fcn.140014430
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 0x14002b7a0
mov rcx, qword [rsp + 0x40]
cmp rcx, qword [rsp + 0x38]
jb 0x14002b7bf
mov edx, 1
lea rcx, [rsp + 0x30]
lea r8d, [rdx - 2]
call fcn.140014430
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x30]
mov byte [rax + rcx], Ordinal_60
mov rcx, qword [rsp + 0x40]
inc rcx
mov qword [rsp + 0x40], rcx
jmp 0x14002b7dc
mov rcx, qword [rsp + 0x40]
mov r14, 0xffffffffffffffff
inc r14
cmp byte [r12 + r14], 0
jne 0x14002b7e3
test r14, r14
je 0x14002b820
mov r8d, 0xffffffff
lea rcx, [rsp + 0x30]
mov rdx, r14
call fcn.140014430
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 0x14002b894
cmp rcx, qword [rsp + 0x38]
jb 0x14002b853
mov edx, 1
lea rcx, [rsp + 0x30]
lea r8d, [rdx - 2]
call fcn.140014430
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x30]
sub rdi, r13
add rdi, 0xfffffffffffffffe
mov byte [rax + rcx], Ordinal_60
inc qword [rsp + 0x40]
add rdi, r15
je 0x14002b894
mov r8d, 0xffffffff
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.140014430
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.140014640
mov rdi, qword [rsp + 0x478]
mov r13, qword [rsp + 0x470]
mov rcx, rsi
call fcn.14002b350
mov rdx, qword [rbx]
mov rcx, rsi
mov r8, qword [rsp + 0x20]
sub rdx, 0x30
call fcn.140012340
mov edx, 0xfffffffe
mov rcx, rsi
call fcn.140011930
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.1401058c0
add rsp, 0x480
pop r15
pop r12
pop rsi
pop rbx
pop rbp
ret