Function at 0x1400d73c0
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 [0x1402ca088]
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.1400bdf30
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r15, rax
test rax, rax
jne 0x1400d7431
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r15, rax
test rax, rax
jne 0x1400d7431
lea rbx, [rsi + 0x10]
jmp 0x1400d746b
mov rdx, qword [rsi + 0x18]
lea r8, str.LUA_NOENV
add rdx, 0x40
mov rcx, rsi
call fcn.1400be090
mov rax, qword [rsi + 0x10]
lea rbx, [rsi + 0x10]
movzx ecx, byte [rax - 8]
cmp cl, 1
je 0x1400d74b3
test cl, 0xf
je 0x1400d74b3
mov edx, 0xfffffffe
mov rcx, rsi
call fcn.1400bd680
test r12, r12
jne 0x1400d7479
mov rax, qword [rbx]
mov byte [rax + 8], r12b
jmp 0x1400d7493
mov rdx, r12
mov rcx, rsi
call fcn.1400e2bd0
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 0x1400d76ce
mov rcx, rsi
call fcn.1400d0cb0
jmp 0x1400d76ce
mov edx, 0xfffffffe
mov qword [rsp + 0x470], r13
mov rcx, rsi
call fcn.1400bd680
lea rdx, [0x1402a7bdc]
mov rcx, r15
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov r13, rax
test rax, rax
jne 0x1400d7528
test r15, r15
jne 0x1400d74ee
mov rax, qword [rbx]
mov byte [rax + 8], r15b
jmp 0x1400d7508
mov rdx, r15
mov rcx, rsi
call fcn.1400e2bd0
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 0x1400d76c6
mov rcx, rsi
call fcn.1400d0cb0
jmp 0x1400d76c6
mov qword [rsp + 0x478], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x468], r14
nop
inc rdi
cmp byte [r15 + rdi], 0
jne 0x1400d7540
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 0x1400d75f7
mov r14, r13
sub r14, r15
je 0x1400d75bb
mov r8d, 0xffffffff
lea rcx, [rsp + 0x30]
mov rdx, r14
call fcn.1400c03c0
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 0x1400d75c0
mov rcx, qword [rsp + 0x40]
cmp rcx, qword [rsp + 0x38]
jb 0x1400d75df
mov edx, 1
lea rcx, [rsp + 0x30]
lea r8d, [rdx - 2]
call fcn.1400c03c0
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 0x1400d75fc
mov rcx, qword [rsp + 0x40]
mov r14, 0xffffffffffffffff
inc r14
cmp byte [r12 + r14], 0
jne 0x1400d7603
test r14, r14
je 0x1400d7640
mov r8d, 0xffffffff
lea rcx, [rsp + 0x30]
mov rdx, r14
call fcn.1400c03c0
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 0x1400d76b4
cmp rcx, qword [rsp + 0x38]
jb 0x1400d7673
mov edx, 1
lea rcx, [rsp + 0x30]
lea r8d, [rdx - 2]
call fcn.1400c03c0
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 0x1400d76b4
mov r8d, 0xffffffff
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.1400c03c0
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.1400c05d0
mov rdi, qword [rsp + 0x478]
mov r13, qword [rsp + 0x470]
mov rcx, rsi
call fcn.1400d7170
mov rdx, qword [rbx]
mov rcx, rsi
mov r8, qword [rsp + 0x20]
sub rdx, 0x30
call fcn.1400be2a0
mov edx, 0xfffffffe
mov rcx, rsi
call fcn.1400bd680
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.140157bf0
add rsp, 0x480
pop r15
pop r12
pop rsi
pop rbx
pop rbp
ret