Function at 0x1400096c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rdi
push r12
push r13
lea rbp, [rsp - 0x18]
sub rsp, 0x118
mov rax, qword [0x14003b010]
xor rax, rsp
mov qword [rbp - 0x78], rax
lea rax, [rcx + 0xd8]
mov rdi, rcx
mov rcx, rax
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r12d, r12d
mov dword [rsp + 0x40], 1
lea rax, [rsp + 0x50]
mov dword [rsp + 0x48], r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionAutoRotation
mov rcx, 0xffffffff80000002
lea r9d, [r12 + 0x11]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400097ac
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x44], r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Enable
mov dword [rsp + 0x4c], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.LastOrientation
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x40], r12d
mov r11d, 1
mov r9d, dword [rdi + 0x58]
mov r13d, r12d
mov qword [rsp + 0x148], rbx
cmovne r11, r12
mov qword [rsp + 0x150], rsi
mov qword [rsp + 0x158], r14
mov qword [rsp + 0x110], r15
movaps xmmword [rsp + 0x100], xmm6
movaps xmmword [rsp + 0xf0], xmm7
movaps xmmword [rsp + 0xe0], xmm8
movaps xmmword [rsp + 0xd0], xmm9
movaps xmmword [rsp + 0xc0], xmm10
movaps xmmword [rsp + 0xb0], xmm11
movaps xmmword [rsp + 0xa0], xmm12
movaps xmmword [rsp + 0x90], xmm13
mov qword [rsp + 0x50], r11
mov dword [rsp + 0x44], r9d
cmp qword [rdi + 0x78], r12
je 0x140009bdf
mov edx, dword [rdi + 0x80]
mov ecx, r12d
test edx, edx
je 0x140009861
mov r8, qword [rdi + 0x70]
nop dword [rax]
mov eax, ecx
mov r14, qword [r8 + rax*8]
test r14, r14
jne 0x14000986d
inc ecx
cmp ecx, edx
jb 0x140009850
mov r14, r12
test r12, r12
je 0x140009bdf
movss xmm13, dword [0x140033d50]
mov r15d, 0xffffffff
movss xmm11, dword [0x140033d54]
movss xmm12, dword [0x140033d60]
nop
test r14, r14
je 0x140009d49
mov rbx, qword [r14 + 0x18]
mov r10, r14
test rbx, rbx
jne 0x1400098e0
mov eax, dword [r14 + 0x20]
xor edx, edx
mov r9d, dword [rdi + 0x80]
mov rbx, r12
div r9d
inc edx
nop word [rax + rax]
cmp edx, r9d
jae 0x1400098db
mov rax, qword [rdi + 0x70]
mov r8, qword [rax + rdx*8]
test r8, r8
cmovne rbx, r8
inc edx
test rbx, rbx
je 0x1400098c0
mov r9d, dword [rsp + 0x44]
mov esi, dword [r10 + 0x10]
mov r14, rbx
mov dword [rsp + 0x4c], esi
test r11, r11
je 0x140009924
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x140009921
sub eax, 1
je 0x14000991a
sub eax, 1
je 0x140009913
cmp eax, 1
je 0x14000990c
mov esi, r15d
jmp 0x140009924
mov esi, 1
jmp 0x140009924
mov esi, 2
jmp 0x140009924
mov esi, 3
jmp 0x140009924
mov esi, r12d
mov r10, qword [rdi + 0x60]
test byte [r10 + 0x19c], 0x80
je 0x140009962
cmp esi, 3
jbe 0x140009945
cmp dword [rdi + 0x58], 0xff
mov esi, r12d
cmovne esi, dword [rdi + 0x58]
mov dword [rdi + 0x58], esi
cmp r9d, esi
je 0x1400099b9
cmp dword [rdi + 0x48], 0
movzx eax, si
cmovne ax, r12w
movzx eax, ax
mov dword [rsp + 0x40], eax
jmp 0x14000997e
cmp dword [rdi + 0x48], 0
movzx eax, si
cmovne ax, r12w
movzx ecx, ax
movzx eax, r13w
shl eax, 0x10
or ecx, eax
mov dword [rsp + 0x40], ecx
movups xmm0, xmmword [str._alsC]
mov rcx, qword [r10 + 8]
lea rax, [rsp + 0x40]
mov r9d, 1
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 4
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rax
movaps xmmword [rsp + 0x60], xmm0
lea r8d, [r9 + 0x3a]
call fcn.1400016b0
cmp dword [rdi + 0x48], 0
mov r8d, r13d
cmovne esi, r12d
mov edx, esi
call fcn.140009610
cmp dword [0x14003db50], 0
je 0x140009bc4
cmp dword [rdi + 0xd4], 0
je 0x140009bc4
cmp dword [rdi + 0xb8], 4
jb 0x140009bbd
mov rax, qword [rdi + 0xc0]
movss xmm7, dword [rax]
movss xmm8, dword [rax + 4]
movaps xmm2, xmm7
movss xmm10, dword [rax + 8]
movaps xmm6, xmm8
movss xmm9, dword [rax + 0xc]
movaps xmm1, xmm10
mulss xmm1, xmm8
movaps xmm0, xmm9
mulss xmm0, xmm7
mulss xmm2, xmm7
addss xmm1, xmm0
mulss xmm6, xmm8
addss xmm2, xmm6
addss xmm1, xmm1
addss xmm2, xmm2
cvtps2pd xmm0, xmm1
movaps xmm1, xmm13
subss xmm1, xmm2
cvtss2sd xmm1, xmm1
call fcn.140027730
xorps xmm1, xmm1
mov eax, 0x88888889
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm10
divss xmm1, xmm11
mulss xmm0, xmm7
mulss xmm1, xmm12
cvttss2si ecx, xmm1
movaps xmm1, xmm9
mulss xmm1, xmm8
imul ecx
subss xmm1, xmm0
add edx, ecx
sar edx, 3
addss xmm1, xmm1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0x40], edx
cvtps2pd xmm0, xmm1
call fcn.1400274a4
xorps xmm1, xmm1
mulss xmm9, xmm10
mov eax, 0x88888889
cvtsd2ss xmm1, xmm0
mulss xmm10, xmm10
divss xmm1, xmm11
mulss xmm8, xmm7
addss xmm10, xmm6
mulss xmm1, xmm12
addss xmm9, xmm8
addss xmm10, xmm10
cvttss2si ecx, xmm1
movaps xmm1, xmm13
addss xmm9, xmm9
imul ecx
subss xmm1, xmm10
cvtps2pd xmm0, xmm9
lea esi, [rcx + rdx]
sar esi, 3
mov eax, esi
shr eax, 0x1f
cvtss2sd xmm1, xmm1
add esi, eax
call fcn.140027730
xorps xmm1, xmm1
mov eax, 0x88888889
cvtsd2ss xmm1, xmm0
divss xmm1, xmm11
mulss xmm1, xmm12
cvttss2si ecx, xmm1
imul ecx
lea r12d, [rcx + rdx]
sar r12d, 3
mov eax, r12d
shr eax, 0x1f
add r12d, eax
mov eax, dword [rsp + 0x40]
cmp eax, dword [rdi + 0xc8]
jne 0x140009b4d
cmp esi, dword [rdi + 0xcc]
jne 0x140009b4d
cmp r12d, dword [rdi + 0xd0]
je 0x140009ba7
mov ecx, dword [rsp + 0x4c]
lea rdx, [rsp + 0x60]
movups xmm0, xmmword [str._alsC]
mov dword [rsp + 0x78], ecx
mov r9d, 1
mov rcx, qword [rdi + 0x60]
mov dword [rsp + 0x7c], eax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], SafeArrayUnaccessData
lea r8d, [r9 + 0x40]
mov rcx, qword [rcx + 8]
mov dword [rbp - 0x80], esi
mov dword [rbp - 0x7c], r12d
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x20], rax
call fcn.1400016b0
mov eax, dword [rsp + 0x40]
mov dword [rdi + 0xd0], r12d
xor r12d, r12d
mov dword [rdi + 0xc8], eax
mov dword [rdi + 0xcc], esi
mov dword [rdi + 0xd4], r12d
mov r9d, dword [rsp + 0x44]
inc r13d
mov r11, qword [rsp + 0x50]
test rbx, rbx
jne 0x140009890
jmp 0x140009cbc
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x140009c16
sub eax, 1
je 0x140009c0e
sub eax, 1
je 0x140009c06
cmp eax, 1
je 0x140009bfe
mov r15d, 0xffffffff
jmp 0x140009c19
mov r15d, 1
jmp 0x140009c19
mov r15d, 2
jmp 0x140009c19
mov r15d, 3
jmp 0x140009c19
mov r15d, r12d
mov rcx, qword [rdi + 0x60]
test byte [rcx + 0x19c], 0x80
je 0x140009c5a
cmp r15d, 3
jbe 0x140009c3a
cmp r9d, 0xff
mov r15d, r12d
cmovne r15d, r9d
mov eax, r15d
mov dword [rdi + 0x58], eax
cmp r9d, r15d
je 0x140009ca9
cmp dword [rdi + 0x48], r12d
mov edx, r15d
cmovne edx, r12d
xor r8d, r8d
call fcn.14000e9a0
jmp 0x140009ca9
cmp dword [rdi + 0x48], r12d
lea rdx, [rsp + 0x60]
movups xmm0, xmmword [str._alsC]
mov rcx, qword [rcx + 8]
movzx eax, r15w
cmovne ax, r12w
mov qword [rsp + 0x30], r12
movzx eax, ax
mov r9d, 1
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 0x3a]
movaps xmmword [rsp + 0x60], xmm0
call fcn.1400016b0
cmp dword [rdi + 0x48], r12d
cmovne r15d, r12d
xor r8d, r8d
mov edx, r15d
call fcn.140009610
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movaps xmm13, xmmword [rsp + 0x90]
xor eax, eax
movaps xmm12, xmmword [rsp + 0xa0]
movaps xmm11, xmmword [rsp + 0xb0]
movaps xmm10, xmmword [rsp + 0xc0]
movaps xmm9, xmmword [rsp + 0xd0]
movaps xmm8, xmmword [rsp + 0xe0]
movaps xmm7, xmmword [rsp + 0xf0]
movaps xmm6, xmmword [rsp + 0x100]
mov r15, qword [rsp + 0x110]
mov r14, qword [rsp + 0x158]
mov rsi, qword [rsp + 0x150]
mov rbx, qword [rsp + 0x148]
mov rcx, qword [rbp - 0x78]
xor rcx, rsp
call fcn.140011050
add rsp, 0x118
pop r13
pop r12
pop rdi
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400014c0
int3