Function at 0x1400a2d40
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140239158]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r15, rcx
mov qword [rbp - 0x29], rcx
xor edi, edi
mov dword [rsp + 0x40], edi
lea rcx, str.NITRO_LOG_SINKS
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r14d, edi
mov qword [rbp + 0x1f], rdi
mov qword [rbp + 0x27], recv
mov byte [rbp + 0xf], dil
lea r12, [rdi - 1]
test rax, rax
je 0x1400a2dcc
mov r8, r12
inc r8
cmp byte [rax + r8], 0
jne 0x1400a2db2
mov rdx, rax
lea rcx, [rbp + 0xf]
call fcn.140076b60
mov r14, qword [rbp + 0x1f]
mov qword [r15], rdi
mov qword [r15 + 8], rdi
mov qword [r15 + 0x10], rdi
mov dword [rsp + 0x40], 1
test r14, r14
je 0x1400a2e8f
lea rbx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rbx, qword [rbp + 0xf]
cmp r14, 4
jb 0x1400a2f09
lea rsi, [r14 + rbx]
lea r8, [rsi - 3]
sub r8, rbx
mov edx, 0x66
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov r9, rax
test rax, rax
je 0x1400a2f09
lea r13, str.file
nop dword [rax + rax]
mov rcx, rdi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r9 + rcx]
inc rcx
cmp al, byte [rcx + r13 - 1]
jne 0x1400a2e59
cmp rcx, 4
jne 0x1400a2e40
mov eax, edi
jmp 0x1400a2e5e
sbb eax, eax
or eax, 1
test eax, eax
je 0x1400a2e86
inc r9
lea r8, [rsi - 3]
sub r8, r9
mov edx, 0x66
mov rcx, r9
call sub.VCRUNTIME140.dll_memchr
mov r9, rax
test rax, rax
jne 0x1400a2e30
jmp 0x1400a2f09
sub r9, rbx
cmp r9, 0xffffffffffffffff
je 0x1400a2f09
lea rcx, [rbp - 0x11]
call fcn.1400a2920
mov r8, rax
mov rdx, qword [r15 + 8]
cmp qword [r15 + 0x10], rdx
je 0x1400a2ec8
mov qword [rdx], rdi
mov qword [rdx + 8], rdi
mov rax, qword [rax]
mov qword [rdx], rax
mov rax, qword [r8 + 8]
mov qword [rdx + 8], rax
mov qword [r8], rdi
mov qword [r8 + 8], rdi
add qword [r15 + 8], 0x10
jmp 0x1400a2ed1
mov rcx, r15
call fcn.14007d170
nop
mov rbx, qword [rbp - 9]
test rbx, rbx
je 0x1400a2f09
mov eax, r12d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400a2f05
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400a2f05
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov r14, qword [rbp + 0x1f]
lea rbx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rbx, qword [rbp + 0xf]
cmp r14, 6
jb 0x1400a30fc
lea rsi, [r14 + rbx]
lea r8, [rsi - 5]
sub r8, rbx
mov edx, WSACleanup
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov r9, rax
test rax, rax
je 0x1400a30fc
lea r13, str.stdout
nop dword [rax]
mov rcx, rdi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r9 + rcx]
inc rcx
cmp al, byte [rcx + r13 - 1]
jne 0x1400a2f79
cmp rcx, 6
jne 0x1400a2f60
mov eax, edi
jmp 0x1400a2f7e
sbb eax, eax
or eax, 1
test eax, eax
je 0x1400a2fa6
inc r9
lea r8, [rsi - 5]
sub r8, r9
mov edx, WSACleanup
mov rcx, r9
call sub.VCRUNTIME140.dll_memchr
mov r9, rax
test rax, rax
jne 0x1400a2f50
jmp 0x1400a30fc
sub r9, rbx
cmp r9, 0xffffffffffffffff
je 0x1400a30fc
mov ecx, 0x38
call fcn.1400aa71c
mov rsi, rax
mov qword [rbp - 0x21], rax
test rax, rax
je 0x1400a3076
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj_class_spdlog::sinks::stdout_sink_struct_spdlog::details::console_mutex__.0
mov qword [rsi], rax
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rbx, rax
mov dword [rsi + 0x18], edi
lea rax, vtable.spdlog::sinks::stdout_sink_base_struct_spdlog::details::console_mutex_.0
mov qword [rsi + 0x10], rax
call fcn.1400a41f0
mov qword [rsi + 0x20], rax
mov qword [rsi + 0x28], rbx
mov ecx, 0x90
call fcn.1400aa71c
mov rbx, rax
mov qword [rbp - 0x61], rax
test rax, rax
je 0x1400a305a
mov qword [rbp - 0x41], rdi
mov qword [rbp - 0x39], recv
mov byte [rbp - 0x51], 0
mov r8d, 2
lea rdx, [0x1401a4dc8]
lea rcx, [rbp - 0x51]
call fcn.140076b60
lea r8, [rbp - 0x51]
xor edx, edx
mov rcx, rbx
call fcn.140096150
jmp 0x1400a305d
mov rax, rdi
mov dword [rsp + 0x40], 5
mov qword [rsi + 0x30], rax
lea rax, vtable.spdlog::sinks::stdout_sink_struct_spdlog::details::console_mutex_.0
mov qword [rsi + 0x10], rax
jmp 0x1400a3079
mov rsi, rdi
or dword [rsp + 0x40], 2
lea rax, [rsi + 0x10]
mov qword [rsp + 0x48], rax
mov qword [rbp - 0x79], rsi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
mov rdx, qword [r15 + 8]
cmp qword [r15 + 0x10], rdx
je 0x1400a30b2
mov qword [rdx], rax
mov qword [rdx + 8], rsi
mov rcx, rdi
mov qword [rbp - 0x79], rcx
add qword [r15 + 8], 0x10
jmp 0x1400a30c3
lea r8, [rsp + 0x48]
mov rcx, r15
call fcn.14007d170
mov rcx, qword [rbp - 0x79]
test rcx, rcx
je 0x1400a30fc
mov eax, r12d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400a30f8
mov rbx, qword [rbp - 0x79]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400a30f8
mov rcx, qword [rbp - 0x79]
mov rax, qword [rcx]
call qword [rax + 8]
mov r14, qword [rbp + 0x1f]
lea rsi, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rsi, qword [rbp + 0xf]
cmp r14, 7
jb 0x1400a328b
lea r8, [rsi - 6]
add r8, r14
sub r8, rsi
mov edx, reloc.WS2_32.dll_WSASetLastError
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x1400a328b
nop word [rax + rax]
mov r8d, 7
lea rdx, str.procmon
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400a3180
inc rbx
lea r8, [rsi - 6]
add r8, r14
sub r8, rbx
mov edx, reloc.WS2_32.dll_WSASetLastError
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x1400a3140
jmp 0x1400a328b
sub rbx, rsi
cmp rbx, 0xffffffffffffffff
je 0x1400a328b
mov ecx, 0x58
call fcn.1400aa71c
mov rsi, rax
mov qword [rbp - 0x59], rax
test rax, rax
je 0x1400a320e
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj_class_nitro::spdlog_sinks::procmon_sink_class_nitro::platform::MutexImpl__.0
mov qword [rsi], rax
lea rbx, [rsi + 0x10]
mov qword [rbp - 0x61], rbx
mov rcx, rbx
call fcn.140095000
nop
lea rax, vtable.nitro::spdlog_sinks::procmon_sink_class_nitro::platform::MutexImpl_.0
mov qword [rbx], rax
mov qword [rbx + 0x40], r12
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 2]
lea rcx, str..GlobalProcmonDebugLogger
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 0x40], rax
jmp 0x1400a3211
mov rsi, rdi
or dword [rsp + 0x40], 8
lea rax, [rsi + 0x10]
mov qword [rbp - 0x71], rax
mov qword [rbp - 0x69], rsi
xorps xmm0, xmm0
movdqu xmmword [rbp - 1], xmm0
mov rdx, qword [r15 + 8]
cmp qword [r15 + 0x10], rdx
je 0x1400a3246
mov qword [rdx], rax
mov qword [rdx + 8], rsi
mov qword [rbp - 0x69], rdi
add qword [r15 + 8], 0x10
jmp 0x1400a3256
lea r8, [rbp - 0x71]
mov rcx, r15
call fcn.14007d170
mov rdi, qword [rbp - 0x69]
test rdi, rdi
je 0x1400a328b
mov eax, r12d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400a328b
mov rbx, qword [rbp - 0x69]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r12d
cmp r12d, 1
jne 0x1400a328b
mov rcx, qword [rbp - 0x69]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x1400a32ca
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a32c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a32c4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400aa758
nop
mov rax, r15
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400aab20
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret