Function at 0x140022050
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rcx, qword [rsp + 0x50]
call fcn.140006a80
mov r11, qword [rsp + 0x50]
lea rax, vtable.CSimpleOrientationSensorEvents.0
mov qword [r11], rax
mov rcx, qword [rsp + 0x50]
add rcx, 0x68
mov dword [rsp + 0x28], 0xa
movss xmm0, dword [0x14003ea30]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x14003ea2c]
movss xmm2, dword [0x14003ea28]
mov edx, 0x11
call fcn.140004d00
mov r11, qword [rsp + 0x50]
mov dword [r11 + 0x50], 0xff
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x54], 1
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x58]
mov qword [rcx + 0x58], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x60]
mov qword [rcx + 0x60], rax
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x40], 0
mov rax, qword [rsp + 0x50]
add rax, 8
mov qword [rsp + 0x20], rax
mov r9d, 0x11
xor r8d, r8d
lea rdx, [0x140036010]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400222a9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r11, rax
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x18], r11
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r11, rax
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x20], r11
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r11, rax
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x28], r11
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r11, rax
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x30], r11
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x38], 0
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x48], 0
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x58]
mov eax, dword [rax + 0x1dc]
shr eax, 1
and eax, 1
test eax, eax
je 0x140022214
mov rax, qword [rsp + 0x50]
add rax, 0x38
mov qword [rsp + 0x20], rax
mov r9d, 0x111
xor r8d, r8d
lea rdx, [0x140035ab8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x38], eax
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x50]
mov rdx, qword [rdx + 0x38]
lea rcx, str.CSimpleOrientationSensorEvents_Lenovo_check1__m_hKey_LenovoCameraAudio_08x__lErrorCode_08x__n
call fcn.140001000
mov rax, qword [rsp + 0x50]
add rax, 0x48
mov qword [rsp + 0x20], rax
mov r9d, 0x11
xor r8d, r8d
lea rdx, [0x140036140]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x34], eax
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x50]
mov rdx, qword [rdx + 0x48]
lea rcx, str.CSimpleOrientationSensorEvents___m_hKey_Slate_08x__lErrorCode_08x__n
call fcn.140001000
mov rcx, qword [rsp + 0x50]
call fcn.1400210a0
mov r11d, eax
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x40], r11d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x50]
lea r8, [0x140021df0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r11, rax
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x10], r11
jmp 0x1400222c3
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x10], 0
mov rax, qword [rsp + 0x50]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x50]
mov dword [rax + 0xc0], 0
mov rax, qword [rsp + 0x50]
mov dword [rax + 0xc4], 0
mov rax, qword [rsp + 0x50]
mov dword [rax + 0xc8], 0
mov rax, qword [rsp + 0x50]
mov dword [rax + 0xcc], 0
mov rax, qword [rsp + 0x50]
add rsp, 0x48
ret