Function at 0x402470
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x148]
push esi
push edi
lea eax, [esp + 0x14]
push eax
push ebx
push 0x80000001
mov dword [esp + 0x1c], 4
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 0x100
mov dword [esp + 0x18], 0xc
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp + 0x154]
lea ecx, [esp + 0x18]
push ecx
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push str.QuickEdit
push eax
call esi
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jne 0x402513
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x34]
push edx
push eax
push 0
push str.QuickEdit
push ecx
call edi
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push str.ScreenColors
push edx
call esi
test eax, eax
jne 0x402551
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x4c]
push ecx
push edx
push 0
push str.ScreenColors
push eax
call edi
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push str.PopupColors
push ecx
call esi
test eax, eax
jne 0x40258f
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
push ecx
push 0
push str.PopupColors
push edx
call edi
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push str.HistoryNoDup
push eax
call esi
test eax, eax
jne 0x4025cd
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x44]
push edx
push eax
push 0
push str.HistoryNoDup
push ecx
call edi
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push str.HistoryBufferSize
push edx
call esi
test eax, eax
jne 0x40260b
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
push ecx
push edx
push 0
push str.HistoryBufferSize
push eax
call edi
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push str.NumberOfHistoryBuffers
push ecx
call esi
test eax, eax
jne 0x402649
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push eax
push ecx
push 0
push str.NumberOfHistoryBuffers
push edx
call edi
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push str.CursorSize
push eax
call esi
test eax, eax
jne 0x402687
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x30]
push edx
push eax
push 0
push str.CursorSize
push ecx
call edi
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push str.FontFamily
push edx
call esi
test eax, eax
jne 0x4026c5
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x38]
push ecx
push edx
push 0
push str.FontFamily
push eax
call edi
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push str.FontSize
push ecx
call esi
test eax, eax
jne 0x402703
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x40]
push eax
push ecx
push 0
push str.FontSize
push edx
call edi
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push str.FontWeight
push eax
call esi
test eax, eax
jne 0x402741
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x48]
push edx
push eax
push 0
push str.FontWeight
push ecx
call edi
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push str.FaceName
push edx
call esi
test eax, eax
jne 0x40277f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x50]
push ecx
push edx
push 0
push str.FaceName
push eax
call edi
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
push ebx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
add esp, 0x140
ret