Function at 0x14005ae80
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x140
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
movaps xmmword [rax - 0x88], xmm11
movaps xmmword [rax - 0x98], xmm12
movaps xmmword [rax - 0xa8], xmm13
mov rax, qword [0x1400bb008]
xor rax, rsp
mov qword [rbp - 0x50], rax
mov rbx, rcx
lea rax, [rcx + 0xe0]
mov qword [rsp + 0x58], rax
mov rcx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
xor edi, edi
mov dword [rbp - 0x78], edi
mov dword [rbp - 0x6c], 1
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 0x11]
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 0x14005afa0
mov dword [rbp - 0x70], edi
mov dword [rbp - 0x74], 4
lea rax, [rbp - 0x74]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
xor r8d, r8d
lea rdx, str.Enable
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov dword [rbp - 0x78], edi
lea rax, [rbp - 0x74]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
xor r8d, r8d
lea rdx, str.LastOrientation
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov esi, 1
mov r12d, dword [rbp - 0x6c]
mov dword [rsp + 0x48], r12d
test r12d, r12d
mov r9, rdi
cmovne rsi, rdi
mov qword [rsp + 0x50], rsi
mov r13d, r9d
mov edi, dword [rbx + 0x60]
mov dword [rsp + 0x40], edi
cmp qword [rbx + 0x80], r9
je 0x14005b3cc
mov ecx, r9d
mov edx, dword [rbx + 0x88]
test edx, edx
je 0x14005aff6
mov r8, qword [rbx + 0x78]
mov eax, ecx
mov r14, qword [r8 + rax*8]
test r14, r14
jne 0x14005b002
inc ecx
cmp ecx, edx
jb 0x14005afe5
mov r14, r9
test r9, r9
je 0x14005b3cc
or r15d, 0xffffffff
movss xmm13, dword [0x14009a994]
movss xmm11, dword [0x14009a9a4]
movss xmm12, dword [0x14009a9f8]
test r14, r14
je 0x14005b503
mov r11, r14
mov r8, qword [r14 + 0x18]
test r8, r8
jne 0x14005b06f
mov r8, r9
mov r10d, dword [rbx + 0x88]
xor edx, edx
mov eax, dword [r14 + 0x20]
div r10d
lea r9d, [rdx + 1]
nop dword [rax]
cmp r9d, r10d
jae 0x14005b06c
mov rax, qword [rbx + 0x78]
mov rdx, qword [rax + r9*8]
test rdx, rdx
cmovne r8, rdx
inc r9d
test r8, r8
je 0x14005b050
xor r9d, r9d
mov r14, r8
mov edi, dword [r11 + 0x10]
mov dword [rsp + 0x44], edi
test rsi, rsi
je 0x14005b0b2
mov eax, dword [rbp - 0x78]
test eax, eax
je 0x14005b0af
sub eax, 1
je 0x14005b0a8
sub eax, 1
je 0x14005b0a1
cmp eax, 1
je 0x14005b09a
mov edi, r15d
jmp 0x14005b0b2
mov edi, 1
jmp 0x14005b0b2
mov edi, 2
jmp 0x14005b0b2
mov edi, 3
jmp 0x14005b0b2
mov edi, r9d
mov rsi, qword [0x1400bfb78]
test rsi, rsi
jne 0x14005b112
mov ecx, 0x2a8
call fcn.140066208
mov rsi, rax
mov qword [rsp + 0x68], rax
xor edx, edx
mov r8d, 0x2a8
mov rcx, rax
call fcn.14006d020
mov rcx, rsi
call fcn.140045cd0
nop
xor eax, eax
mov dword [rsi + 8], eax
mov dword [rsi + 0x10], eax
mov dword [rsi + 0x14], 0xffff
mov dword [rsi + 0x258], 0xffff
mov rcx, rsi
call fcn.1400454f0
nop
mov qword [0x1400bfb78], rsi
test byte [rsi + 0x144], 0x80
je 0x14005b164
xor esi, esi
cmp edi, 3
jbe 0x14005b12f
mov edi, esi
cmp dword [rbx + 0x60], 0xff
cmovne edi, dword [rbx + 0x60]
mov eax, edi
mov dword [rbx + 0x60], eax
cmp dword [rsp + 0x40], edi
je 0x14005b193
call fcn.14005ad10
mov dword [rbx + 0x50], eax
mov r9d, eax
mov r8d, r12d
mov edx, edi
lea rcx, str.CSimpleOrientationSensorEvents::UpdateOrientation_3__Orientation_d__AutoRotationState_d_m_bAlwaysZeroDegree_d_n
call fcn.140026f80
mov edx, edi
cmp dword [rbx + 0x50], 0
cmovne edx, esi
xor r8d, r8d
jmp 0x14005b18e
call fcn.14005ad10
mov dword [rbx + 0x50], eax
mov r8d, r12d
mov edx, edi
lea rcx, str.CSimpleOrientationSensorEvents::UpdateOrientation_4__Orientation_d__AutoRotationState_d__n
call fcn.140026f80
mov edx, edi
cmp dword [rbx + 0x50], 0
mov esi, 0
cmovne edx, esi
mov r8d, r13d
call fcn.14005b770
cmp dword [rbx + 0x50], 0
cmovne edi, esi
mov r8d, r13d
mov edx, edi
call fcn.14005adc0
cmp dword [0x1400beb20], 0
je 0x14005b3b3
cmp dword [rbx + 0xdc], 0
je 0x14005b3b3
mov rax, qword [rbx + 0xc8]
cmp dword [rbx + 0xc0], 4
jb 0x14005b3a7
movss xmm7, dword [rax]
movss xmm8, dword [rax + 4]
movss xmm9, dword [rax + 8]
movss xmm10, dword [rax + 0xc]
movaps xmm2, xmm9
mulss xmm2, xmm8
movaps xmm0, xmm10
mulss xmm0, xmm7
addss xmm2, xmm0
movaps xmm6, xmm8
mulss xmm6, xmm8
movaps xmm0, xmm7
mulss xmm0, xmm7
addss xmm0, xmm6
addss xmm2, xmm2
addss xmm0, xmm0
movaps xmm1, xmm13
subss xmm1, xmm0
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll_atan2f
divss xmm0, xmm11
mulss xmm0, xmm12
cvttss2si ecx, xmm0
mov eax, 0x88888889
imul ecx
lea r12d, [rcx + rdx]
sar r12d, 3
mov eax, r12d
shr eax, 0x1f
add r12d, eax
movaps xmm1, xmm10
mulss xmm1, xmm8
movaps xmm0, xmm9
mulss xmm0, xmm7
subss xmm1, xmm0
addss xmm1, xmm1
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_asinf
divss xmm0, xmm11
mulss xmm0, xmm12
cvttss2si ecx, xmm0
mov eax, 0x88888889
imul ecx
lea edi, [rcx + rdx]
sar edi, 3
mov eax, edi
shr eax, 0x1f
add edi, eax
mulss xmm10, xmm9
mulss xmm8, xmm7
addss xmm10, xmm8
mulss xmm9, xmm9
addss xmm9, xmm6
addss xmm10, xmm10
addss xmm9, xmm9
movaps xmm1, xmm13
subss xmm1, xmm9
movaps xmm0, xmm10
call sub.api_ms_win_crt_math_l1_1_0.dll_atan2f
divss xmm0, xmm11
mulss xmm0, xmm12
cvttss2si ecx, xmm0
mov eax, 0x88888889
imul ecx
lea esi, [rcx + rdx]
sar esi, 3
mov eax, esi
shr eax, 0x1f
add esi, eax
cmp r12d, dword [rbx + 0xd0]
jne 0x14005b306
cmp edi, dword [rbx + 0xd4]
jne 0x14005b306
cmp esi, dword [rbx + 0xd8]
je 0x14005b38f
mov eax, dword [rsp + 0x44]
mov dword [rbp - 0x60], eax
mov dword [rbp - 0x5c], r12d
mov dword [rbp - 0x58], edi
mov dword [rbp - 0x54], esi
mov dword [rbp - 0x68], 0
mov eax, dword [0x1400bf960]
test eax, eax
jg 0x14005b343
mov r8d, 0x2ba
lea rdx, str.CDriverPropertyClient::KsProperty
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140026f80
jmp 0x14005b38f
movups xmm0, xmmword [0x1400810b0]
movaps xmmword [rsp + 0x70], xmm0
test eax, eax
jle 0x14005b4f3
lea rax, [rbp - 0x68]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], SafeArrayUnaccessData
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8d, [r9 + 0x40]
lea rdx, [rsp + 0x70]
mov rcx, qword [0x1400bf958]
mov rcx, qword [rcx]
call fcn.140047fc0
mov dword [rbx + 0xd0], r12d
mov dword [rbx + 0xd4], edi
mov dword [rbx + 0xd8], esi
mov r12d, dword [rsp + 0x48]
xor r9d, r9d
mov dword [rbx + 0xdc], r9d
jmp 0x14005b3b6
xor r9d, r9d
inc r13d
test r14, r14
je 0x14005b491
mov rsi, qword [rsp + 0x50]
jmp 0x14005b021
mov eax, dword [rbp - 0x78]
test eax, eax
je 0x14005b400
sub eax, 1
je 0x14005b3f8
sub eax, 1
je 0x14005b3f0
cmp eax, 1
je 0x14005b3e8
or r15d, 0xffffffff
jmp 0x14005b403
mov r15d, 1
jmp 0x14005b403
mov r15d, 2
jmp 0x14005b403
mov r15d, 3
jmp 0x14005b403
mov r15d, r9d
call fcn.140008300
test byte [rax + 0x144], 0x80
je 0x14005b44f
xor esi, esi
cmp r15d, 3
jbe 0x14005b428
mov r15d, esi
cmp dword [rbx + 0x60], 0xff
cmovne r15d, dword [rbx + 0x60]
mov eax, r15d
mov dword [rbx + 0x60], eax
cmp edi, r15d
je 0x14005b47e
call fcn.14005ad10
mov dword [rbx + 0x50], eax
mov r8d, r12d
mov edx, r15d
lea rcx, str.CSimpleOrientationSensorEvents::UpdateOrientation_1__Orientation_d__AutoRotationState_d__n
call fcn.140026f80
jmp 0x14005b46c
call fcn.14005ad10
mov dword [rbx + 0x50], eax
mov r8d, r12d
mov edx, r15d
lea rcx, str.CSimpleOrientationSensorEvents::UpdateOrientation_2__Orientation_d__AutoRotationState_d__n
call fcn.140026f80
mov rsi, r13
mov edx, r15d
cmp dword [rbx + 0x50], r13d
cmovne edx, esi
xor r8d, r8d
call fcn.14005b770
cmp dword [rbx + 0x50], r13d
cmovne r15d, esi
xor r8d, r8d
mov edx, r15d
call fcn.14005adc0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
xor eax, eax
mov rcx, qword [rbp - 0x50]
xor rcx, rsp
call fcn.140065bd0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
movaps xmm13, xmmword [r11 - 0x80]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov edx, 1
mov ecx, 0xc000008c
call fcn.14002b1f0
int3
mov ecx, 0x80004005
call fcn.140003270
int3