Function at 0x1400c3eb0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x30
mov rsi, rcx
lea rdx, [0x140239ea8]
xor ebp, ebp
mov qword [rcx], rbp
mov ecx, pe_nt_image_headers64
call fcn.14010364c
mov rbx, rax
test rax, rax
je 0x1400c40c3
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.1400c9c20
mov qword [rbx], rax
lea rax, [0x14022d6c0]
mov qword [rbx + 8], rax
lea rax, [0x14022d6e8]
mov qword [rbx + 0x10], rax
mov dword [rbx + 0x1c], 1
mov rcx, qword [0x140281e10]
test rcx, rcx
je 0x1400c3f49
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140059157.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, [0x1400cb330]
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.1401120e8
mov rdi, rax
test rax, rax
je 0x1400c4091
lea rax, [0x1400c5800]
mov qword [rsp + 0x28], rbp
mov r9, rdi
mov qword [rdi], rax
lea r8, [0x1400cc340]
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 0x1400c4091
mov rcx, rdi
call fcn.1401120d4
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 0x1400c40c0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140059157.0]
mov qword [rsi], rbx
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret