Function at 0x140059e80
Capabilities:
Print debug messages

Disassembly:
push rdi
push r14
sub rsp, 0x28
mov rdi, rcx
call fcn.14005ab70
mov r14, rax
test rax, rax
jne 0x140059eb8
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.140033040
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 0x140059eed
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 0x140059fd2
nop word [rax + rax]
cmp qword [r8 + 0x10], r14
je 0x140059f23
mov r8, qword [r8]
test r8, r8
jne 0x140059f10
jmp 0x140059fd2
mov rax, qword [r8]
cmp r8, qword [r9]
jne 0x140059f30
mov qword [r9], rax
jmp 0x140059f37
mov rcx, qword [r8 + 8]
mov qword [rcx], rax
mov rax, qword [r8 + 8]
cmp r8, qword [r9 + 8]
jne 0x140059f47
mov qword [r9 + 8], rax
jmp 0x140059f4e
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 0x140059f68
mov rcx, r9
call fcn.14000a660
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 0x140059f9d
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 0x140059fbe
mov qword [rcx], rax
jmp 0x140059fc1
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 0x14005a065
nop dword [rax + rax]
cmp dword [rdi + 0x98], 0
jne 0x14005a065
lea rcx, [rdi + 0x10]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rsi, rsi
je 0x14005a11e
cmp qword [rdi + 0x78], 0
mov rbx, qword [rsi + 0x10]
mov rsi, qword [rsi]
jbe 0x14005a045
mov rax, qword [rdi + 0x68]
test rax, rax
je 0x14005a045
cmp qword [rax + 0x10], rbx
je 0x14005a043
mov rax, qword [rax]
test rax, rax
jne 0x14005a033
jmp 0x14005a045
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 0x14005a060
mov rax, qword [rbx]
mov rdx, r14
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test rsi, rsi
jne 0x14005a000
dec dword [rdi + 0x9c]
cmp dword [rdi + 0x9c], 0
jne 0x14005a0d4
cmp qword [rdi + 0x78], 0
jbe 0x14005a0d4
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 0x14005a0c1
mov rcx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rcx, rcx
je 0x14005a0bc
mov rdx, qword [rdi + 0x38]
test rdx, rdx
je 0x14005a0bc
cmp qword [rdx + 0x10], rcx
je 0x14005a0b3
mov rdx, qword [rdx]
test rdx, rdx
jne 0x14005a0a3
jmp 0x14005a0bc
lea rcx, [rdi + 0x38]
call fcn.14000a600
test rbx, rbx
jne 0x14005a08e
lea rcx, [rdi + 0x68]
call fcn.14000a660
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.140009b20
mov rcx, rax
mov edx, 0x3f5
call fcn.1400721d0
call fcn.140009b20
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.140071fe0
mov ecx, 0x80004005
call fcn.140003fc0
int3