Function at 0x140020d70
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, [0x14002d660]
call fcn.1400053c0
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jl 0x140021105
mov rcx, qword [rsp + 0xb0]
add rcx, 0x20
call fcn.140001e60
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 0x140021105
lea rcx, [rsp + 0x30]
call fcn.1400053a0
nop
lea rcx, [rsp + 0x28]
call fcn.1400053a0
nop
mov rcx, qword [rsp + 0xb0]
add rcx, 0x20
call fcn.140001e60
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x30]
call fcn.140003cf0
mov r8, rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
lea rdx, [0x14002d5e0]
mov rcx, qword [rsp + 0x68]
call qword [rax + 0x20]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jl 0x140020f6a
lea rcx, [rsp + 0x30]
call fcn.140001e60
test rax, rax
je 0x140020f6a
mov dword [rsp + 0x38], 0
lea rcx, [rsp + 0x30]
call fcn.140001e60
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 0x140020f6a
mov dword [rsp + 0x3c], 0
jmp 0x140020ec0
mov eax, dword [rsp + 0x3c]
add eax, 1
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x3c], eax
jae 0x140020f6a
lea rcx, [rsp + 0x40]
call fcn.1400053a0
nop
lea rcx, [rsp + 0x30]
call fcn.140001e60
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x40]
call fcn.140003cf0
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 0x140020f5b
lea rcx, [rsp + 0x40]
call fcn.140001e60
mov rdx, rax
mov rcx, qword [rsp + 0xb0]
call fcn.140020930
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jl 0x140020f5b
lea rcx, [rsp + 0x40]
call fcn.140001e60
mov rdx, rax
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x18]
call fcn.1400228f0
mov dword [rsp + 0x24], eax
lea rcx, [rsp + 0x40]
call fcn.140003630
jmp 0x140020eb5
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 0x1400210f0
mov rcx, qword [rsp + 0xb0]
add rcx, 0x20
call fcn.140001e60
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x28]
call fcn.140003cf0
mov r8, rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
lea rdx, [0x14002d6f0]
mov rcx, qword [rsp + 0x80]
call qword [rax + 0x20]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x1400210f0
lea rcx, [rsp + 0x28]
call fcn.140001e60
test rax, rax
je 0x1400210f0
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x28]
call fcn.140001e60
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 0x14002103d
mov eax, dword [rsp + 0x4c]
add eax, 1
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x4c], eax
jae 0x1400210f0
lea rcx, [rsp + 0x50]
call fcn.1400053a0
nop
lea rcx, [rsp + 0x28]
call fcn.140001e60
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x50]
call fcn.140003cf0
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 0x1400210e1
lea rcx, [rsp + 0x50]
call fcn.140001e60
mov rdx, rax
mov rcx, qword [rsp + 0xb0]
call fcn.140020930
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x1400210e1
lea rcx, [rsp + 0x50]
call fcn.140001e60
mov rdx, rax
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x18]
call fcn.1400228f0
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x50]
call fcn.140003630
jmp 0x140021032
lea rcx, [rsp + 0x28]
call fcn.140003630
nop
lea rcx, [rsp + 0x30]
call fcn.140003630
cmp dword [rsp + 0x24], 0
jl 0x14002111d
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x18]
call fcn.140022680
mov eax, dword [rsp + 0x24]
add rsp, 0xa8
ret