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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426709
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x43400c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CSimpleOrientationSensorEvents.0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0x11
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0xa
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x48], 0x3f400000
mov dword [edi + 0x4c], 0x3e800000
mov dword [edi + 0x50], 0x40100000
mov dword [edi + 0x54], 0x26
mov dword [edi + 0x58], 0
lea eax, [edi + 0x84]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push 0
movups xmmword [eax], xmm0
push eax
movq qword [eax + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x4084b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4084ad
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x4086d9
push 4
mov byte [ebp - 4], 1
call fcn.0040fbab
add esp, 4
mov dword [eax], 0
mov dword [edi + 0x70], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x38], eax
lea eax, [edi + 0x84]
mov dword [edi + 0x2c], 0xff
mov dword [edi + 0x30], 1
mov dword [edi + 0x24], 0
mov dword [edi + 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
push eax
mov dword [edi + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x40854e
push eax
call fcn.0040fba6
add esp, 4
mov dword [edi + 0x3c], 0
push 0x42754c
push 0x200
call fcn.0040fbdb
add esp, 8
mov dword [edi + 0x3c], eax
test eax, eax
je 0x4085b0
push 0x200
push 0
push eax
call fcn.00411630
movss xmm0, dword [edi + 0x50]
add esp, 0xc
mulss xmm0, dword [0x42ef70]
mov dword [edi + 0x44], 0x80
call fcn.00424c60
movss xmm0, dword [edi + 0x4c]
mulss xmm0, dword [0x42ef70]
mov dword [edi + 0x54], eax
call fcn.00424c60
xor ecx, ecx
cmp eax, 0x11
cmovb eax, ecx
mov dword [edi + 0x58], eax
lea ecx, [edi + 0x3c]
call fcn.00409550
lea eax, [edi + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [edi + 8]
push esi
push 0x11
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionAutoRotation
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408698
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
push eax
push eax
push eax
call esi
push 0
push 0
push 0
push 0
mov dword [edi + 0x10], eax
call esi
push 0
push 0
push 0
push 0
mov dword [edi + 0x14], eax
call esi
push 0
push 0
push 0
push 0
mov dword [edi + 0x18], eax
call esi
mov dword [edi + 0x1c], eax
lea esi, [edi + 0x20]
mov eax, dword [edi + 0x34]
mov dword [esi], 0
mov dword [edi + 0x28], 0
test byte [eax + 0x1b0], 2
je 0x40865f
push esi
push 0x111
push 0
push str.SOFTWARELenovoMultiMode
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push dword [esi]
push str.CSimpleOrientationSensorEvents_Lenovo_check1__m_hKey_LenovoCameraAudio_08x__lErrorCode_08x__n
call fcn.004010f0
add esp, 0xc
lea esi, [edi + 0x28]
push esi
push 0x11
push 0
push str.SYSTEMCurrentControlSetControlPriorityControl
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push dword [esi]
push str.CSimpleOrientationSensorEvents___m_hKey_Slate_08x__lErrorCode_08x__n
call fcn.004010f0
add esp, 0xc
call fcn.00408c30
mov dword [edi + 0x24], eax
mov dword [edi + 4], 1
jmp 0x4086a5
mov dword [edi + 0xc], 0
mov dword [esi], 0
mov dword [edi + 0x74], 0
mov eax, edi
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push eax
call fcn.00401510
int3