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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463618
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x4826d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareAutoOff
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x418af7
mov eax, dword [esi + 0x90]
mov edi, dword [ebp - 0x18]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push 0x4686b4
push edi
mov dword [ebp - 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esi + 0x94]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push 0x4686bc
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esi + 0x98]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.xdlg
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esi + 0x9c]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.ydlg
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esi + 0xa0]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.tmBkColor
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor eax, eax
cmp byte [esi + 0xa4], al
push 4
setne al
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push 0x4686f0
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor eax, eax
cmp byte [esi + 0xa5], al
push 4
setne al
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.Clock
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor eax, eax
cmp byte [esi + 0xa6], al
push 4
setne al
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.ShowDayOfWeek
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor eax, eax
cmp byte [esi + 0xa7], al
push 4
setne al
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.ShowSeconds
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [esi + 0xa8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push str.ClockFont
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [ebp - 0x10]
push 4
mov eax, dword [esi + 0xac]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.ClockFontSize
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esi + 0xb0]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.Opacity
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.Date
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esi + 0x30]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.Type
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esi + 4]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.Hour1
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esi + 8]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.Min1
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esi + 0xc]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.Sec1
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.AMPM
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
movzx eax, word [esi + 0x18]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.Hour2
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx eax, word [esi + 0x1a]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.Min2
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx eax, word [esi + 0x1c]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.Sec2
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esi + 0x20]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.Hour3
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esi + 0x24]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.Min3
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esi + 0x28]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.Hour4
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push 4
push eax
push 4
push 0
push str.Min4
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor eax, eax
cmp byte [esi + 0xb5], al
push 4
setne al
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.TimerWindow
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor eax, eax
cmp byte [esi + 0xb4], al
push 4
setne al
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.HotKey
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor eax, eax
cmp byte [esi + 0x34], al
push 4
setne al
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.Force
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor eax, eax
cmp byte [esi + 0x35], al
push 4
setne al
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.ForceIfHung
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esi + 0x38]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.Mode
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor eax, eax
cmp byte [esi + 0x3c], al
push 4
setne al
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.Confirm
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push 4
push eax
push 4
push 0
push str.ConfirmTime
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor eax, eax
cmp byte [esi + 0xb6], al
push 4
setne al
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.UseToast
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor eax, eax
cmp byte [esi + 0xb7], al
push 4
setne al
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.TranslucentToast
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor eax, eax
cmp byte [esi + 0xb8], al
push 4
setne al
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.NotIdleWorking
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esi + 0x44]
mov dword [ebp - 0x20], eax
cmp dword [eax - 0xc], 0
jne 0x4187d7
push str.Lang
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x4187f9
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x20]
push 1
push 0
push str.Lang
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esi + 0x44]
test eax, eax
je 0x418b0a
mov ecx, dword [esi + 0x48]
mov dword [ebp - 0x18], ecx
nop word [eax + eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x418836
test dx, dx
je 0x418832
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x418836
add ecx, 4
add eax, 4
test dx, dx
jne 0x418810
xor eax, eax
jmp 0x41883b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41884d
push str.SetLang
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x418871
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x18]
push 1
push 0
push str.SetLang
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esi + 0x4c]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x50]
push 8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
push 0xb
push 0
push str.Update
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esi + 0x68]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.AlarmSound
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [esi + 0x68], 0xffffffff
jne 0x4188e5
mov eax, dword [esi + 0x6c]
mov dword [ebp - 0x20], eax
cmp dword [eax - 0xc], 0
je 0x4188e5
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x20]
push 1
push 0
push str.SoundFile
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4188f1
push str.SoundFile
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor eax, eax
cmp byte [esi + 0x70], al
push 4
setne al
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.ShowStartup
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp byte [ebp + 8], 0
je 0x418aec
mov eax, dword [esi + 0x58]
mov dword [ebp + 8], eax
test eax, eax
je 0x418a59
shl eax, 4
push eax
mov dword [ebp - 0x28], eax
call fcn.0044437b
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
je 0x418a65
mov edx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [ebp + 8], eax
jbe 0x418a36
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
nop dword [eax]
cmp eax, dword [esi + 0x58]
jae 0x418b14
mov esi, dword [esi + 0x54]
add esi, ecx
mov eax, dword [esi]
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x34], eax
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [edx], xmm0
add edx, 0x10
mov dword [ebp - 0x24], edx
call fcn.00403330
mov ecx, eax
test ecx, ecx
je 0x418b0a
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push str.TaskParam_d
push eax
call fcn.00408f60
mov esi, dword [esi + 0x10]
add esp, 0xc
cmp dword [esi - 0xc], 0
jne 0x4189dc
mov esi, dword [ebp - 0x14]
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x4189fb
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
mov esi, dword [ebp - 0x14]
push 1
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x418a17
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
inc eax
mov esi, dword [ebp - 0x10]
add ecx, 0x14
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
cmp eax, dword [ebp + 8]
jb 0x418960
push dword [ebp - 0x28]
push dword [ebp - 0x20]
push 3
push 0
push str.Task2
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x20]
call fcn.00444384
add esp, 4
jmp 0x418a65
push str.Task2
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.Task
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
cmp eax, dword [esi + 0x64]
jae 0x418ae9
nop dword [eax]
call fcn.00403330
mov ecx, eax
test ecx, ecx
je 0x418b0a
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push str.TaskParam_d
push eax
call fcn.00408f60
mov esi, dword [ebp - 0x20]
add esp, 0xc
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x418ad7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [esi + 0x64]
jb 0x418a80
mov eax, dword [ebp + 8]
mov dword [esi + 0x64], eax
test edi, edi
je 0x418af7
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004024f0
push 0x80070057
call fcn.004024f0
int3