Function at 0x1400020a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x14002a010]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rdi, rcx
cmp dword [rcx + 0x48], 6
jne 0x14000211a
mov ecx, 0x10
call fcn.1400064a0
lea rcx, [0x140002910]
mov qword [rax], rcx
mov qword [rax + 8], rdi
mov qword [rsp + 0x40], rax
mov r8d, 0x10
mov rdx, rax
lea rcx, [0x140005450]
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x1400023e8
mov edx, 0x10
xor ecx, ecx
call fcn.140006080
mov ecx, 0x10
call fcn.1400064a0
lea rcx, [0x1400032b0]
mov qword [rax], rcx
mov qword [rax + 8], rdi
mov qword [rsp + 0x40], rax
mov r8d, 0x10
mov rdx, rax
lea rcx, [0x140005450]
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x1400023cc
mov edx, 0x10
xor ecx, ecx
call fcn.140006080
mov ecx, 0x10
call fcn.1400064a0
lea rcx, [0x140003c80]
mov qword [rax], rcx
mov qword [rax + 8], rdi
mov qword [rsp + 0x40], rax
mov r8d, 0x10
mov rdx, rax
lea rcx, [0x140005450]
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x1400023af
mov edx, 0x10
xor ecx, ecx
call fcn.140006080
mov ecx, 0x10
call fcn.1400064a0
lea rcx, [0x140003cb0]
mov qword [rax], rcx
mov qword [rax + 8], rdi
mov qword [rsp + 0x40], rax
mov r8d, 0x10
mov rdx, rax
lea rcx, [0x140005450]
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x140002420
mov edx, 0x10
xor ecx, ecx
call fcn.140006080
xor esi, esi
mov qword [rsp + 0x50], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x14002c050]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000227c
mov dword [rsp + 0x38], esi
mov ebx, 0xffffffff
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, str.DisableAutoScreenOrientation
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002276
cmp dword [rsp + 0x48], 4
cmove ebx, dword [rsp + 0x38]
mov dword [0x14002c850], ebx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x14002c850], 1
je 0x140002330
xor edx, edx
mov r8d, 0xdc
lea rcx, [rsp + 0x60]
call fcn.140007fc0
lea r8, [rsp + 0x60]
mov edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplaySettingsW]
cmp eax, 1
jne 0x1400022c9
mov r8d, dword [rbp - 0x4c]
mov esi, r8d
call fcn.140001120
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SoftwareElantechOtherSetting
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002330
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ScreenOrientationValueToKernel
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x14002d068], 1
je 0x14000238a
mov dword [0x14002d068], 1
mov ecx, 0x10
call fcn.1400064a0
lea r8, [0x1400024c0]
mov qword [rax], r8
mov qword [rax + 8], rdi
mov qword [rsp + 0x40], rax
mov r8d, 0x10
mov rdx, rax
lea rcx, [0x140005450]
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x140002404
mov edx, 0x10
xor ecx, ecx
call fcn.140006080
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140006060
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov dword [rsp + 0x30], eax
lea rdx, [0x140028ea8]
lea rcx, [rsp + 0x30]
call fcn.140008208
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [0x140028ea8]
lea rcx, [rsp + 0x30]
call fcn.140008208
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
lea rdx, [0x140028ea8]
lea rcx, [rsp + 0x38]
call fcn.140008208
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [0x140028ea8]
lea rcx, [rsp + 0x30]
call fcn.140008208
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [0x140028ea8]
lea rcx, [rsp + 0x30]
call fcn.140008208
int3