Function at 0x1400b6f50
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140162010]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, rcx
lea rcx, str.CSimpleOrientationSensorManagerEvents::Initialize__n
call fcn.140061d00
lea r14, [rsi + 0x20]
mov qword [rsp + 0x20], r14
lea r9, [0x14012d910]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x1400d9340]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
mov ebx, eax
mov edx, eax
lea rcx, str.CoCreateInstance_CLSID_SensorManager___x__n
call fcn.140061d00
xor r15d, r15d
test ebx, ebx
js 0x1400b71f8
mov rcx, qword [r14]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x30]
mov ebx, eax
mov edx, eax
lea rcx, str.SetEventSink_this___x__n
call fcn.140061d00
test ebx, ebx
js 0x1400b71f8
mov qword [rbp - 0x10], r15
mov qword [rbp - 0x18], r15
mov rcx, qword [r14]
mov rax, qword [rcx]
lea r8, [rbp - 0x10]
lea rdx, [0x1400d9320]
call qword [rax + 0x20]
mov ebx, eax
mov edx, eax
lea rcx, str.GetSensorsByType__x__n
call fcn.140061d00
test ebx, ebx
js 0x1400b70ef
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1400b70ef
mov dword [rbp - 0x28], r15d
mov rax, qword [rcx]
lea rdx, [rbp - 0x28]
call qword [rax + 0x20]
mov ebx, eax
mov edx, eax
lea rcx, str.spSensors__GetCount__x__n
call fcn.140061d00
test ebx, ebx
js 0x1400b70ef
mov edi, r15d
cmp dword [rbp - 0x28], r15d
jbe 0x1400b70ef
nop word [rax + rax]
mov qword [rbp - 0x20], r15
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
lea r8, [rbp - 0x20]
mov edx, edi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov ebx, eax
mov r8d, edi
mov edx, eax
lea rcx, str.spSensors__GetAt__x__d_n
call fcn.140061d00
test ebx, ebx
js 0x1400b70d9
mov rdx, qword [rbp - 0x20]
mov rcx, rsi
call fcn.1400b7660
mov ebx, eax
mov edx, eax
lea rcx, str.AddSensor__x__n
call fcn.140061d00
test ebx, ebx
js 0x1400b70d9
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rsi + 0x18]
call fcn.1400b6060
mov ebx, eax
mov edx, eax
lea rcx, str.m_pSensorEvents__GetSensorData__x__n
call fcn.140061d00
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1400b70e8
mov rax, qword [rcx]
call qword [rax + 0x10]
inc edi
cmp edi, dword [rbp - 0x28]
jb 0x1400b7070
call fcn.14000b280
test byte [rax + 0x1c4], 0x20
je 0x1400b719c
lea rcx, str.RtkService_SensorNotifyEx__n
call fcn.140061d00
mov rcx, qword [r14]
mov rax, qword [rcx]
lea r8, [rbp - 0x18]
lea rdx, [0x1400d9330]
call qword [rax + 0x20]
test eax, eax
js 0x1400b719c
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400b71a0
mov dword [rbp - 0x28], r15d
mov rax, qword [rcx]
lea rdx, [rbp - 0x28]
call qword [rax + 0x20]
mov edi, r15d
cmp dword [rbp - 0x28], r15d
jbe 0x1400b719c
nop word [rax + rax]
mov qword [rbp - 0x20], r15
mov rcx, qword [rbp - 0x18]
mov rax, qword [rcx]
lea r8, [rbp - 0x20]
mov edx, edi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
test eax, eax
js 0x1400b7186
mov rdx, qword [rbp - 0x20]
mov rcx, rsi
call fcn.1400b7660
test eax, eax
js 0x1400b7186
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rsi + 0x18]
call fcn.1400b6060
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1400b7195
mov rax, qword [rcx]
call qword [rax + 0x10]
inc edi
cmp edi, dword [rbp - 0x28]
jb 0x1400b7150
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400b71ac
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1400b71bb
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
js 0x1400b71f8
mov rdi, qword [rsi + 0x18]
cmp dword [rdi + 0x18], 0
je 0x1400b72ad
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rdi
lea r8, [0x1400b49d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rdi + 0x28], rax
jmp 0x1400b72ad
cmp dword [0x14016bf0c], 0
jne 0x1400b7234
call fcn.140005010
test rax, rax
je 0x1400b721f
cmp dword [rax + 4], 0xa
jne 0x1400b721f
cmp dword [rax + 0xc], 0x582c
mov eax, 1
jae 0x1400b7222
mov eax, r15d
mov dword [0x14016bf08], eax
mov dword [0x14016bf0c], 1
jmp 0x1400b723a
mov eax, dword [0x14016bf08]
test eax, eax
je 0x1400b72ad
mov r8d, reloc.OLEAUT32.dll_BSTR_UserUnmarshal
lea rdx, str.CSimpleOrientationSensorManagerEvents::Initialize
lea rcx, str._s__d_Its_Windows_SV2
call fcn.140061d00
cmp dword [rsi + 8], 0
jne 0x1400b72ad
mov rdi, qword [rsi + 0x18]
cmp dword [rdi + 0x18], 0
je 0x1400b728d
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rdi
lea r8, [0x1400b49d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rdi + 0x28], rax
mov r8d, LPSAFEARRAY_UserUnmarshal
lea rdx, str.CSimpleOrientationSensorManagerEvents::Initialize
lea rcx, str._s__d_start_sensor_thread
call fcn.140061d00
mov dword [rsi + 8], 1
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400c5860
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret