Function at 0x40f1ba
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push dword [edi + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
call fcn.00413d0c
push eax
push dword [ebp + 0x14]
call fcn.00413d0c
push eax
push dword [ebp + 0x10]
call fcn.004143c4
push eax
push dword [edi + 0x50]
push 0x20000173
push 2
call fcn.0040563d
add esp, 0x18
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00443349
cmp dword [ebp - 0x10], 5
jge 0x40f222
mov dword [ebp - 0xc], str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x40f26a
push dword [ebp + 0x10]
push str.Resume
push ebx
call fcn.00440d39
mov esi, eax
test esi, esi
jns 0x40f247
push str.Failed_to_write_Resume_value.
jmp 0x40f3cb
cmp dword [ebp + 0x10], 3
jne 0x40f26a
push 1
push str.Installed
push ebx
call fcn.00440d39
mov esi, eax
test esi, esi
jns 0x40f270
push str.Failed_to_write_Installed_value.
jmp 0x40f3cb
cmp dword [ebp + 0x10], 1
je 0x40f27a
cmp dword [ebp + 0x14], 0
je 0x40f311
cmp dword [edi + 8], 0
jne 0x40f311
push str.burn.runonce
push dword [edi + 0x54]
lea eax, [ebp - 8]
push str.__ls____ls
push eax
call fcn.00402022
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x40f2ad
push str.Failed_to_format_resume_command_line_for_RunOnce.
jmp 0x40f3cb
lea eax, [ebp - 4]
push eax
push 0x20006
push dword [ebp - 0xc]
push dword [edi + 0x4c]
call fcn.00440458
mov esi, eax
test esi, esi
jns 0x40f2d1
push str.Failed_to_create_run_key.
jmp 0x40f3cb
push dword [ebp - 8]
push dword [edi + 0x10]
push dword [ebp - 4]
call fcn.00440d87
mov esi, eax
test esi, esi
jns 0x40f2ef
push str.Failed_to_write_run_key_value.
jmp 0x40f3cb
push dword [edi + 0x58]
push str.BundleResumeCommandLine
push ebx
call fcn.00440d87
mov esi, eax
test esi, esi
jns 0x40f3d3
push str.Failed_to_write_resume_command_line_value.
jmp 0x40f3cb
lea eax, [ebp - 4]
push eax
push 0x20006
push dword [ebp - 0xc]
push dword [edi + 0x4c]
call fcn.00440823
mov esi, eax
cmp esi, 0x80070002
je 0x40f37f
cmp esi, 0x80070003
je 0x40f37f
push dword [edi + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [eax - 2]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x40f381
test ecx, ecx
jg 0x40f356
mov esi, ecx
jmp 0x40f35f
movzx esi, cx
or esi, 0x80070000
test esi, esi
js 0x40f368
mov esi, 0x80004005
push esi
push 0x4e7
push str.c:_agent_work66_s_src_burnengine_registration.cpp
call fcn.004038ba
push str.Failed_to_delete_run_key_value.
jmp 0x40f3cb
xor esi, esi
test ebx, ebx
je 0x40f3d3
push str.BundleResumeCommandLine
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [eax - 2]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x40f3d3
test ecx, ecx
jg 0x40f3a4
mov esi, ecx
jmp 0x40f3ad
movzx esi, cx
or esi, 0x80070000
test esi, esi
js 0x40f3b6
mov esi, 0x80004005
push esi
push 0x4f1
push str.c:_agent_work66_s_src_burnengine_registration.cpp
call fcn.004038ba
push str.Failed_to_delete_resume_command_line_value.
push esi
call fcn.0043fb09
pop ecx
pop ecx
cmp dword [ebp - 8], 0
je 0x40f3e1
push dword [ebp - 8]
call fcn.00402762
cmp dword [ebp - 4], 0
je 0x40f3f0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10