Function at 0x140058f90
Capabilities:
Print debug messages

Disassembly:
push rdi
push r14
sub rsp, 0x28
mov rdi, rcx
call fcn.140059c80
mov r14, rax
test rax, rax
jne 0x140058fc8
mov r8d, 0xdb
lea rdx, str.CMMPlatform::OnDeviceRemoved
lea rcx, str._s__d_RETURN_ON_FALSE
add rsp, 0x28
pop r14
pop rdi
jmp fcn.140032320
mov rcx, qword [rdi + 0x140]
mov qword [rsp + 0x20], rsi
mov dword [rdi + 0x13c], 1
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
cmp dword [rdi + 0x138], 0
jle 0x140058ffd
mov rcx, qword [rdi + 0x148]
or edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
lea r9, [rdi + 0xd8]
mov qword [rsp + 0x40], rbx
mov r8, qword [r9]
mov qword [rsp + 0x48], rbp
test r8, r8
je 0x1400590e2
nop word [rax + rax]
cmp qword [r8 + 0x10], r14
je 0x140059033
mov r8, qword [r8]
test r8, r8
jne 0x140059020
jmp 0x1400590e2
mov rax, qword [r8]
cmp r8, qword [r9]
jne 0x140059040
mov qword [r9], rax
jmp 0x140059047
mov rcx, qword [r8 + 8]
mov qword [rcx], rax
mov rax, qword [r8 + 8]
cmp r8, qword [r9 + 8]
jne 0x140059057
mov qword [r9 + 8], rax
jmp 0x14005905e
mov rdx, qword [r8]
mov qword [rdx + 8], rax
mov rax, qword [r9 + 0x20]
mov qword [r8], rax
sub qword [r9 + 0x10], 1
mov qword [r9 + 0x20], r8
jne 0x140059078
mov rcx, r9
call fcn.14000a5e0
lea rcx, [rdi + 0xa0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
lea rbx, [rdi + 0x108]
mov rbp, qword [rbx + 8]
mov rcx, rbx
call fcn.140005600
mov rax, qword [rbx + 0x20]
mov qword [rsp + 0x50], rax
mov rcx, qword [rax]
test rax, rax
je 0x1400590ad
mov qword [rax + 0x10], r14
mov qword [rbx + 0x20], rcx
mov qword [rax + 8], rbp
mov qword [rax], 0
inc qword [rbx + 0x10]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400590ce
mov qword [rcx], rax
jmp 0x1400590d1
mov qword [rbx], rax
lea rcx, [rdi + 0xa0]
mov qword [rbx + 8], rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0x140]
mov dword [rdi + 0x13c], 0
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
inc dword [rdi + 0x9c]
mov rsi, qword [rdi + 0x38]
test rsi, rsi
je 0x140059175
nop dword [rax + rax]
cmp dword [rdi + 0x98], 0
jne 0x140059175
lea rcx, [rdi + 0x10]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rsi, rsi
je 0x14005922e
cmp qword [rdi + 0x78], 0
mov rbx, qword [rsi + 0x10]
mov rsi, qword [rsi]
jbe 0x140059155
mov rax, qword [rdi + 0x68]
test rax, rax
je 0x140059155
cmp qword [rax + 0x10], rbx
je 0x140059153
mov rax, qword [rax]
test rax, rax
jne 0x140059143
jmp 0x140059155
xor ebx, ebx
lea rcx, [rdi + 0x10]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test rbx, rbx
je 0x140059170
mov rax, qword [rbx]
mov rdx, r14
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test rsi, rsi
jne 0x140059110
dec dword [rdi + 0x9c]
cmp dword [rdi + 0x9c], 0
jne 0x1400591e4
cmp qword [rdi + 0x78], 0
jbe 0x1400591e4
lea rcx, [rdi + 0x10]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov rbx, qword [rdi + 0x68]
test rbx, rbx
je 0x1400591d1
mov rcx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rcx, rcx
je 0x1400591cc
mov rdx, qword [rdi + 0x38]
test rdx, rdx
je 0x1400591cc
cmp qword [rdx + 0x10], rcx
je 0x1400591c3
mov rdx, qword [rdx]
test rdx, rdx
jne 0x1400591b3
jmp 0x1400591cc
lea rcx, [rdi + 0x38]
call fcn.14000a580
test rbx, rbx
jne 0x14005919e
lea rcx, [rdi + 0x68]
call fcn.14000a5e0
lea rcx, [rdi + 0x10]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov dword [rdi + 0xd0], 1
call fcn.140009aa0
mov rcx, rax
mov edx, 0x3f5
call fcn.140071290
call fcn.140009aa0
mov rcx, rax
mov edx, 0x3f5
mov r8d, 0x2710
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop rdi
jmp fcn.1400710a0
mov ecx, 0x80004005
call fcn.140003fc0
int3