Function at 0x1400dc5a0
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 [0x140283740]
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.1400c3030
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 0x1400dc61c
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r14, rax
test rax, rax
je 0x1400dc652
mov rdx, qword [rbx + 0x18]
lea r8, str.LUA_NOENV
add rdx, 0x48
mov rcx, rbx
call fcn.1400c31b0
mov rax, qword [rbx + 0x10]
movzx ecx, byte [rax - 8]
cmp cl, 1
je 0x1400dc6ac
test cl, 0xf
je 0x1400dc6ac
mov edx, 0xfffffffe
mov rcx, rbx
call fcn.1400c2690
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [r15 + r8], r12b
jne 0x1400dc660
xor r9d, r9d
mov qword [rsp + 0x20], r12
mov rdx, r15
mov rcx, rbx
call fcn.1400e8120
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 0x1400dc8af
mov rcx, rbx
call fcn.1400d5e60
jmp 0x1400dc8af
mov edx, 0xfffffffe
mov qword [rsp + 0x488], r13
mov rcx, rbx
call fcn.1400c2690
lea rdx, [0x14024e434]
mov rcx, r14
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov r13, rax
test rax, rax
jne 0x1400dc723
test r14, r14
jne 0x1400dc6e8
mov rax, qword [rbx + 0x10]
mov byte [rax + 8], r12b
jmp 0x1400dc703
mov rdx, r14
mov rcx, rbx
call fcn.1400e7fb0
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 0x1400dc8a7
mov rcx, rbx
call fcn.1400d5e60
jmp 0x1400dc8a7
mov rdi, 0xffffffffffffffff
nop word [rax + rax]
inc rdi
cmp byte [r14 + rdi], r12b
jne 0x1400dc730
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 0x1400dc7e4
mov rsi, r13
sub rsi, r14
je 0x1400dc7a8
mov r8d, 0xffffffff
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.1400c54c0
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 0x1400dc7ad
mov rcx, qword [rsp + 0x50]
cmp rcx, qword [rsp + 0x48]
jb 0x1400dc7cc
mov edx, 1
lea rcx, [rsp + 0x40]
lea r8d, [rdx - 2]
call fcn.1400c54c0
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 0x1400dc7e9
mov rcx, qword [rsp + 0x50]
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [r15 + rsi], r12b
jne 0x1400dc7f0
test rsi, rsi
je 0x1400dc82c
mov r8d, 0xffffffff
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.1400c54c0
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 0x1400dc898
cmp rcx, qword [rsp + 0x48]
jb 0x1400dc857
mov edx, 1
lea rcx, [rsp + 0x40]
lea r8d, [rdx - 2]
call fcn.1400c54c0
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 0x1400dc898
mov r8d, 0xffffffff
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.1400c54c0
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.1400c56d0
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 0x1400dc9c9
cmp eax, 0x105
je 0x1400dc9c9
mov edx, 0x5c
lea rcx, [rsp + 0x40]
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x1400dc9c9
mov byte [rax], r12b
mov rax, qword [rbx + 0x10]
sub rax, 0x10
movzx ecx, byte [rax + 8]
and cl, 0xf
cmp cl, 4
je 0x1400dc947
cmp cl, 3
jne 0x1400dc958
mov rdx, rax
mov rcx, rbx
call fcn.1400df380
mov rax, qword [rbx + 0x18]
cmp qword [rax + 0x20], r12
jg 0x1400dc93f
mov rcx, rbx
call fcn.1400d5e60
mov rax, qword [rbx + 0x10]
sub rax, 0x10
mov rax, qword [rax]
cmp byte [rax + 0xb], 0
lea r12, [rax + 0x18]
jge 0x1400dc958
mov r12, qword [r12]
lea r9, [rsp + 0x40]
mov rdx, r12
lea r8, reloc.WLDAP32.dll_Ordinal_33
mov rcx, rbx
call fcn.1400c65b0
mov edx, 0xfffffffe
mov rcx, rbx
lea r8d, [rdx + 1]
call fcn.1400c2800
mov edx, 0xfffffffe
mov rcx, rbx
call fcn.1400c2690
mov rdx, qword [rbx + 0x10]
mov r8, rsi
sub rdx, 0x30
mov rcx, rbx
call fcn.1400c3480
mov edx, 0xfffffffe
mov rcx, rbx
call fcn.1400c2690
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.1401d5b10
add rsp, 0x498
pop r12
pop rsi
pop rbx
pop rbp
ret
lea rdx, str.unable_to_get_ModuleFileName
mov rcx, rbx
call fcn.1400c4e70
int3