Function at 0x140020950
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, [0x14002c640]
call fcn.140005480
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jl 0x140020ce5
mov rcx, qword [rsp + 0xb0]
add rcx, 0x20
call fcn.140003cd0
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
cmp dword [rsp + 0x24], 0
jl 0x140020ce5
lea rcx, [rsp + 0x30]
call fcn.140006390
nop
lea rcx, [rsp + 0x28]
call fcn.140006390
nop
mov rcx, qword [rsp + 0xb0]
add rcx, 0x20
call fcn.140003cd0
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x30]
call fcn.140004cf0
mov r8, rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
lea rdx, [0x14002c5c0]
mov rcx, qword [rsp + 0x68]
call qword [rax + 0x20]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jl 0x140020b4a
lea rcx, [rsp + 0x30]
call fcn.140003cd0
test rax, rax
je 0x140020b4a
mov dword [rsp + 0x38], 0
lea rcx, [rsp + 0x30]
call fcn.140003cd0
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
cmp dword [rsp + 0x24], 0
jl 0x140020b4a
mov dword [rsp + 0x3c], 0
jmp 0x140020aa0
mov eax, dword [rsp + 0x3c]
add eax, 1
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x3c], eax
jae 0x140020b4a
lea rcx, [rsp + 0x40]
call fcn.140006390
nop
lea rcx, [rsp + 0x30]
call fcn.140003cd0
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x40]
call fcn.140004cf0
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
cmp dword [rsp + 0x24], 0
jl 0x140020b3b
lea rcx, [rsp + 0x40]
call fcn.140003cd0
mov rdx, rax
mov rcx, qword [rsp + 0xb0]
call fcn.140020510
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jl 0x140020b3b
lea rcx, [rsp + 0x40]
call fcn.140003cd0
mov rdx, rax
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x18]
call fcn.140022300
mov dword [rsp + 0x24], eax
lea rcx, [rsp + 0x40]
call fcn.140005460
jmp 0x140020a95
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 0x140020cd0
mov rcx, qword [rsp + 0xb0]
add rcx, 0x20
call fcn.140003cd0
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x28]
call fcn.140004cf0
mov r8, rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
lea rdx, [0x14002c6d0]
mov rcx, qword [rsp + 0x80]
call qword [rax + 0x20]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x140020cd0
lea rcx, [rsp + 0x28]
call fcn.140003cd0
test rax, rax
je 0x140020cd0
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x28]
call fcn.140003cd0
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 0x140020c1d
mov eax, dword [rsp + 0x4c]
add eax, 1
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x4c], eax
jae 0x140020cd0
lea rcx, [rsp + 0x50]
call fcn.140006390
nop
lea rcx, [rsp + 0x28]
call fcn.140003cd0
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x50]
call fcn.140004cf0
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 0x140020cc1
lea rcx, [rsp + 0x50]
call fcn.140003cd0
mov rdx, rax
mov rcx, qword [rsp + 0xb0]
call fcn.140020510
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x140020cc1
lea rcx, [rsp + 0x50]
call fcn.140003cd0
mov rdx, rax
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x18]
call fcn.140022300
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x50]
call fcn.140005460
jmp 0x140020c12
lea rcx, [rsp + 0x28]
call fcn.140005460
nop
lea rcx, [rsp + 0x30]
call fcn.140005460
mov eax, dword [rsp + 0x24]
add rsp, 0xa8
ret