Function at 0x14006cb90
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
push rbp
push rbx
push rsi
push r12
lea rbp, [r11 - 0x3b8]
sub rsp, 0x498
mov rax, qword [0x1401ee740]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov qword [r11 - 0x28], rdi
mov rsi, rdx
mov qword [r11 - 0x38], r14
mov rdi, r8
mov qword [r11 - 0x40], r15
mov rbx, rcx
mov r15, r9
mov qword [rsp + 0x30], rdx
lea r9, str._5_5
lea rdx, str._s_s
call fcn.140053800
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor r12d, r12d
mov r14, rax
test rax, rax
jne 0x14006cc0c
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r14, rax
test rax, rax
je 0x14006cc42
mov rdx, qword [rbx + 0x18]
lea r8, str.LUA_NOENV
add rdx, 0x48
mov rcx, rbx
call fcn.140053960
mov rax, qword [rbx + 0x10]
movzx ecx, byte [rax - 8]
cmp cl, 1
je 0x14006cc9c
test cl, 0xf
je 0x14006cc9c
mov edx, 0xfffffffe
mov rcx, rbx
call fcn.140052ea0
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [r15 + r8], r12b
jne 0x14006cc50
xor r9d, r9d
mov qword [rsp + 0x20], r12
mov rdx, r15
mov rcx, rbx
call fcn.140078730
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 + 0x20], r12
jg 0x14006ce9f
mov rcx, rbx
call fcn.140066440
jmp 0x14006ce9f
mov edx, 0xfffffffe
mov qword [rsp + 0x488], r13
mov rcx, rbx
call fcn.140052ea0
lea rdx, [0x1401c0224]
mov rcx, r14
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov r13, rax
test rax, rax
jne 0x14006cd13
test r14, r14
jne 0x14006ccd8
mov rax, qword [rbx + 0x10]
mov byte [rax + 8], r12b
jmp 0x14006ccf3
mov rdx, r14
mov rcx, rbx
call fcn.1400785c0
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 + 0x20], r12
jg 0x14006ce97
mov rcx, rbx
call fcn.140066440
jmp 0x14006ce97
mov rdi, 0xffffffffffffffff
nop word [rax + rax]
inc rdi
cmp byte [r14 + rdi], r12b
jne 0x14006cd20
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], 0x400
mov qword [rax], rcx
mov byte [rax + 8], 2
add qword [rbx + 0x10], 0x10
cmp r14, r13
jae 0x14006cdd4
mov rsi, r13
sub rsi, r14
je 0x14006cd98
mov r8d, 0xffffffff
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.140055b60
mov r8, rsi
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x50]
add rcx, rsi
mov qword [rsp + 0x50], rcx
jmp 0x14006cd9d
mov rcx, qword [rsp + 0x50]
cmp rcx, qword [rsp + 0x48]
jb 0x14006cdbc
mov edx, 1
lea rcx, [rsp + 0x40]
lea r8d, [rdx - 2]
call fcn.140055b60
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x40]
mov byte [rax + rcx], Ordinal_60
mov rcx, qword [rsp + 0x50]
inc rcx
mov qword [rsp + 0x50], rcx
jmp 0x14006cdd9
mov rcx, qword [rsp + 0x50]
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [r15 + rsi], r12b
jne 0x14006cde0
test rsi, rsi
je 0x14006ce1c
mov r8d, 0xffffffff
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.140055b60
mov r8, rsi
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x50]
add rcx, rsi
mov qword [rsp + 0x50], rcx
lea rax, [r14 - 2]
add rax, rdi
cmp r13, rax
jae 0x14006ce88
cmp rcx, qword [rsp + 0x48]
jb 0x14006ce47
mov edx, 1
lea rcx, [rsp + 0x40]
lea r8d, [rdx - 2]
call fcn.140055b60
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x40]
sub rdi, r13
add rdi, 0xfffffffffffffffe
mov byte [rax + rcx], Ordinal_60
inc qword [rsp + 0x50]
add rdi, r14
je 0x14006ce88
mov r8d, 0xffffffff
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.140055b60
lea rdx, [r13 + 2]
mov r8, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
add qword [rsp + 0x50], rdi
lea rcx, [rsp + 0x40]
call fcn.140055d70
mov rsi, qword [rsp + 0x30]
mov r13, qword [rsp + 0x488]
mov r8d, 0x105
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov r15, qword [rsp + 0x478]
mov r14, qword [rsp + 0x480]
mov rdi, qword [rsp + 0x490]
test eax, eax
je 0x14006cfb9
cmp eax, 0x105
je 0x14006cfb9
mov edx, 0x5c
lea rcx, [rsp + 0x40]
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x14006cfb9
mov byte [rax], r12b
mov rax, qword [rbx + 0x10]
sub rax, 0x10
movzx ecx, byte [rax + 8]
and cl, 0xf
cmp cl, 4
je 0x14006cf37
cmp cl, 3
jne 0x14006cf48
mov rdx, rax
mov rcx, rbx
call fcn.14006f990
mov rax, qword [rbx + 0x18]
cmp qword [rax + 0x20], r12
jg 0x14006cf2f
mov rcx, rbx
call fcn.140066440
mov rax, qword [rbx + 0x10]
sub rax, 0x10
mov rax, qword [rax]
cmp byte [rax + 0xb], 0
lea r12, [rax + 0x18]
jge 0x14006cf48
mov r12, qword [r12]
lea r9, [rsp + 0x40]
mov rdx, r12
lea r8, reloc.WLDAP32.dll_Ordinal_33
mov rcx, rbx
call fcn.140056be0
mov edx, 0xfffffffe
mov rcx, rbx
lea r8d, [rdx + 1]
call fcn.140053010
mov edx, 0xfffffffe
mov rcx, rbx
call fcn.140052ea0
mov rdx, qword [rbx + 0x10]
mov r8, rsi
sub rdx, 0x30
mov rcx, rbx
call fcn.140053c10
mov edx, 0xfffffffe
mov rcx, rbx
call fcn.140052ea0
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.1401608e0
add rsp, 0x498
pop r12
pop rsi
pop rbx
pop rbp
ret
lea rdx, str.unable_to_get_ModuleFileName
mov rcx, rbx
call fcn.140055510
int3