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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
push ebx
push esi
push edi
lea eax, [esp + 0xc0]
push eax
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x14]
push ecx
push str.DemoForge_Mirage_Driver
xor ebx, ebx
push str.Mirage_Driver
mov dword [esp + 0x20], ebx
call fcn.00406590
add esp, 0x10
test eax, eax
jne 0x406834
push str.DemoForge_Mirage_Driver
push str.Mirage_Driver
push str..VideoDriver.cpp:_tNo__s_or__s_found._n
push ebx
push 0x44ff14
call fcn.00401e70
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea edx, [esp + 0x20]
push edx
xor eax, eax
push 0xffffffffffffffff
mov ecx, 0x27
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
push ebx
mov word [esp + 0x50], 0x9c
mov word [esp + 0x52], bx
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
mov eax, dword [ebp + 0xc]
cmp eax, ebx
mov dword [esp + 0x48], 0x1c0000
je 0x406897
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
sub esi, ecx
sub eax, edx
mov dword [esp + 0x48], 0x1c0020
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xe4]
push ecx
lea edx, [esp + 0xc8]
push edx
push eax
push str..VideoDriver.cpp:_tDevNum:_d_nName:_s_nString:_s_n_n
push 9
push 0x44ff14
mov byte [esp + 0x38], bl
call fcn.00401e70
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
push ecx
push edx
push str..VideoDriver.cpp:_tScreen_Top_Left_Position:___i___i__n
push 9
push 0x44ff14
call fcn.00401e70
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xb8]
push eax
push ecx
push str..VideoDriver.cpp:_tScreen_Dimensions:___i___i__n
push 9
push 0x44ff14
call fcn.00401e70
mov edx, dword [esp + 0xc8]
add esp, 0x40
push edx
push str..VideoDriver.cpp:_tScreen_Color_depth:__i_n
push 9
push 0x44ff14
call fcn.00401e70
push str.dfmirage
call fcn.00406700
mov esi, eax
add esp, 0x14
cmp esi, ebx
je 0x4069dc
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.Screen.ForcedBpp
push esi
call edi
push str.Pointer.Enabled
push esi
call edi
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
neg eax
push ebx
sbb eax, eax
push str.Cap.DfbBackingMode
and eax, 3
push esi
mov dword [esp + 0x24], eax
call edi
test eax, eax
je 0x40697c
mov edx, dword [esp + 0xc]
push edx
push str..VideoDriver.cpp:_tCant_set__Cap.DfbBackingMode__to__d_n
jmp 0x4069ce
push 4
lea eax, [esp + 0x10]
push eax
push 4
push ebx
push str.Order.BltCopyBits.Enabled
push esi
mov dword [esp + 0x24], 1
call edi
test eax, eax
je 0x4069a6
mov ecx, dword [esp + 0xc]
push ecx
push str..VideoDriver.cpp:_tCant_set_Order.BltCopyBits.Enabled_to__d_n
jmp 0x4069ce
push 4
lea edx, [esp + 0x10]
push edx
push 4
push ebx
push str.Attach.ToDesktop
push esi
mov dword [esp + 0x24], 1
call edi
test eax, eax
je 0x4069e7
mov eax, dword [esp + 0xc]
push eax
push str..VideoDriver.cpp:_tCant_set_Attach.ToDesktop_to__d_n
push ebx
push 0x44ff14
call fcn.00401e70
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x10]
push ecx
push str.ChangeDisplaySettingsExA
push str.User32.DLL
mov dword [esp + 0x1c], ebx
call fcn.004061f0
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x4069dc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x406a3b
push 0x2000000
push ebx
push ebx
call dword [sym.imp.USER32.dll_OpenInputDesktop]
mov edi, eax
cmp edi, ebx
je 0x406a3f
push edi
call dword [sym.imp.USER32.dll_SetThreadDesktop]
jmp 0x406a3f
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x88], 0x18
jne 0x406a54
mov dword [esp + 0x88], 0x20
push ebx
push 1
push ebx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0xd4]
push eax
call dword [esp + 0x24]
cmp eax, ebx
je 0x406a89
push eax
lea ecx, [esp + 0xc8]
push ecx
push str..VideoDriver.cpp:_tChangeDisplaySettingsEx_failed_on_device___s__with_status:_0x_x_n
push ebx
push 0x44ff14
call fcn.00401e70
add esp, 0x14
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0xc4]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x406a98
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_SetThreadDesktop]
push edi
call dword [sym.imp.USER32.dll_CloseDesktop]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8