Function at 0x1400b3900
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
push rbp
push rbx
push rsi
push r12
lea rbp, [r11 - 0x3a8]
sub rsp, 0x488
mov rax, qword [0x14041d0c0]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov qword [r11 - 0x28], rdi
mov rbx, rcx
mov qword [r11 - 0x38], r14
lea rcx, [0x1404b66e9]
mov qword [r11 - 0x40], r15
mov rdi, r8
mov r15, r9
mov qword [rsp + 0x20], rdx
mov rsi, rdx
call fcn.1402b13b0
lea r9, str._5_4
mov r8, rdi
lea rdx, str._s_s
mov rcx, rbx
call fcn.14009a0c0
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 0x1400b398e
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r14, rax
test rax, rax
je 0x1400b39d5
mov edx, 0xfff0b9d8
mov rcx, rbx
call fcn.140099560
mov rdx, rax
lea r8, str.LUA_NOENV
mov rcx, rbx
call fcn.14009a210
mov edx, 0xffffffff
mov rcx, rbx
call fcn.140099560
movzx ecx, byte [rax + 8]
cmp cl, 1
je 0x1400b3a1f
test cl, 0xf
je 0x1400b3a1f
mov edx, 0xfffffffe
mov rcx, rbx
call fcn.140099800
test r15, r15
jne 0x1400b39e4
mov rax, qword [rbx + 0x10]
mov byte [rax + 8], r12b
jmp 0x1400b39ff
mov rdx, r15
mov rcx, rbx
call fcn.1400bf630
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], r12
jle 0x1400b3c23
mov rcx, rbx
call fcn.1400ad2d0
jmp 0x1400b3c23
mov edx, 0xfffffffe
mov qword [rsp + 0x478], r13
mov rcx, rbx
call fcn.140099800
lea rdx, [0x1403e1374]
mov rcx, r14
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov r13, rax
test rax, rax
jne 0x1400b3a96
test r14, r14
jne 0x1400b3a5b
mov rax, qword [rbx + 0x10]
mov byte [rax + 8], r12b
jmp 0x1400b3a76
mov rdx, r14
mov rcx, rbx
call fcn.1400bf630
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], r12
jle 0x1400b3c1b
mov rcx, rbx
call fcn.1400ad2d0
jmp 0x1400b3c1b
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp byte [r14 + rdi], r12b
jne 0x1400b3aa0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], 0x400
mov qword [rax], rcx
mov byte [rax + 8], 2
add qword [rbx + 0x10], 0x10
cmp r14, r13
jae 0x1400b3b56
mov rsi, r13
sub rsi, r14
je 0x1400b3b18
mov r8d, 0xffffffff
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.14009c770
mov r8, rsi
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x40]
add rcx, rsi
mov qword [rsp + 0x40], rcx
jmp 0x1400b3b1d
mov rcx, qword [rsp + 0x40]
cmp rcx, qword [rsp + 0x38]
jb 0x1400b3b3e
mov edx, 1
lea rcx, [rsp + 0x30]
mov r8d, 0xffffffff
call fcn.14009c770
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x30]
mov byte [rax + rcx], Ordinal_60
mov rcx, qword [rsp + 0x40]
inc rcx
mov qword [rsp + 0x40], rcx
jmp 0x1400b3b5b
mov rcx, qword [rsp + 0x40]
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [r15 + rsi], r12b
jne 0x1400b3b62
test rsi, rsi
je 0x1400b3b9e
mov r8d, 0xffffffff
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.14009c770
mov r8, rsi
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x40]
add rcx, rsi
mov qword [rsp + 0x40], rcx
lea rax, [r14 - 2]
add rax, rdi
cmp r13, rax
jae 0x1400b3c0c
cmp rcx, qword [rsp + 0x38]
jb 0x1400b3bcb
mov edx, 1
lea rcx, [rsp + 0x30]
mov r8d, 0xffffffff
call fcn.14009c770
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x30]
sub rdi, r13
add rdi, 0xfffffffffffffffe
mov byte [rax + rcx], Ordinal_60
inc qword [rsp + 0x40]
add rdi, r14
je 0x1400b3c0c
mov r8d, 0xffffffff
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.14009c770
lea rdx, [r13 + 2]
mov r8, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
add qword [rsp + 0x40], rdi
lea rcx, [rsp + 0x30]
call fcn.14009c9e0
mov rsi, qword [rsp + 0x20]
mov r13, qword [rsp + 0x478]
mov r8d, 0x105
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov r15, qword [rsp + 0x468]
mov r14, qword [rsp + 0x470]
mov rdi, qword [rsp + 0x480]
test eax, eax
je 0x1400b3d47
cmp eax, 0x105
je 0x1400b3d47
mov edx, 0x5c
lea rcx, [rsp + 0x30]
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x1400b3d47
mov edx, 0xffffffff
mov byte [rax], r12b
mov rcx, rbx
call fcn.140099560
movzx ecx, byte [rax + 8]
and cl, 0xf
cmp cl, 4
je 0x1400b3cc5
cmp cl, 3
jne 0x1400b3ccc
mov rdx, rax
mov rcx, rbx
call fcn.1400b65b0
mov rax, qword [rbx + 0x18]
cmp qword [rax + 0x18], r12
jle 0x1400b3cb8
mov rcx, rbx
call fcn.1400ad2d0
mov edx, 0xffffffff
mov rcx, rbx
call fcn.140099560
mov r12, qword [rax]
add r12, 0x18
lea r9, [rsp + 0x30]
mov rdx, r12
lea r8, reloc.WLDAP32.dll_Ordinal_33
mov rcx, rbx
call fcn.14009dec0
mov edx, 0xfffffffe
mov r8d, 0xffffffff
mov rcx, rbx
call fcn.140099970
mov edx, 0xfffffffe
mov rcx, rbx
call fcn.140099800
mov edx, 0xfffffffd
mov rcx, rbx
call fcn.140099560
mov rdx, rax
mov r8, rsi
mov rcx, rbx
call fcn.14009a6e0
mov edx, 0xfffffffe
mov rcx, rbx
call fcn.140099800
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.1402aff00
add rsp, 0x488
pop r12
pop rsi
pop rbx
pop rbp
ret
lea rdx, str.unable_to_get_ModuleFileName
mov rcx, rbx
call fcn.14009bfe0
int3