Function at 0x1800b4830
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r13
lea rbp, [rax - 0x368]
sub rsp, 0x440
mov qword [rax + 8], r12
lea rdx, str._s_s
mov r12, r9
mov qword [rax + 0x18], r14
lea r9, str._5_4
mov qword [rax + 0x20], r15
mov rbx, r8
mov rdi, rcx
call fcn.180099140
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor r13d, r13d
mov r15, rax
test rax, rax
jne 0x1800b48b1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r15, rax
test rax, rax
jne 0x1800b48b1
lea rbx, [rdi + 0x10]
test r12, r12
jne 0x1800b4aeb
mov rax, qword [rbx]
mov byte [rax + 8], r13b
jmp 0x1800b4b05
mov rdx, qword [rdi + 0x18]
lea r8, str.LUA_NOENV
add rdx, 0x40
mov rcx, rdi
call fcn.1800992a0
mov rsi, qword [rdi + 0x10]
lea rbx, [rdi + 0x10]
add rsi, 0xfffffffffffffff0
movzx eax, byte [rsi + 8]
cmp al, 1
je 0x1800b48e6
mov r14d, 1
test al, 0xf
jne 0x1800b48e9
mov r14d, r13d
cmp qword [rdi + 0x40], rsi
jb 0x1800b4901
xor r9d, r9d
mov rdx, rsi
mov rcx, rdi
lea r8d, [r9 - 1]
call fcn.1800a9b50
mov qword [rbx], rsi
test r14d, r14d
jne 0x1800b489c
lea rdx, [0x1802d6cec]
mov rcx, r15
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov r13, rax
test rax, rax
jne 0x1800b4968
test r15, r15
jne 0x1800b492f
mov rax, qword [rbx]
mov byte [rax + 8], r15b
jmp 0x1800b4949
mov rdx, r15
mov rcx, rdi
call fcn.1800c1f40
mov rcx, qword [rbx]
mov qword [rcx], rax
movzx eax, byte [rax + 8]
or al, 0x40
mov byte [rcx + 8], al
mov rax, qword [rdi + 0x18]
add qword [rbx], 0x10
cmp qword [rax + 0x18], 0
jle 0x1800b4960
mov rcx, rdi
call fcn.1800adef0
xor r13d, r13d
jmp 0x1800b4b1b
mov rsi, 0xffffffffffffffff
nop
inc rsi
cmp byte [r15 + rsi], 0
jne 0x1800b4970
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
mov rax, qword [rbx]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0x400
mov qword [rax], rcx
mov byte [rax + 8], 2
add qword [rbx], 0x10
cmp r15, r13
jae 0x1800b4a27
mov r14, r13
sub r14, r15
je 0x1800b49eb
mov r8d, 0xffffffff
lea rcx, [rsp + 0x20]
mov rdx, r14
call fcn.18009b3d0
mov r8, r14
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x30]
add rcx, r14
mov qword [rsp + 0x30], rcx
jmp 0x1800b49f0
mov rcx, qword [rsp + 0x30]
cmp rcx, qword [rsp + 0x28]
jb 0x1800b4a0f
mov edx, 1
lea rcx, [rsp + 0x20]
lea r8d, [rdx - 2]
call fcn.18009b3d0
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x20]
mov byte [rax + rcx], 0x3b
mov rcx, qword [rsp + 0x30]
inc rcx
mov qword [rsp + 0x30], rcx
jmp 0x1800b4a2c
mov rcx, qword [rsp + 0x30]
mov r14, 0xffffffffffffffff
inc r14
cmp byte [r12 + r14], 0
jne 0x1800b4a33
test r14, r14
je 0x1800b4a70
mov r8d, 0xffffffff
lea rcx, [rsp + 0x20]
mov rdx, r14
call fcn.18009b3d0
mov r8, r14
mov rdx, r12
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x30]
add rcx, r14
mov qword [rsp + 0x30], rcx
lea rax, [r15 - 2]
add rax, rsi
cmp r13, rax
jae 0x1800b4adc
cmp rcx, qword [rsp + 0x28]
jb 0x1800b4a9b
mov edx, 1
lea rcx, [rsp + 0x20]
lea r8d, [rdx - 2]
call fcn.18009b3d0
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x20]
sub rsi, r13
add rsi, 0xfffffffffffffffe
mov byte [rax + rcx], 0x3b
inc qword [rsp + 0x30]
add rsi, r15
je 0x1800b4adc
mov r8d, 0xffffffff
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.18009b3d0
lea rdx, [r13 + 2]
mov r8, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
add qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x20]
call fcn.18009b5f0
xor r13d, r13d
jmp 0x1800b4b1b
mov rdx, r12
mov rcx, rdi
call fcn.1800c1f40
mov rcx, qword [rbx]
mov qword [rcx], rax
movzx eax, byte [rax + 8]
or al, 0x40
mov byte [rcx + 8], al
mov rax, qword [rdi + 0x18]
add qword [rbx], 0x10
cmp qword [rax + 0x18], r13
jle 0x1800b4b1b
mov rcx, rdi
call fcn.1800adef0
mov r8d, 0x105
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov r15, qword [rsp + 0x488]
mov r14, qword [rsp + 0x480]
mov r12, qword [rsp + 0x470]
test eax, eax
je 0x1800b4c46
cmp eax, 0x105
je 0x1800b4c46
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x1800b4c46
mov byte [rax], 0
mov rax, qword [rbx]
sub rax, 0x10
movzx ecx, byte [rax + 8]
and cl, 0xf
cmp cl, 4
je 0x1800b4bb2
cmp cl, 3
jne 0x1800b4bb9
mov rdx, rax
mov rcx, rdi
call fcn.1800b7380
mov rax, qword [rdi + 0x18]
cmp qword [rax + 0x18], 0
jle 0x1800b4bab
mov rcx, rdi
call fcn.1800adef0
mov rax, qword [rbx]
sub rax, 0x10
mov r13, qword [rax]
add r13, 0x18
lea r9, [rsp + 0x20]
mov rdx, r13
lea r8, [0x1802d6cd4]
mov rcx, rdi
call fcn.18009cb50
mov edx, 0xfffffffe
mov rcx, rdi
lea r8d, [rdx + 1]
call fcn.180098b10
mov rsi, qword [rbx]
sub rsi, 0x10
cmp qword [rdi + 0x40], rsi
jb 0x1800b4c00
xor r9d, r9d
mov rdx, rsi
mov rcx, rdi
lea r8d, [r9 - 1]
call fcn.1800a9b50
mov r8, qword [rbp + 0x378]
lea rdx, [rsi - 0x30]
mov rcx, rdi
mov qword [rbx], rsi
call fcn.180099700
mov rsi, qword [rbx]
sub rsi, 0x10
cmp qword [rdi + 0x40], rsi
jb 0x1800b4c35
xor r9d, r9d
mov rdx, rsi
mov rcx, rdi
lea r8d, [r9 - 1]
call fcn.1800a9b50
mov qword [rbx], rsi
add rsp, 0x440
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rdx, str.unable_to_get_ModuleFileName
mov rcx, rdi
call fcn.18009ac90
int3