Function at 0x409bba
Capabilities:
Delete registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x48054f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a9c04]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00409007
mov ebx, str.UserFields
mov ebp, eax
push ebx
xor edi, edi
push ebp
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
xor eax, eax
cmp dword [esi], edi
push edi
setne al
push 0x20006
push eax
push edi
push edi
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [esi + 0x354]
push edi
mov dword [esp + 0x18], edi
call fcn.00403c93
mov ebx, eax
cmp ebx, edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
je 0x409c6e
push dword [ebx + 4]
call fcn.0044fc30
pop ecx
inc eax
push eax
push dword [ebx + 4]
push 1
push 0
push dword [ebx]
push dword [esp + 0x2c]
call edi
inc dword [esp + 0x14]
push dword [esp + 0x14]
lea ecx, [esi + 0x354]
call fcn.00403c93
mov ebx, eax
test ebx, ebx
jne 0x409c3b
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
pop ebx
push ebx
lea eax, [esi + 8]
push eax
push ebx
push 0
push 0x48862c
push ebp
call edi
push ebx
lea eax, [esi + 0xc]
push eax
push ebx
push 0
push str.Position
push ebp
call edi
push ebx
lea eax, [esi + 0x10]
push eax
push ebx
push 0
push str.Monitor
push ebp
call edi
push ebx
lea eax, [esi + 0x14]
push eax
push ebx
push 0
push str.TaskbarAdjust
push ebp
call edi
push ebx
lea eax, [esi + 0x18]
push eax
push ebx
push 0
push str.TextWidth2
push ebp
call edi
lea eax, [esi + 0x238]
push eax
call fcn.0044fc30
pop ecx
inc eax
push eax
lea eax, [esi + 0x238]
push eax
push 1
push 0
push str.OutputFile
push ebp
call edi
lea eax, [esi + 0x130]
push eax
call fcn.0044fc30
pop ecx
inc eax
push eax
lea eax, [esi + 0x130]
push eax
push 1
push 0
push str.Database
push ebp
call edi
push ebx
lea eax, [esi + 0x234]
push eax
push 1
push 0
push str.DatabaseMRU
push ebp
call edi
lea eax, [esi + 0x1c]
push eax
call fcn.0044fc30
pop ecx
inc eax
push eax
lea eax, [esi + 0x1c]
push eax
push 1
push 0
push str.Wallpaper
push ebp
call edi
push ebx
lea eax, [esi + 0x120]
push eax
push ebx
push 0
push str.WallpaperPos
push ebp
call edi
push ebx
lea eax, [esi + 0x124]
push eax
push ebx
push 0
push str.WallpaperUser
push ebp
call edi
push ebx
lea eax, [esi + 0x128]
push eax
push ebx
push 0
push str.MaxColorBits
push ebp
call edi
push ebx
lea eax, [esi + 0x33c]
push eax
push ebx
push 0
push str.ErrorNotify
push ebp
call edi
push ebx
lea eax, [esi + 0x340]
push eax
push ebx
push 0
push str.UserScreen
push ebp
call edi
push ebx
lea eax, [esi + 0x344]
push eax
push ebx
push 0
push str.LogonScreen
push ebp
call edi
push ebx
lea eax, [esi + 0x348]
push eax
push ebx
push 0
push str.TerminalScreen
push ebp
call edi
push ebx
lea eax, [esi + 0x12c]
push eax
push ebx
push 0
push str.OpaqueTextBox
push ebp
call edi
push dword [esi + 0x350]
push dword [esi + 0x34c]
push 1
push 0
push 0x488c0c
push ebp
call edi
test eax, eax
je 0x409e1c
push ebp
mov ecx, esi
call fcn.00409070
push str.Error_saving_settings_to_registry
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10
push dword [esp + 0x3c]
call fcn.0040b551
add esp, 0x10
xor al, al
jmp 0x409ec0
mov eax, dword [esi]
mov bl, 1
test eax, eax
je 0x409e76
push eax
push ebp
call fcn.00412a4e
mov bl, al
pop ecx
pop ecx
test bl, bl
jne 0x409e76
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 5
jne 0x409e5e
push eax
call fcn.0040b381
push eax
push dword [esi]
push str.Error_saving_settings_to__s:_n_s_n_nIf_the_file_is_intentionally_marked_read_only_you_can_use_the__i_option_to_import_it.
push 0x10
push dword [esp + 0x44]
call fcn.0040b503
add esp, 0x18
jmp 0x409e76
push dword [esi]
push str.Error_saving_settings_to__s:
call edi
push eax
push 0x10
push dword [esp + 0x40]
call fcn.0040b551
add esp, 0x14
push ebp
mov ecx, esi
call fcn.00409070
test bl, bl
je 0x409ebe
mov edi, dword [esi + 4]
test edi, edi
je 0x409e97
mov ecx, edi
call fcn.00409097
push edi
call fcn.004191bf
pop ecx
push 0x2298
call fcn.00419190
pop ecx
mov dword [esp + 0x30], eax
and dword [esp + 0x28], 0
test eax, eax
je 0x409eb9
push esi
mov ecx, eax
call fcn.00409728
jmp 0x409ebb
xor eax, eax
mov dword [esi + 4], eax
mov al, bl
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4