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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x58]
sub rsp, 0x150
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14002a010]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rdi, rcx
cmp dword [rcx + 0x48], 6
jne 0x140002112
mov ecx, 0x10
call fcn.140006674
lea rcx, [0x140002990]
mov qword [rax], rcx
mov qword [rax + 8], rdi
mov qword [rsp + 0x40], rax
mov r8d, 0x10
mov rdx, rax
lea rcx, [0x1400054f0]
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x1400023e0
mov edx, 0x10
xor ecx, ecx
call fcn.1400061a4
mov ecx, 0x10
call fcn.140006674
lea rcx, [0x140003330]
mov qword [rax], rcx
mov qword [rax + 8], rdi
mov qword [rsp + 0x40], rax
mov r8d, 0x10
mov rdx, rax
lea rcx, [0x1400054f0]
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x1400023c4
mov edx, 0x10
xor ecx, ecx
call fcn.1400061a4
mov ecx, 0x10
call fcn.140006674
lea rcx, [0x140003d10]
mov qword [rax], rcx
mov qword [rax + 8], rdi
mov qword [rsp + 0x40], rax
mov r8d, 0x10
mov rdx, rax
lea rcx, [0x1400054f0]
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x1400023a7
mov edx, 0x10
xor ecx, ecx
call fcn.1400061a4
mov ecx, 0x10
call fcn.140006674
lea rcx, [0x140003d40]
mov qword [rax], rcx
mov qword [rax + 8], rdi
mov qword [rsp + 0x40], rax
mov r8d, 0x10
mov rdx, rax
lea rcx, [0x1400054f0]
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x140002418
mov edx, 0x10
xor ecx, ecx
call fcn.1400061a4
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, [0x14002c060]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002274
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 0x14000226e
cmp dword [rsp + 0x48], 4
cmove ebx, dword [rsp + 0x38]
mov dword [0x14002c860], ebx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x14002c860], 1
je 0x140002328
xor edx, edx
mov r8d, 0xdc
lea rcx, [rsp + 0x60]
call fcn.140007ff0
lea r8, [rsp + 0x60]
mov edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplaySettingsW]
cmp eax, 1
jne 0x1400022c1
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 0x140002328
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 [0x14002d078], 1
je 0x140002382
mov dword [0x14002d078], 1
mov ecx, 0x10
call fcn.140006674
lea r8, [0x1400024d0]
mov qword [rax], r8
mov qword [rax + 8], rdi
mov qword [rsp + 0x40], rax
mov r8d, 0x10
mov rdx, rax
lea rcx, [0x1400054f0]
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x1400023fc
mov edx, 0x10
xor ecx, ecx
call fcn.1400061a4
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140006180
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, [0x140028e48]
lea rcx, [rsp + 0x30]
call fcn.140008238
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [0x140028e48]
lea rcx, [rsp + 0x30]
call fcn.140008238
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
lea rdx, [0x140028e48]
lea rcx, [rsp + 0x38]
call fcn.140008238
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [0x140028e48]
lea rcx, [rsp + 0x30]
call fcn.140008238
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [0x140028e48]
lea rcx, [rsp + 0x30]
call fcn.140008238
int3