Function at 0x140027150
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov qword [rsp + 0x58], 0xfffffffffffffffe
lea rcx, str.CSimpleOrientationSensorManagerEvents::Initialize__n
call fcn.140001000
mov rcx, qword [rsp + 0xb0]
add rcx, 0x20
mov r9d, reloc.OLEAUT32.dll_SafeArrayUnaccessData
xor r8d, r8d
lea rdx, [0x14002e670]
call fcn.140005720
mov dword [rsp + 0x24], eax
mov edx, dword [rsp + 0x24]
lea rcx, str.CoCreateInstance_CLSID_SensorManager___x__n
call fcn.140001000
cmp dword [rsp + 0x24], 0
jl 0x14002756f
mov rcx, qword [rsp + 0xb0]
add rcx, 0x20
call fcn.140001f50
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x60]
call qword [rax + 0x30]
mov dword [rsp + 0x24], eax
mov edx, dword [rsp + 0x24]
lea rcx, str.SetEventSink_this___x__n
call fcn.140001000
cmp dword [rsp + 0x24], 0
jl 0x14002756f
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140001ea0
nop
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.140001ea0
nop
mov rcx, qword [rsp + 0xb0]
add rcx, 0x20
call fcn.140001f50
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x30]
call fcn.140005770
mov r8, rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
lea rdx, [0x14002e5f0]
mov rcx, qword [rsp + 0x68]
call qword [rax + 0x20]
mov dword [rsp + 0x24], eax
mov edx, dword [rsp + 0x24]
lea rcx, str.GetSensorsByType__x__n
call fcn.140001000
cmp dword [rsp + 0x24], 0
jl 0x1400273c4
lea rcx, [rsp + 0x30]
call fcn.140001f50
test rax, rax
je 0x1400273c4
mov dword [rsp + 0x38], 0
lea rcx, [rsp + 0x30]
call fcn.140001f50
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call qword [rax + 0x20]
mov dword [rsp + 0x24], eax
mov edx, dword [rsp + 0x24]
lea rcx, str.spSensors__GetCount__x__n
call fcn.140001000
cmp dword [rsp + 0x24], 0
jl 0x1400273c4
mov dword [rsp + 0x3c], 0
jmp 0x1400272e4
mov eax, dword [rsp + 0x3c]
add eax, 1
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x3c], eax
jae 0x1400273c4
lea rcx, [rsp + 0x40]
call fcn.140004f30
nop
lea rcx, [rsp + 0x30]
call fcn.140001f50
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x40]
call fcn.140005770
mov r8, rax
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x78]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov dword [rsp + 0x24], eax
mov r8d, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x24]
lea rcx, str.spSensors__GetAt__x__d_n
call fcn.140001000
cmp dword [rsp + 0x24], 0
jl 0x1400273b5
lea rcx, [rsp + 0x40]
call fcn.140001f50
mov rdx, rax
mov rcx, qword [rsp + 0xb0]
call fcn.140026ba0
mov dword [rsp + 0x24], eax
mov edx, dword [rsp + 0x24]
lea rcx, str.AddSensor__x__n
call fcn.140001000
cmp dword [rsp + 0x24], 0
jl 0x1400273b5
lea rcx, [rsp + 0x40]
call fcn.140001f50
mov rdx, rax
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x18]
call fcn.140022ff0
mov dword [rsp + 0x24], eax
mov edx, dword [rsp + 0x24]
lea rcx, [0x140038b70]
call fcn.140001000
nop
lea rcx, [rsp + 0x40]
call fcn.140004f10
jmp 0x1400272d9
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x19c]
shr eax, 5
and eax, 1
test eax, eax
je 0x14002755a
mov edx, dword [rsp + 0x24]
lea rcx, str.m_pSensorEvents__GetSensorData__x__n
call fcn.140001000
mov rcx, qword [rsp + 0xb0]
add rcx, 0x20
call fcn.140001f50
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x28]
call fcn.140005770
mov r8, rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
lea rdx, [0x14002e6f0]
mov rcx, qword [rsp + 0x80]
call qword [rax + 0x20]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x14002755a
lea rcx, [rsp + 0x28]
call fcn.140001f50
test rax, rax
je 0x14002755a
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x28]
call fcn.140001f50
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x88]
call qword [rax + 0x20]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x4c], 0
jmp 0x1400274a7
mov eax, dword [rsp + 0x4c]
add eax, 1
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x4c], eax
jae 0x14002755a
lea rcx, [rsp + 0x50]
call fcn.140004f30
nop
lea rcx, [rsp + 0x28]
call fcn.140001f50
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x50]
call fcn.140005770
mov r8, rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov edx, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x90]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x14002754b
lea rcx, [rsp + 0x50]
call fcn.140001f50
mov rdx, rax
mov rcx, qword [rsp + 0xb0]
call fcn.140026ba0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x14002754b
lea rcx, [rsp + 0x50]
call fcn.140001f50
mov rdx, rax
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x18]
call fcn.140022ff0
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x50]
call fcn.140004f10
jmp 0x14002749c
lea rcx, [rsp + 0x28]
call fcn.140004f10
nop
lea rcx, [rsp + 0x30]
call fcn.140004f10
cmp dword [rsp + 0x24], 0
jl 0x140027587
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x18]
call fcn.140022d80
mov eax, dword [rsp + 0x24]
add rsp, 0xa8
ret