Function at 0x1800bbd30
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r13
push r15
lea rbp, [rax - 0x368]
sub rsp, 0x440
mov qword [rax + 8], r12
mov r15, rdx
mov r12, r9
mov qword [rax + 0x18], r14
lea r9, str._5_4
mov rdi, r8
lea rdx, str._s_s
mov rbx, rcx
call fcn.1800a0380
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor r13d, r13d
mov r14, rax
test rax, rax
jne 0x1800bbda0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r14, rax
test rax, rax
je 0x1800bc059
mov rdx, qword [rbx + 0x18]
lea r8, str.LUA_NOENV
add rdx, 0x40
mov rcx, rbx
call fcn.1800a04e0
mov rdi, qword [rbx + 0x10]
add rdi, 0xfffffffffffffff0
movzx eax, byte [rdi + 8]
cmp al, 1
je 0x1800bbdd0
mov esi, 1
test al, 0xf
jne 0x1800bbdd3
mov esi, r13d
cmp qword [rbx + 0x40], rdi
jb 0x1800bbdeb
xor r9d, r9d
mov rdx, rdi
mov rcx, rbx
lea r8d, [r9 - 1]
call fcn.1800b1050
mov qword [rbx + 0x10], rdi
test esi, esi
jne 0x1800bc059
lea rdx, [0x1802fd1ec]
mov rcx, r14
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov r15, rax
test rax, rax
jne 0x1800bbedb
test r14, r14
jne 0x1800bbe22
mov rax, qword [rbx + 0x10]
mov byte [rax + 8], r13b
jmp 0x1800bbe3d
mov rdx, r14
mov rcx, rbx
call fcn.1800c9190
mov rcx, qword [rbx + 0x10]
mov qword [rcx], rax
movzx eax, byte [rax + 8]
or al, 0x40
mov byte [rcx + 8], al
mov rax, qword [rbx + 0x18]
add qword [rbx + 0x10], 0x10
cmp qword [rax + 0x18], r13
jle 0x1800bbe54
mov rcx, rbx
call fcn.1800b53f0
mov r15, qword [rbp + 0x378]
mov r8d, 0x105
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov r14, qword [rsp + 0x480]
mov r12, qword [rsp + 0x470]
test eax, eax
je 0x1800bc16a
cmp eax, 0x105
je 0x1800bc16a
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x1800bc16a
mov byte [rax], r13b
lea rdi, [rbx + 0x10]
mov rax, qword [rbx + 0x10]
sub rax, 0x10
movzx ecx, byte [rax + 8]
and cl, 0xf
cmp cl, 4
je 0x1800bc0d0
cmp cl, 3
je 0x1800bc0a3
lea rdi, [rbx + 0x10]
jmp 0x1800bc0d7
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [r14 + rdi], r13b
jne 0x1800bbee2
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], 0x400
mov qword [rax], rcx
mov byte [rax + 8], 2
add qword [rbx + 0x10], 0x10
cmp r14, r15
jae 0x1800bbf96
mov rsi, r15
sub rsi, r14
je 0x1800bbf5a
mov r8d, 0xffffffff
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.1800a2640
mov r8, rsi
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x30]
add rcx, rsi
mov qword [rsp + 0x30], rcx
jmp 0x1800bbf5f
mov rcx, qword [rsp + 0x30]
cmp rcx, qword [rsp + 0x28]
jb 0x1800bbf7e
mov edx, 1
lea rcx, [rsp + 0x20]
lea r8d, [rdx - 2]
call fcn.1800a2640
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 0x1800bbf9b
mov rcx, qword [rsp + 0x30]
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [r12 + rsi], r13b
jne 0x1800bbfa2
test rsi, rsi
je 0x1800bbfde
mov r8d, 0xffffffff
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.1800a2640
mov r8, rsi
mov rdx, r12
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x30]
add rcx, rsi
mov qword [rsp + 0x30], rcx
lea rax, [r14 - 2]
add rax, rdi
cmp r15, rax
jae 0x1800bc04a
cmp rcx, qword [rsp + 0x28]
jb 0x1800bc009
mov edx, 1
lea rcx, [rsp + 0x20]
lea r8d, [rdx - 2]
call fcn.1800a2640
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x20]
sub rdi, r15
add rdi, 0xfffffffffffffffe
mov byte [rax + rcx], 0x3b
inc qword [rsp + 0x30]
add rdi, r14
je 0x1800bc04a
mov r8d, 0xffffffff
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.1800a2640
lea rdx, [r15 + 2]
mov r8, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
add qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x20]
call fcn.1800a2860
jmp 0x1800bbe54
test r12, r12
jne 0x1800bc068
mov rax, qword [rbx + 0x10]
mov byte [rax + 8], r13b
jmp 0x1800bc083
mov rdx, r12
mov rcx, rbx
call fcn.1800c9190
mov rcx, qword [rbx + 0x10]
mov qword [rcx], rax
movzx eax, byte [rax + 8]
or al, 0x40
mov byte [rcx + 8], al
mov rax, qword [rbx + 0x18]
add qword [rbx + 0x10], 0x10
cmp qword [rax + 0x18], r13
jle 0x1800bbe5b
mov rcx, rbx
call fcn.1800b53f0
jmp 0x1800bbe5b
mov rdx, rax
mov rcx, rbx
call fcn.1800be8c0
mov rax, qword [rbx + 0x18]
lea rdi, [rbx + 0x10]
cmp qword [rax + 0x18], r13
jle 0x1800bc0c8
mov rcx, rbx
call fcn.1800b53f0
lea rdi, [rbx + 0x10]
mov rax, qword [rbx + 0x10]
sub rax, 0x10
mov r13, qword [rax]
add r13, 0x18
lea r9, [rsp + 0x20]
mov rdx, r13
lea r8, [0x1802fd188]
mov rcx, rbx
call fcn.1800a3da0
mov edx, 0xfffffffe
mov rcx, rbx
lea r8d, [rdx + 1]
call fcn.18009fd30
mov rsi, qword [rbx + 0x10]
sub rsi, 0x10
cmp qword [rbx + 0x40], rsi
jb 0x1800bc11f
xor r9d, r9d
mov rdx, rsi
mov rcx, rbx
lea r8d, [r9 - 1]
call fcn.1800b1050
lea rdx, [rsi - 0x30]
mov qword [rdi], rsi
mov r8, r15
mov rcx, rbx
call fcn.1800a0940
mov rsi, qword [rdi]
sub rsi, 0x10
cmp qword [rbx + 0x40], rsi
jb 0x1800bc150
xor r9d, r9d
mov rdx, rsi
mov rcx, rbx
lea r8d, [r9 - 1]
call fcn.1800b1050
mov rbx, qword [rsp + 0x488]
mov qword [rdi], rsi
add rsp, 0x440
pop r15
pop r13
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.unable_to_get_ModuleFileName
mov rcx, rbx
call fcn.1800a1ef0
int3