Function at 0x41f9e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00404580
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CSimpleOrientationSensorEvents.0
push 0xa
push ecx
fld dword [0x438ee8]
fstp dword [esp]
push ecx
fld dword [0x438ee4]
fstp dword [esp]
push ecx
fld dword [0x438ee0]
fstp dword [esp]
push 0x11
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.00404610
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x28], 0xff
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x2c], 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x30], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x34], eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp - 0x10]
add edx, 4
push edx
push 0x11
push 0
push 0x4316f8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41fb8f
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x30]
mov ecx, dword [eax + 0x1b0]
shr ecx, 1
and ecx, 1
je 0x41fb2a
mov edx, dword [ebp - 0x10]
add edx, 0x1c
push edx
push 0x111
push 0
push 0x4316c4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
push edx
push str.CSimpleOrientationSensorEvents_Lenovo_check1__m_hKey_LenovoCameraAudio_08x__lErrorCode_08x__n
call fcn.00401000
add esp, 0xc
mov eax, dword [ebp - 0x10]
add eax, 0x24
push eax
push 0x11
push 0
push str.SYSTEMCurrentControlSetControlPriorityControl
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x24]
push eax
push str.CSimpleOrientationSensorEvents___m_hKey_Slate_08x__lErrorCode_08x__n
call fcn.00401000
add esp, 0xc
mov ecx, dword [ebp - 0x10]
call fcn.0041edf0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x20], eax
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0x41f820
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], eax
jmp 0x41fba3
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x70], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x74], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x78], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x7c], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8