Function at 0x18002db50
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x2d8
mov dword [rsp + 0xf0], 0
lea r9, [rsp + 0x100]
lea r8, [rsp + 0xf0]
lea rdx, str.DemoForge_Mirage_Driver
lea rcx, str.Mirage_Driver
call fcn.18002d930
test eax, eax
jne 0x18002db9e
xor eax, eax
jmp 0x18002dea9
mov r8d, 0x9c
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.18004eaa0
mov r11d, 0x9c
mov word [rsp + 0x74], r11w
xor eax, eax
mov word [rsp + 0x76], ax
lea r8, [rsp + 0x50]
mov edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplaySettingsA]
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x78], 0x1c0000
cmp qword [rsp + 0x2f0], 0
je 0x18002dc54
mov eax, dword [rsp + 0x78]
or eax, 0x20
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0x2f0]
mov eax, dword [rax]
mov dword [rsp + 0x7c], eax
mov rax, qword [rsp + 0x2f0]
mov eax, dword [rax + 4]
mov dword [rsp + 0x80], eax
mov rdx, qword [rsp + 0x2f0]
mov rax, qword [rsp + 0x2f0]
mov ecx, dword [rax]
mov eax, dword [rdx + 8]
sub eax, ecx
mov dword [rsp + 0xbc], eax
mov rdx, qword [rsp + 0x2f0]
mov rax, qword [rsp + 0x2f0]
mov ecx, dword [rax + 4]
mov eax, dword [rdx + 0xc]
sub eax, ecx
mov dword [rsp + 0xc0], eax
mov byte [rsp + 0x50], 0
lea rcx, str.dfmirage
call fcn.18002da20
mov qword [rsp + 0x2b8], rax
cmp qword [rsp + 0x2b8], 0
jne 0x18002dc7f
xor eax, eax
jmp 0x18002dea9
lea rdx, str.Screen.ForcedBpp
mov rcx, qword [rsp + 0x2b8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea rdx, str.Pointer.Enabled
mov rcx, qword [rsp + 0x2b8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp dword [rsp + 0x2e8], 0
je 0x18002dcc0
mov dword [rsp + 0x2c0], 3
jmp 0x18002dccb
mov dword [rsp + 0x2c0], 0
mov eax, dword [rsp + 0x2c0]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Cap.DfbBackingMode
mov rcx, qword [rsp + 0x2b8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x18002dd11
xor eax, eax
jmp 0x18002dea9
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Order.BltCopyBits.Enabled
mov rcx, qword [rsp + 0x2b8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x18002dd54
xor eax, eax
jmp 0x18002dea9
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Attach.ToDesktop
mov rcx, qword [rsp + 0x2b8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x18002dd97
xor eax, eax
jmp 0x18002dea9
mov qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
lea rdx, str.ChangeDisplaySettingsExA
lea rcx, str.User32.DLL
call fcn.18002e540
mov qword [rsp + 0xf8], rax
cmp qword [rsp + 0xf8], 0
jne 0x18002ddd2
xor eax, eax
jmp 0x18002dea9
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetThreadDesktop]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x18002de1e
mov r8d, 0x2000000
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenInputDesktop]
mov qword [rsp + 0x2b0], rax
cmp qword [rsp + 0x2b0], 0
je 0x18002de1e
mov rcx, qword [rsp + 0x2b0]
call qword [sym.imp.USER32.dll_SetThreadDesktop]
cmp dword [rsp + 0xb8], 0x18
jne 0x18002de33
mov dword [rsp + 0xb8], 0x20
mov qword [rsp + 0x20], 0
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x104]
call qword [rsp + 0x30]
mov dword [rsp + 0x48], eax
lea rdx, [rsp + 0x104]
mov rcx, qword [rsp + 0x2e0]
call fcn.180050bb0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_SetThreadDesktop]
mov rcx, qword [rsp + 0x2b0]
call qword [sym.imp.USER32.dll_CloseDesktop]
mov rcx, qword [rsp + 0x2b8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
add rsp, 0x2d8
ret