Function at 0x140093e20
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x60
mov rax, qword [0x14011f010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rdx
lea rcx, [0x1400c4050]
lea rdx, str.CSimpleOrientationSensorEvents::GetAutoRotationStateFromReg
mov r8d, 0x23a
call fcn.14004c3d0
lea rax, [rsp + 0x30]
mov dword [rsp + 0x40], 1
mov r9d, 0x11
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionAutoRotation
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140094068
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x80], rsi
lea rdx, str.Enable
xor esi, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x44], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov r9d, dword [rsp + 0x40]
lea rdx, str.CSimpleOrientationSensorEvents::GetAutoRotationStateFromReg
mov r8d, 0x246
lea rcx, str._s__d_Auto_Orientation_Enable___d
call fcn.14004c3d0
mov dword [rdi], esi
call fcn.1400046b0
mov rbx, rax
call fcn.1400046b0
mov ecx, dword [rbx + 0xc]
lea rdx, str.CSimpleOrientationSensorEvents::GetAutoRotationStateFromReg
mov dword [rsp + 0x20], ecx
mov r8d, 0x24a
lea rcx, str._s__d_MajorVersion__d__BuildNumber__d_
mov r9d, dword [rax + 4]
call fcn.14004c3d0
call fcn.1400046b0
mov rbx, qword [rsp + 0x70]
cmp dword [rax + 4], 0xa
jne 0x14009400e
call fcn.1400046b0
cmp dword [rax + 0xc], 0x5374
jb 0x14009400e
cmp dword [rsp + 0x40], esi
je 0x140093ff1
lea rax, [rsp + 0x38]
xor r8d, r8d
lea r9d, [rsi + 0x11]
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionAutoRotationNonPreserve
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140093fd9
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.LastAutoRequest
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x4c], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov r9d, dword [rdi]
lea rdx, str.CSimpleOrientationSensorEvents::GetAutoRotationStateFromReg
mov r8d, 0x259
lea rcx, str._s__d_for_windows_21xxx__Orientation_LastAutoRequest____d
call fcn.14004c3d0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x140094053
call fcn.1400046b0
mov r8d, 0x260
lea rcx, str._s__d_BuildNumber__d__open_AutoRotationNonPreserve_fail
mov r9d, dword [rax + 0xc]
jmp 0x140094047
mov r8d, 0x265
lea rdx, str.CSimpleOrientationSensorEvents::GetAutoRotationStateFromReg
lea rcx, str._s__d_for_windows_21xxx__Auto_Orientation_is_disabled__Orientation_0
call fcn.14004c3d0
mov dword [rdi], esi
jmp 0x140094053
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.LastOrientation
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov r9d, dword [rdi]
lea rcx, str._s__d_before_windows_21xxx__Orientation_LastOrientation____d
mov r8d, 0x26d
lea rdx, str.CSimpleOrientationSensorEvents::GetAutoRotationStateFromReg
call fcn.14004c3d0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rsi, qword [rsp + 0x80]
jmp 0x140094081
mov r8d, 0x275
lea rdx, str.CSimpleOrientationSensorEvents::GetAutoRotationStateFromReg
lea rcx, str._s__d_Open_registry_AutoOrientation_fail_
call fcn.14004c3d0
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400a4020
add rsp, 0x60
pop rdi
ret