Function at 0x1800bbdd0
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.1800a0420
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 0x1800bbe40
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r14, rax
test rax, rax
je 0x1800bc0f9
mov rdx, qword [rbx + 0x18]
lea r8, str.LUA_NOENV
add rdx, 0x40
mov rcx, rbx
call fcn.1800a0580
mov rdi, qword [rbx + 0x10]
add rdi, 0xfffffffffffffff0
movzx eax, byte [rdi + 8]
cmp al, 1
je 0x1800bbe70
mov esi, 1
test al, 0xf
jne 0x1800bbe73
mov esi, r13d
cmp qword [rbx + 0x40], rdi
jb 0x1800bbe8b
xor r9d, r9d
mov rdx, rdi
mov rcx, rbx
lea r8d, [r9 - 1]
call fcn.1800b10f0
mov qword [rbx + 0x10], rdi
test esi, esi
jne 0x1800bc0f9
lea rdx, [0x1802e61b4]
mov rcx, r14
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov r15, rax
test rax, rax
jne 0x1800bbf7b
test r14, r14
jne 0x1800bbec2
mov rax, qword [rbx + 0x10]
mov byte [rax + 8], r13b
jmp 0x1800bbedd
mov rdx, r14
mov rcx, rbx
call fcn.1800c9230
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 0x1800bbef4
mov rcx, rbx
call fcn.1800b5490
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 0x1800bc20a
cmp eax, 0x105
je 0x1800bc20a
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x1800bc20a
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 0x1800bc170
cmp cl, 3
je 0x1800bc143
lea rdi, [rbx + 0x10]
jmp 0x1800bc177
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [r14 + rdi], r13b
jne 0x1800bbf82
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 0x1800bc036
mov rsi, r15
sub rsi, r14
je 0x1800bbffa
mov r8d, 0xffffffff
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.1800a26e0
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 0x1800bbfff
mov rcx, qword [rsp + 0x30]
cmp rcx, qword [rsp + 0x28]
jb 0x1800bc01e
mov edx, 1
lea rcx, [rsp + 0x20]
lea r8d, [rdx - 2]
call fcn.1800a26e0
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 0x1800bc03b
mov rcx, qword [rsp + 0x30]
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [r12 + rsi], r13b
jne 0x1800bc042
test rsi, rsi
je 0x1800bc07e
mov r8d, 0xffffffff
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.1800a26e0
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 0x1800bc0ea
cmp rcx, qword [rsp + 0x28]
jb 0x1800bc0a9
mov edx, 1
lea rcx, [rsp + 0x20]
lea r8d, [rdx - 2]
call fcn.1800a26e0
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 0x1800bc0ea
mov r8d, 0xffffffff
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.1800a26e0
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.1800a2900
jmp 0x1800bbef4
test r12, r12
jne 0x1800bc108
mov rax, qword [rbx + 0x10]
mov byte [rax + 8], r13b
jmp 0x1800bc123
mov rdx, r12
mov rcx, rbx
call fcn.1800c9230
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 0x1800bbefb
mov rcx, rbx
call fcn.1800b5490
jmp 0x1800bbefb
mov rdx, rax
mov rcx, rbx
call fcn.1800be960
mov rax, qword [rbx + 0x18]
lea rdi, [rbx + 0x10]
cmp qword [rax + 0x18], r13
jle 0x1800bc168
mov rcx, rbx
call fcn.1800b5490
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, [0x1802e619c]
mov rcx, rbx
call fcn.1800a3e40
mov edx, 0xfffffffe
mov rcx, rbx
lea r8d, [rdx + 1]
call fcn.18009fdd0
mov rsi, qword [rbx + 0x10]
sub rsi, 0x10
cmp qword [rbx + 0x40], rsi
jb 0x1800bc1bf
xor r9d, r9d
mov rdx, rsi
mov rcx, rbx
lea r8d, [r9 - 1]
call fcn.1800b10f0
lea rdx, [rsi - 0x30]
mov qword [rdi], rsi
mov r8, r15
mov rcx, rbx
call fcn.1800a09e0
mov rsi, qword [rdi]
sub rsi, 0x10
cmp qword [rbx + 0x40], rsi
jb 0x1800bc1f0
xor r9d, r9d
mov rdx, rsi
mov rcx, rbx
lea r8d, [r9 - 1]
call fcn.1800b10f0
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.1800a1f90
int3