Function at 0x180063330
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 [0x18012c070]
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 0x180063398
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r15, rax
test rax, rax
jne 0x180063398
lea rsi, [rbp + 0x10]
jmp 0x1800633f4
mov rbx, qword [rbp + 0x10]
lea rsi, [rbp + 0x10]
mov rdi, qword [rbp + 0x18]
lea rdx, str.LUA_NOENV
mov rcx, rbp
call fcn.18005c0d0
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.1800514d0
mov rax, qword [rsi]
add rax, 0xfffffffffffffff0
mov ecx, dword [rax + 8]
test ecx, ecx
je 0x180063439
cmp ecx, 1
jne 0x1800633f1
cmp dword [rax], r14d
je 0x180063439
mov qword [rsi], rax
test r12, r12
jne 0x180063406
mov rax, qword [rsi]
mov dword [rax + 8], r14d
add qword [rsi], 0x10
jmp 0x18006347f
mov rax, qword [rbp + 0x18]
cmp qword [rax + 0x18], r14
jle 0x180063418
mov rcx, rbp
call fcn.180057140
mov rdx, r12
mov rcx, rbp
call fcn.18005c0d0
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 0x18006347f
lea r9, [0x1801160e0]
mov qword [rsi], rax
lea r8, [0x1801160dc]
mov rdx, r15
mov rcx, rbp
call fcn.180051090
mov r9, r12
lea r8, reloc.WS2_32.dll_accept
mov rdx, rax
mov rcx, rbp
call fcn.180051090
mov edx, 0xfffffffe
mov rcx, rbp
lea r8d, [rdx + 1]
call fcn.18004c9f0
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 0x18006359e
cmp eax, 0x105
je 0x18006359e
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x18006359e
mov byte [rax], r14b
mov rbx, qword [rsi]
sub rbx, 0x10
mov eax, dword [rbx + 8]
and eax, 0xf
cmp eax, 4
je 0x18006350c
cmp eax, 3
jne 0x180063513
mov rax, qword [rbp + 0x18]
cmp qword [rax + 0x18], r14
jle 0x1800634fa
mov rcx, rbp
call fcn.180057140
mov rbx, qword [rsi]
mov rcx, rbp
sub rbx, 0x10
mov rdx, rbx
call fcn.18005a070
mov r14, qword [rbx]
add r14, 0x18
lea r9, [rsp + 0x20]
mov rdx, r14
lea r8, [0x180112fdc]
mov rcx, rbp
call fcn.180051090
mov edx, 0xfffffffe
mov rcx, rbp
lea r8d, [rdx + 1]
call fcn.18004c9f0
mov rbx, qword [rsi]
mov rdx, r13
add rbx, 0xfffffffffffffff0
mov rcx, rbp
mov qword [rsi], rbx
call fcn.18005c0d0
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.1800516e0
add qword [rsi], 0xffffffffffffffe0
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1800d2160
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.18004fa40
int3