Function at 0x14025ba10
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 [0x1403644c8]
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], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0xf], dil
lea r12, [rdi - 1]
test rax, rax
je 0x14025ba9c
mov r8, r12
inc r8
cmp byte [rax + r8], 0
jne 0x14025ba82
mov rdx, rax
lea rcx, [rbp + 0xf]
call fcn.140086e00
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 0x14025bb5f
lea rbx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rbx, qword [rbp + 0xf]
cmp r14, 4
jb 0x14025bbd9
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 0x14025bbd9
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 0x14025bb29
cmp rcx, 4
jne 0x14025bb10
mov eax, edi
jmp 0x14025bb2e
sbb eax, eax
or eax, 1
test eax, eax
je 0x14025bb56
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 0x14025bb00
jmp 0x14025bbd9
sub r9, rbx
cmp r9, 0xffffffffffffffff
je 0x14025bbd9
lea rcx, [rbp - 0x11]
call fcn.14025b5f0
mov r8, rax
mov rdx, qword [r15 + 8]
cmp qword [r15 + 0x10], rdx
je 0x14025bb98
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 0x14025bba1
mov rcx, r15
call fcn.14024b580
nop
mov rbx, qword [rbp - 9]
test rbx, rbx
je 0x14025bbd9
mov eax, r12d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14025bbd5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14025bbd5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov r14, qword [rbp + 0x1f]
lea rbx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rbx, qword [rbp + 0xf]
cmp r14, 6
jb 0x14025bdcc
lea rsi, [r14 + rbx]
lea r8, [rsi - 5]
sub r8, rbx
mov edx, reloc.WS2_32.dll_WSAStartup
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov r9, rax
test rax, rax
je 0x14025bdcc
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 0x14025bc49
cmp rcx, 6
jne 0x14025bc30
mov eax, edi
jmp 0x14025bc4e
sbb eax, eax
or eax, 1
test eax, eax
je 0x14025bc76
inc r9
lea r8, [rsi - 5]
sub r8, r9
mov edx, reloc.WS2_32.dll_WSAStartup
mov rcx, r9
call sub.VCRUNTIME140.dll_memchr
mov r9, rax
test rax, rax
jne 0x14025bc20
jmp 0x14025bdcc
sub r9, rbx
cmp r9, 0xffffffffffffffff
je 0x14025bdcc
mov ecx, gethostname
call fcn.1400e351c
mov rsi, rax
mov qword [rbp - 0x21], rax
test rax, rax
je 0x14025bd46
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.14025c970
mov qword [rsi + 0x20], rax
mov qword [rsi + 0x28], rbx
mov ecx, 0x90
call fcn.1400e351c
mov rbx, rax
mov qword [rbp - 0x61], rax
test rax, rax
je 0x14025bd2a
mov qword [rbp - 0x41], rdi
mov qword [rbp - 0x39], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x51], 0
mov r8d, 2
lea rdx, [0x14028f878]
lea rcx, [rbp - 0x51]
call fcn.140086e00
lea r8, [rbp - 0x51]
xor edx, edx
mov rcx, rbx
call fcn.140251350
jmp 0x14025bd2d
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 0x14025bd49
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 0x14025bd82
mov qword [rdx], rax
mov qword [rdx + 8], rsi
mov rcx, rdi
mov qword [rbp - 0x79], rcx
add qword [r15 + 8], 0x10
jmp 0x14025bd93
lea r8, [rsp + 0x48]
mov rcx, r15
call fcn.14024b580
mov rcx, qword [rbp - 0x79]
test rcx, rcx
je 0x14025bdcc
mov eax, r12d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14025bdc8
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 0x14025bdc8
mov rcx, qword [rbp - 0x79]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov r14, qword [rbp + 0x1f]
lea rsi, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rsi, qword [rbp + 0xf]
cmp r14, 7
jb 0x14025bf5b
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 0x14025bf5b
nop word [rax + rax]
mov r8d, 7
lea rdx, str.procmon
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14025be50
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 0x14025be10
jmp 0x14025bf5b
sub rbx, rsi
cmp rbx, 0xffffffffffffffff
je 0x14025bf5b
mov ecx, 0x58
call fcn.1400e351c
mov rsi, rax
mov qword [rbp - 0x59], rax
test rax, rax
je 0x14025bede
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.1402502b0
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 0x14025bee1
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 0x14025bf16
mov qword [rdx], rax
mov qword [rdx + 8], rsi
mov qword [rbp - 0x69], rdi
add qword [r15 + 8], 0x10
jmp 0x14025bf26
lea r8, [rbp - 0x71]
mov rcx, r15
call fcn.14024b580
mov rdi, qword [rbp - 0x69]
test rdi, rdi
je 0x14025bf5b
mov eax, r12d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14025bf5b
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 0x14025bf5b
mov rcx, qword [rbp - 0x69]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x14025bf9a
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14025bf94
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14025bf94
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140082ab0
nop
mov rax, r15
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400e39a0
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