Function at 0x426870
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434e4f
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4430a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x40], edi
push str.NITRO_LOG_SINKS
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 0
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor ecx, ecx
mov dword [ebp - 0x14], 0xf
add esp, 4
mov dword [ebp - 0x18], ecx
mov edx, eax
mov byte [ebp - 0x28], cl
mov dword [ebp - 4], 1
test edx, edx
je 0x4268f6
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4268e0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00401510
mov ecx, dword [ebp - 0x18]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov eax, 1
or ebx, 0xffffffff
mov dword [ebp - 0x34], eax
test ecx, ecx
je 0x42692c
push 0
push str.file
lea ecx, [ebp - 0x28]
call fcn.00421e40
cmp eax, ebx
je 0x4269a3
lea eax, [ebp - 0x30]
push eax
call fcn.00426490
add esp, 4
mov edx, eax
mov ecx, dword [edi + 4]
mov byte [ebp - 4], 2
cmp dword [edi + 8], ecx
je 0x426970
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov dword [edx], 0
mov dword [edx + 4], 0
add dword [edi + 4], 8
jmp 0x426979
push edx
push ecx
mov ecx, edi
call fcn.004064f0
mov esi, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
test esi, esi
je 0x4269a3
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x4269a3
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x4269a3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0
push str.stdout
lea ecx, [ebp - 0x28]
call fcn.00421e40
cmp eax, 0xffffffff
je 0x426ac8
push 0x20
call fcn.0042d3a2
mov ebx, eax
add esp, 4
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 3
test ebx, ebx
je 0x426a57
push 1
mov dword [ebx + 4], 1
mov dword [ebx + 8], 1
mov dword [ebx], vtable.std::_Ref_count_obj_class_spdlog::sinks::stdout_sink_struct_spdlog::details::console_mutex__.0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [ebx + 0x10], 0
mov esi, eax
mov dword [ebx + 0xc], vtable.spdlog::sinks::stdout_sink_base_struct_spdlog::details::console_mutex_.0
call fcn.00427bd0
mov dword [ebx + 0x14], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebx + 0x18], esi
call fcn.0040e3a0
add esp, 8
mov ecx, dword [eax]
mov dword [eax], 0
mov esi, dword [ebp - 0x38]
mov dword [ebx + 0x1c], ecx
test esi, esi
je 0x426a4e
lea ecx, [esi + 0x68]
call fcn.0041bce0
lea ecx, [esi + 0x1c]
call fcn.00401190
lea ecx, [esi + 4]
call fcn.00401190
push 0x78
push esi
call fcn.0042d3d2
add esp, 8
mov dword [ebx + 0xc], vtable.spdlog::sinks::stdout_sink_struct_spdlog::details::console_mutex_.0
jmp 0x426a59
xor ebx, ebx
mov eax, 3
lea ecx, [ebx + 0xc]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov eax, dword [edi + 4]
mov byte [ebp - 4], 5
cmp dword [edi + 8], eax
je 0x426a8f
mov dword [eax], ecx
mov dword [eax + 4], ebx
add dword [edi + 4], 8
jmp 0x426ac4
lea ecx, [ebp - 0x30]
push ecx
push eax
mov ecx, edi
call fcn.004064f0
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x426ac4
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x426ac4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x426ac4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 1
push 0
push str.procmon
lea ecx, [ebp - 0x28]
call fcn.00421e40
cmp eax, 0xffffffff
je 0x426bb3
push 0x34
call fcn.0042d3a2
mov ebx, eax
add esp, 4
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 6
test ebx, ebx
je 0x426b4b
lea esi, [ebx + 0xc]
mov dword [ebx + 4], 1
mov ecx, esi
mov dword [ebx + 8], 1
mov dword [ebx], vtable.std::_Ref_count_obj_class_nitro::spdlog_sinks::procmon_sink_class_nitro::platform::MutexImpl__.0
mov dword [ebp - 0x38], esi
call fcn.00419130
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
push 0x439264
mov byte [ebp - 4], 7
mov dword [esi], vtable.nitro::spdlog_sinks::procmon_sink_class_nitro::platform::MutexImpl_.0
mov dword [esi + 0x24], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x24], eax
jmp 0x426b4d
xor ebx, ebx
or dword [ebp - 0x34], 4
lea ecx, [ebx + 0xc]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov eax, dword [edi + 4]
mov byte [ebp - 4], 9
cmp dword [edi + 8], eax
je 0x426b7f
mov dword [eax], ecx
mov dword [eax + 4], ebx
add dword [edi + 4], 8
jmp 0x426bb3
lea ecx, [ebp - 0x30]
push ecx
push eax
mov ecx, edi
call fcn.004064f0
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x426bb3
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x426bb3
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x426bb3
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
lea ecx, [ebp - 0x28]
call fcn.00401190
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042d3e0
mov esp, ebp
pop ebp
ret