Function at 0x410deb
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
push dword [edi + 8]
mov dword [ebp - 0x10], eax
call fcn.00415920
push eax
push dword [ebp + 0x14]
call fcn.00415920
push eax
push dword [ebp + 0x10]
call fcn.00415ef0
push eax
push dword [edi + 0x50]
push 0x20000173
push 2
call fcn.004073ac
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004037a3
cmp dword [ebp - 0xc], 5
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov ebx, dword [ebp + 0xc]
cmovge eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
je 0x410e9b
push dword [ebp + 0x10]
push str.Resume
push ebx
call fcn.00404e49
mov esi, eax
test esi, esi
jns 0x410e78
push str.Failed_to_write_Resume_value.
jmp 0x410ffa
cmp dword [ebp + 0x10], 3
jne 0x410e9b
push 1
push str.Installed
push ebx
call fcn.00404e49
mov esi, eax
test esi, esi
jns 0x410ea1
push str.Failed_to_write_Installed_value.
jmp 0x410ffa
cmp dword [ebp + 0x10], 1
je 0x410eab
cmp dword [ebp + 0x14], 0
je 0x410f42
cmp dword [edi + 8], 0
jne 0x410f42
push str.burn.runonce
push dword [edi + 0x54]
lea eax, [ebp - 8]
push str.__ls____ls
push eax
call fcn.00402074
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x410ede
push str.Failed_to_format_resume_command_line_for_RunOnce.
jmp 0x410ffa
lea eax, [ebp - 4]
push eax
push 0x20006
push dword [ebp + 8]
push dword [edi + 0x4c]
call fcn.0040459c
mov esi, eax
test esi, esi
jns 0x410f02
push str.Failed_to_create_run_key.
jmp 0x410ffa
push dword [ebp - 8]
push dword [edi + 0x10]
push dword [ebp - 4]
call fcn.00404e97
mov esi, eax
test esi, esi
jns 0x410f20
push str.Failed_to_write_run_key_value.
jmp 0x410ffa
push dword [edi + 0x58]
push str.BundleResumeCommandLine
push ebx
call fcn.00404e97
mov esi, eax
test esi, esi
jns 0x411002
push str.Failed_to_write_resume_command_line_value.
jmp 0x410ffa
lea eax, [ebp - 4]
push eax
push 0x20006
push dword [ebp + 8]
push dword [edi + 0x4c]
call fcn.0040494e
mov esi, eax
cmp esi, 0x80070002
je 0x410faf
cmp esi, 0x80070003
je 0x410faf
push dword [edi + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
cmp eax, 2
cmove eax, ecx
test eax, eax
je 0x410fb1
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x4d7
push str.registration.cpp
call fcn.00403a8b
push str.Failed_to_delete_run_key_value.
jmp 0x410ffa
xor esi, esi
test ebx, ebx
je 0x411002
push str.BundleResumeCommandLine
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
cmp eax, 2
cmove eax, ecx
test eax, eax
je 0x411002
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x4e1
push str.registration.cpp
call fcn.00403a8b
push str.Failed_to_delete_resume_command_line_value.
push esi
call fcn.00430fd9
pop ecx
pop ecx
cmp dword [ebp - 8], 0
je 0x411010
push dword [ebp - 8]
call fcn.004027ab
cmp dword [ebp - 4], 0
je 0x41101f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10