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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4107ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x57c
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0x14
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 0x27], 0
mov byte [ebp - 0x26], 0
mov byte [ebp - 0x25], 0
mov byte [ebp - 0x24], 0
mov byte [ebp - 0x23], 5
mov byte [ebp - 0x44], 0
mov byte [ebp - 0x43], 0
mov byte [ebp - 0x42], 0
mov byte [ebp - 0x41], 0
mov byte [ebp - 0x40], 0
mov byte [ebp - 0x3f], 1
cmp dword [0x417ae8], 2
jne 0x404bed
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x404b80
push 0x4148b8
call fcn.00409a98
add esp, 4
jmp 0x404e39
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x404bb6
push str.FAILURE:_Failed_at_AllocateAndInitializeSid
call fcn.00409a98
add esp, 4
jmp 0x404e39
cmp dword [ebp - 0x38], 0
jne 0x404bed
mov eax, 0x400
call fcn.0040c070
mov dword [ebp - 0x588], esp
mov edx, dword [ebp - 0x588]
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0
jne 0x404bed
push str.FAILURE:_Failed_at__alloca_for_paclKey
call fcn.00409a98
add esp, 4
jmp 0x404e39
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.004049bc
add esp, 0x10
test eax, eax
je 0x404e39
call fcn.00409b5e
push eax
lea ecx, [ebp - 0x55c]
call fcn.0040101a
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x55c]
call fcn.00401200
test eax, eax
jne 0x404c5e
call fcn.00409b5e
push eax
push 0x414938
call fcn.00409a98
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x55c]
call fcn.004010d9
jmp 0x404e39
lea ecx, [ebp - 0x550]
push ecx
lea ecx, [ebp - 0x55c]
call fcn.00402ad0
push eax
call fcn.00403e36
add esp, 8
cmp eax, 1
jne 0x404e27
mov dword [ebp - 0x568], 0x14
mov dword [ebp - 0x564], 0
lea edx, [ebp - 0x570]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0x54c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404e27
lea ecx, [ebp - 0x568]
push ecx
lea edx, [ebp - 0x584]
push edx
push 0
push 0
push 0x41495c
mov eax, dword [ebp - 0x570]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404e1a
lea ecx, [ebp - 0x56c]
push ecx
lea edx, [ebp - 0x560]
push edx
push 0
push 0xf003f
push 0
push str.REG_SZ
push 0
lea eax, [ebp - 0x54c]
push eax
push 0x80000005
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404e1a
push 4
lea ecx, [ebp - 0x578]
push ecx
push 4
push 0
push str.DefaultSettings.BitsPerPel
mov edx, dword [ebp - 0x560]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [ebp - 0x584]
push eax
push 4
push 0
push str.DefaultSettings.Flags
mov ecx, dword [ebp - 0x560]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [ebp - 0x574]
push edx
push 4
push 0
push str.DefaultSettings.VRefresh
mov eax, dword [ebp - 0x560]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [ebp - 0x564]
push ecx
push 4
push 0
push str.DefaultSettings.XPanning
mov edx, dword [ebp - 0x560]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [ebp - 0x580]
push eax
push 4
push 0
push str.DefaultSettings.XResolution
mov ecx, dword [ebp - 0x560]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [ebp - 0x564]
push edx
push 4
push 0
push str.DefaultSettings.YPanning
mov eax, dword [ebp - 0x560]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [ebp - 0x57c]
push ecx
push 4
push 0
push str.DefaultSettings.YResolution
mov edx, dword [ebp - 0x560]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x560]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.DefaultMode
mov ecx, dword [ebp - 0x570]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [ebp - 0x570]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x55c]
call fcn.004010d9
cmp dword [ebp - 0x3c], 0
je 0x404e49
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x48], 0
je 0x404e59
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
lea esp, [ebp - 0x588]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret