Function at 0x1400c9f80
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x30
mov rsi, rcx
lea rdx, [0x14023f858]
xor ebp, ebp
mov qword [rcx], rbp
mov ecx, 0x120
call fcn.14010729c
mov rbx, rax
test rax, rax
je 0x1400ca193
lea rax, vtable.ABI::Windows::Foundation::ITypedEventHandler_class_ABI::Windows::Devices::Enumeration::DeviceWatcher____ptr64__class_ABI::Windows::Devices::Enumeration::DeviceInformationUpdate____ptr64_.0
mov qword [rsp + 0x48], rdi
mov qword [rbx], rax
lea rax, vtable.ABI::Windows::Foundation::ITypedEventHandler_class_ABI::Windows::Devices::Enumeration::DeviceWatcher____ptr64__class_ABI::Windows::Devices::Enumeration::DeviceInformation____ptr64_.0
mov qword [rbx + 8], rax
lea rax, vtable.ABI::Windows::Foundation::IAsyncOperationCompletedHandler_class_ABI::Windows::Devices::Sensors::Custom::CustomSensor____ptr64_.0
mov qword [rbx + 0x10], rax
lea rax, fcn.1400d07d0
mov qword [rbx], rax
lea rax, [0x140233330]
mov qword [rbx + 8], rax
lea rax, [0x140233358]
mov qword [rbx + 0x10], rax
mov dword [rbx + 0x1c], 1
mov rcx, qword [0x1402893b8]
test rcx, rcx
je 0x1400ca019
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005bcf7.0]
mov dword [rbx + 0x50], ebp
lea rax, vtable.CSensorManager.0
mov qword [rbx], rax
xor r8d, r8d
mov dword [rbx + 0x5c], ebp
lea rax, vtable.CSensorManager.1.0
mov qword [rbx + 8], rax
xor edx, edx
lea rax, vtable.CSensorManager.2.0
xor ecx, ecx
mov qword [rbx + 0x10], rax
lea rax, vtable.CSensorManager.3.0
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rbp
mov qword [rbx + 0x30], rbp
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
mov qword [rbx + 0x60], rbp
mov qword [rbx + 0x68], rbp
mov qword [rbx + 0x70], rbp
mov qword [rbx + 0x78], rbp
mov qword [rbx + 0x80], rbp
mov qword [rbx + 0x88], rbp
mov qword [rbx + 0x90], rbp
mov qword [rbx + 0xb0], rbp
mov qword [rbx + 0xb8], rbp
mov qword [rbx + 0xc0], rbp
mov qword [rbx + 0xc8], rbp
mov qword [rbx + 0xd0], rbp
mov qword [rbx + 0xd8], rbp
mov byte [rbx + 0x110], bpl
call qword [sym.imp.KERNEL32.DLL_CreateMutexW]
lea rcx, [rbx + 0x54]
mov r8, rbx
lea rdx, [0x1400d1e60]
mov qword [rbx + 0x118], rax
call fcn.140034e80
lea rdi, [rbx + 0xe0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_InitializeSRWLock]
xor r9d, r9d
mov qword [rdi + 8], rbp
xor edx, edx
mov dword [rdi + 0x10], ebp
xor ecx, ecx
mov r8d, 0x7fffffff
call qword [sym.imp.KERNEL32.DLL_CreateSemaphoreW]
mov ecx, 0x10
mov dword [rdi + 0x18], ebp
mov qword [rdi + 0x20], rax
mov byte [rdi + 0x14], bpl
call fcn.140115d38
mov rdi, rax
test rax, rax
je 0x1400ca161
lea rax, [0x1400cba70]
mov qword [rsp + 0x28], rbp
mov r9, rdi
mov qword [rdi], rax
lea r8, [0x1400d2df0]
mov qword [rdi + 8], rbx
xor edx, edx
mov dword [rsp + 0x20], ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov qword [rbx + 0x108], rax
test rax, rax
jne 0x1400ca161
mov rcx, rdi
call fcn.140115d24
mov rdi, qword [rsp + 0x48]
mov qword [rbx + 0x98], rbp
mov qword [rbx + 0xa0], rbp
mov qword [rbx + 0xa8], rbp
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400ca190
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14005bcf7.0]
mov qword [rsi], rbx
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret