Function at 0x180063720
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x158
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov qword [r11 - 0x38], r12
mov rbp, rcx
mov r12, qword [rsp + 0x1b0]
mov rcx, r8
mov qword [r11 - 0x40], r15
mov rbx, r9
mov r13, rdx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor r14d, r14d
mov r15, rax
test rax, rax
jne 0x180063788
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r15, rax
test rax, rax
jne 0x180063788
lea rsi, [rbp + 0x10]
jmp 0x1800637e4
mov rbx, qword [rbp + 0x10]
lea rsi, [rbp + 0x10]
mov rdi, qword [rbp + 0x18]
lea rdx, str.LUA_NOENV
mov rcx, rbp
call fcn.18005c4c0
mov qword [rbx], rax
lea rdx, [rdi + 0x40]
movzx ecx, byte [rax + 8]
or ecx, 0x40
mov dword [rbx + 8], ecx
mov rcx, rbp
mov r8, qword [rsi]
mov r9, r8
lea rax, [r8 + 0x10]
mov qword [rsi], rax
call fcn.1800518c0
mov rax, qword [rsi]
add rax, 0xfffffffffffffff0
mov ecx, dword [rax + 8]
test ecx, ecx
je 0x180063829
cmp ecx, 1
jne 0x1800637e1
cmp dword [rax], r14d
je 0x180063829
mov qword [rsi], rax
test r12, r12
jne 0x1800637f6
mov rax, qword [rsi]
mov dword [rax + 8], r14d
add qword [rsi], 0x10
jmp 0x18006386f
mov rax, qword [rbp + 0x18]
cmp qword [rax + 0x18], r14
jle 0x180063808
mov rcx, rbp
call fcn.180057530
mov rdx, r12
mov rcx, rbp
call fcn.18005c4c0
mov rcx, qword [rsi]
mov qword [rcx], rax
movzx eax, byte [rax + 8]
or eax, 0x40
mov dword [rcx + 8], eax
add qword [rsi], 0x10
jmp 0x18006386f
lea r9, [0x1800f8f84]
mov qword [rsi], rax
lea r8, [0x1800f8f98]
mov rdx, r15
mov rcx, rbp
call fcn.180051480
mov r9, r12
lea r8, [0x1800f8f94]
mov rdx, rax
mov rcx, rbp
call fcn.180051480
mov edx, 0xfffffffe
mov rcx, rbp
lea r8d, [rdx + 1]
call fcn.18004cde0
add qword [rsi], 0xfffffffffffffff0
mov r8d, 0x105
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov r15, qword [rsp + 0x148]
mov r12, qword [rsp + 0x150]
test eax, eax
je 0x18006398e
cmp eax, 0x105
je 0x18006398e
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x18006398e
mov byte [rax], r14b
mov rbx, qword [rsi]
sub rbx, 0x10
mov eax, dword [rbx + 8]
and eax, 0xf
cmp eax, 4
je 0x1800638fc
cmp eax, 3
jne 0x180063903
mov rax, qword [rbp + 0x18]
cmp qword [rax + 0x18], r14
jle 0x1800638ea
mov rcx, rbp
call fcn.180057530
mov rbx, qword [rsi]
mov rcx, rbp
sub rbx, 0x10
mov rdx, rbx
call fcn.18005a460
mov r14, qword [rbx]
add r14, 0x18
lea r9, [rsp + 0x20]
mov rdx, r14
lea r8, [0x1800f5e8c]
mov rcx, rbp
call fcn.180051480
mov edx, 0xfffffffe
mov rcx, rbp
lea r8d, [rdx + 1]
call fcn.18004cde0
mov rbx, qword [rsi]
mov rdx, r13
add rbx, 0xfffffffffffffff0
mov rcx, rbp
mov qword [rsi], rbx
call fcn.18005c4c0
mov qword [rbx], rax
lea rdx, [rbx - 0x20]
mov rcx, rbp
movzx r8d, byte [rax + 8]
or r8d, 0x40
mov dword [rbx + 8], r8d
mov r8, qword [rsi]
lea r9, [r8 + 0x10]
mov qword [rsi], r9
add r9, 0xffffffffffffffe0
call fcn.180051ad0
add qword [rsi], 0xffffffffffffffe0
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1800d2550
add rsp, 0x158
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rdx, str.unable_to_get_ModuleFileName
mov rcx, rbp
call fcn.18004fe30
int3