Function at 0x1400f2340
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 [0x1401d5408]
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.1400d9050
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r15, rax
test rax, rax
jne 0x1400f23b1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r15, rax
test rax, rax
jne 0x1400f23b1
lea rbx, [rsi + 0x10]
jmp 0x1400f23eb
mov rdx, qword [rsi + 0x18]
lea r8, str.LUA_NOENV
add rdx, 0x40
mov rcx, rsi
call fcn.1400d91b0
mov rax, qword [rsi + 0x10]
lea rbx, [rsi + 0x10]
movzx ecx, byte [rax - 8]
cmp cl, 1
je 0x1400f2433
test cl, 0xf
je 0x1400f2433
mov edx, 0xfffffffe
mov rcx, rsi
call fcn.1400d8920
test r12, r12
jne 0x1400f23f9
mov rax, qword [rbx]
mov byte [rax + 8], r12b
jmp 0x1400f2413
mov rdx, r12
mov rcx, rsi
call fcn.1400fd8c0
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 0x1400f264e
mov rcx, rsi
call fcn.1400ebbc0
jmp 0x1400f264e
mov edx, 0xfffffffe
mov qword [rsp + 0x470], r13
mov rcx, rsi
call fcn.1400d8920
lea rdx, [0x1401b70d4]
mov rcx, r15
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov r13, rax
test rax, rax
jne 0x1400f24a8
test r15, r15
jne 0x1400f246e
mov rax, qword [rbx]
mov byte [rax + 8], r15b
jmp 0x1400f2488
mov rdx, r15
mov rcx, rsi
call fcn.1400fd8c0
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 0x1400f2646
mov rcx, rsi
call fcn.1400ebbc0
jmp 0x1400f2646
mov qword [rsp + 0x478], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x468], r14
nop
inc rdi
cmp byte [r15 + rdi], 0
jne 0x1400f24c0
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 0x1400f2577
mov r14, r13
sub r14, r15
je 0x1400f253b
mov r8d, 0xffffffff
lea rcx, [rsp + 0x30]
mov rdx, r14
call fcn.1400db4a0
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 0x1400f2540
mov rcx, qword [rsp + 0x40]
cmp rcx, qword [rsp + 0x38]
jb 0x1400f255f
mov edx, 1
lea rcx, [rsp + 0x30]
lea r8d, [rdx - 2]
call fcn.1400db4a0
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 0x1400f257c
mov rcx, qword [rsp + 0x40]
mov r14, 0xffffffffffffffff
inc r14
cmp byte [r12 + r14], 0
jne 0x1400f2583
test r14, r14
je 0x1400f25c0
mov r8d, 0xffffffff
lea rcx, [rsp + 0x30]
mov rdx, r14
call fcn.1400db4a0
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 0x1400f2634
cmp rcx, qword [rsp + 0x38]
jb 0x1400f25f3
mov edx, 1
lea rcx, [rsp + 0x30]
lea r8d, [rdx - 2]
call fcn.1400db4a0
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 0x1400f2634
mov r8d, 0xffffffff
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.1400db4a0
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.1400db6b0
mov rdi, qword [rsp + 0x478]
mov r13, qword [rsp + 0x470]
mov rcx, rsi
call fcn.1400f20f0
mov rdx, qword [rbx]
mov rcx, rsi
mov r8, qword [rsp + 0x20]
sub rdx, 0x30
call fcn.1400d93c0
mov edx, 0xfffffffe
mov rcx, rsi
call fcn.1400d8920
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.140115c10
add rsp, 0x480
pop r15
pop r12
pop rsi
pop rbx
pop rbp
ret