Function at 0x140009750
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 0x14000983c
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 0x140009c6f
mov edx, dword [rdi + 0x80]
mov ecx, r12d
test edx, edx
je 0x1400098f1
mov r8, qword [rdi + 0x70]
nop dword [rax]
mov eax, ecx
mov r14, qword [r8 + rax*8]
test r14, r14
jne 0x1400098fd
inc ecx
cmp ecx, edx
jb 0x1400098e0
mov r14, r12
test r12, r12
je 0x140009c6f
movss xmm13, dword [0x140033c90]
mov r15d, 0xffffffff
movss xmm11, dword [0x140033c94]
movss xmm12, dword [0x140033ca0]
nop
test r14, r14
je 0x140009dd9
mov rbx, qword [r14 + 0x18]
mov r10, r14
test rbx, rbx
jne 0x140009970
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 0x14000996b
mov rax, qword [rdi + 0x70]
mov r8, qword [rax + rdx*8]
test r8, r8
cmovne rbx, r8
inc edx
test rbx, rbx
je 0x140009950
mov r9d, dword [rsp + 0x44]
mov esi, dword [r10 + 0x10]
mov r14, rbx
mov dword [rsp + 0x4c], esi
test r11, r11
je 0x1400099b4
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x1400099b1
sub eax, 1
je 0x1400099aa
sub eax, 1
je 0x1400099a3
cmp eax, 1
je 0x14000999c
mov esi, r15d
jmp 0x1400099b4
mov esi, 1
jmp 0x1400099b4
mov esi, 2
jmp 0x1400099b4
mov esi, 3
jmp 0x1400099b4
mov esi, r12d
mov r10, qword [rdi + 0x60]
test byte [r10 + 0x19c], 0x80
je 0x1400099f2
cmp esi, 3
jbe 0x1400099d5
cmp dword [rdi + 0x58], 0xff
mov esi, r12d
cmovne esi, dword [rdi + 0x58]
mov dword [rdi + 0x58], esi
cmp r9d, esi
je 0x140009a49
cmp dword [rdi + 0x48], 0
movzx eax, si
cmovne ax, r12w
movzx eax, ax
mov dword [rsp + 0x40], eax
jmp 0x140009a0e
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.1400096a0
cmp dword [0x14003db00], 0
je 0x140009c54
cmp dword [rdi + 0xd4], 0
je 0x140009c54
cmp dword [rdi + 0xb8], 4
jb 0x140009c4d
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.140026e24
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.140026b84
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.140026e24
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 0x140009bdd
cmp esi, dword [rdi + 0xcc]
jne 0x140009bdd
cmp r12d, dword [rdi + 0xd0]
je 0x140009c37
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 0x140009920
jmp 0x140009d4c
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x140009ca6
sub eax, 1
je 0x140009c9e
sub eax, 1
je 0x140009c96
cmp eax, 1
je 0x140009c8e
mov r15d, 0xffffffff
jmp 0x140009ca9
mov r15d, 1
jmp 0x140009ca9
mov r15d, 2
jmp 0x140009ca9
mov r15d, 3
jmp 0x140009ca9
mov r15d, r12d
mov rcx, qword [rdi + 0x60]
test byte [rcx + 0x19c], 0x80
je 0x140009cea
cmp r15d, 3
jbe 0x140009cca
cmp r9d, 0xff
mov r15d, r12d
cmovne r15d, r9d
mov eax, r15d
mov dword [rdi + 0x58], eax
cmp r9d, r15d
je 0x140009d39
cmp dword [rdi + 0x48], r12d
mov edx, r15d
cmovne edx, r12d
xor r8d, r8d
call fcn.14000e950
jmp 0x140009d39
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.1400096a0
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.140011000
add rsp, 0x118
pop r13
pop r12
pop rdi
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400014c0
int3