Function at 0x14005c110
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 [0x1400bb008]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, rcx
lea rcx, str.CSimpleOrientationSensorManagerEvents::Initialize__n
call fcn.140026f80
lea r14, [rsi + 0x20]
mov qword [rsp + 0x20], r14
lea r9, [0x140097090]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x140076070]
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.140026f80
test ebx, ebx
js 0x14005c3af
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.140026f80
test ebx, ebx
js 0x14005c3af
xor r15d, r15d
mov qword [rbp - 0x10], r15
mov qword [rbp - 0x18], r15
mov rcx, qword [r14]
mov rax, qword [rcx]
lea r8, [rbp - 0x10]
lea rdx, [0x140076050]
call qword [rax + 0x20]
mov ebx, eax
mov edx, eax
lea rcx, str.GetSensorsByType__x__n
call fcn.140026f80
test ebx, ebx
js 0x14005c2af
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14005c2af
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.140026f80
test ebx, ebx
js 0x14005c2af
mov edi, r15d
cmp dword [rbp - 0x28], r15d
jbe 0x14005c2af
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.140026f80
test ebx, ebx
js 0x14005c299
mov rdx, qword [rbp - 0x20]
mov rcx, rsi
call fcn.14005c760
mov ebx, eax
mov edx, eax
lea rcx, str.AddSensor__x__n
call fcn.140026f80
test ebx, ebx
js 0x14005c299
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rsi + 0x18]
call fcn.14005b510
mov ebx, eax
mov edx, eax
lea rcx, str.m_pSensorEvents__GetSensorData__x__n
call fcn.140026f80
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14005c2a8
mov rax, qword [rcx]
call qword [rax + 0x10]
inc edi
cmp edi, dword [rbp - 0x28]
jb 0x14005c230
call fcn.140008300
test byte [rax + 0x144], 0x20
je 0x14005c35c
lea rcx, str.RtkService_SensorNotifyEx__n
call fcn.140026f80
mov rcx, qword [r14]
mov rax, qword [rcx]
lea r8, [rbp - 0x18]
lea rdx, [0x140076060]
call qword [rax + 0x20]
test eax, eax
js 0x14005c35c
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14005c360
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 0x14005c35c
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 0x14005c346
mov rdx, qword [rbp - 0x20]
mov rcx, rsi
call fcn.14005c760
test eax, eax
js 0x14005c346
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rsi + 0x18]
call fcn.14005b510
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14005c355
mov rax, qword [rcx]
call qword [rax + 0x10]
inc edi
cmp edi, dword [rbp - 0x28]
jb 0x14005c310
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14005c36c
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14005c37b
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
js 0x14005c3af
mov rdi, qword [rsi + 0x18]
cmp dword [rdi + 0x10], 0
je 0x14005c3af
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rdi
lea r8, [0x14005a730]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rdi + 0x20], rax
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140065bd0
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