Function at 0x140013290
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push r14
sub rsp, 0xd0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14005d030]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, rcx
xor eax, eax
xor bl, bl
mov byte [rsp + 0x30], bl
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], eax
lea rsi, [rcx + 0x2d8]
mov r9d, 0x20119
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionAutoRotationNonPreserve
mov rdx, 0xffffffff80000002
mov rcx, rsi
call fcn.140002160
test eax, eax
jne 0x140013343
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, qword [rdi + 0x2c0]
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001333c
cmp dword [rsp + 0x38], 4
je 0x140013343
xor al, al
jmp 0x140013506
mov r9d, 0x20119
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionAutoRotation
mov rdx, 0xffffffff80000002
mov rcx, rsi
call fcn.140002160
test eax, eax
jne 0x1400134fc
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [rdi + 0x2b8]
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400134f5
cmp dword [rsp + 0x34], 4
jne 0x1400134f5
cmp dword [rsp + 0x44], 1
je 0x1400133fb
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [rdi + 0x2b0]
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400133f4
cmp dword [rsp + 0x34], 4
je 0x1400133fb
xor al, al
jmp 0x140013506
mov r8d, dword [rsp + 0x40]
mov dword [rdi + 0x224], r8d
lea r9, [rsp + 0xba]
nop
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x140013410
lea r8, [rsp + 0xba]
mov rdx, r9
lea rcx, [rsp + 0x70]
call fcn.1400162e0
nop
lea r8, [rsp + 0x70]
lea rdx, str.DtsService::ApoControllerSystem::m_DisplayOrientation::IsAIOMode::m_LastDisplayOrientation::
lea rcx, [rsp + 0x50]
call fcn.140015430
mov r14d, 1
mov edx, r14d
mov rcx, rax
call fcn.140002680
nop
mov rdx, qword [rsp + 0x88]
cmp rdx, 8
jb 0x1400134bf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400134ba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013530
call fcn.140024800
mov eax, dword [rdi + 0x224]
dec eax
test eax, 0xfffffffd
movzx ebx, bl
cmove ebx, r14d
mov byte [rsp + 0x30], bl
mov dword [rsp + 0x20], r14d
mov r9, qword [rdi + 0x2c8]
mov r8d, 4
mov edx, r14d
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
mov byte [rdi + 0x2f0], 1
jmp 0x140013503
movzx eax, bl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400247e0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
call fcn.14002bf94
int3