Function at 0x4caed0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4f72bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.SoftwareBillP_StudiosWinPatrolRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.InitRegStartups
mov esi, str.StarupList___winpatrol.c
call fcn.0047da70
mov edx, dword [0x4f8b7c]
add esp, 4
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x23c]
push ecx
push 0
push edx
push 0
push 0
push 0
push str.SoftwareBillP_StudiosWinPatrolRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4caf46
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
call fcn.00487f80
mov eax, dword [0x505890]
xor ebx, ebx
test eax, eax
jle 0x4cb015
lea esp, [esp]
lea edi, [ebp - 0x238]
call fcn.004c22f0
lea ecx, [ebp - 0x130]
push ecx
call fcn.0047d590
mov edx, dword [ebx*4 + 0x501878]
add esp, 4
push edx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4cafa2
mov esi, dword [eax + 0x288]
mov eax, dword [ebx*4 + 0x501878]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0x4e8d64
lea ecx, [ebp - 0x24]
push 0x20
push ecx
call fcn.00402ee0
add esp, 0x10
lea edx, [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 5
jge 0x4cafeb
push str.Run_Error
lea esi, [ebp - 0x130]
call fcn.0047da70
add esp, 4
push str.Type_
lea esi, [ebp - 0x24]
call fcn.0047da70
add esp, 4
lea eax, [ebp - 0x130]
push eax
push str.SoftwareBillP_StudiosWinPatrolRun
lea ecx, [ebp - 0x24]
mov edx, 0x80000001
call fcn.004c0250
mov eax, dword [0x505890]
inc ebx
add esp, 8
cmp ebx, eax
jl 0x4caf60
xor edi, edi
cmp eax, edi
je 0x4cb043
xor esi, esi
cmp eax, edi
jle 0x4cb03d
mov ecx, dword [esi*4 + 0x501878]
cmp ecx, edi
je 0x4cb038
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x505890]
inc esi
cmp esi, eax
jl 0x4cb021
mov dword [0x505890], edi
push str.SoftwareBillP_StudiosWinPatrolIEHelpers
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.InitRegStartups
mov esi, str.IEHelperList___winpatrol.c
call fcn.0047da70
mov eax, dword [0x4f8b7c]
add esp, 4
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x23c]
push edx
push edi
push eax
push edi
push edi
push edi
push str.SoftwareBillP_StudiosWinPatrolIEHelpers
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4cb09e
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00401110
mov dword [0x505890], eax
test eax, eax
jle 0x4cb206
mov edx, dword [edi*4 + 0x501878]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x4cb169
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x130]
test eax, eax
mov edx, 0x80
mov eax, ecx
jne 0x4cb11b
mov esi, str.Title_Not_Found
sub esi, ecx
jmp 0x4cb0f0
lea ecx, [edx + 0x7fffff7e]
test ecx, ecx
je 0x4cb10f
mov cl, byte [esi + eax]
test cl, cl
je 0x4cb10f
mov byte [eax], cl
inc eax
dec edx
jne 0x4cb0f0
dec eax
push str.Title_Not_Found
jmp 0x4cb13f
test edx, edx
jne 0x4cb114
dec eax
push str.Title_Not_Found
jmp 0x4cb13f
mov esi, ebx
sub esi, ecx
nop
lea ecx, [edx + 0x7fffff7e]
test ecx, ecx
je 0x4cb139
mov cl, byte [esi + eax]
test cl, cl
je 0x4cb139
mov byte [eax], cl
inc eax
dec edx
jne 0x4cb120
jmp 0x4cb13d
test edx, edx
jne 0x4cb13e
dec eax
push ebx
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.Title
lea esi, [ebp - 0x130]
call fcn.0047da70
mov edx, dword [edi*4 + 0x501878]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [edi*4 + 0x501878]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4cb191
mov ecx, dword [edi*4 + 0x501878]
mov esi, dword [eax + 0x288]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0x4e8d64
lea edx, [ebp - 0x24]
push 0x20
push edx
call fcn.00402ee0
add esp, 0x10
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 5
jge 0x4cb1da
push str.IE_Helper_Error
lea esi, [ebp - 0x130]
call fcn.0047da70
add esp, 4
push str.Type_
lea esi, [ebp - 0x24]
call fcn.0047da70
add esp, 4
lea ecx, [ebp - 0x130]
push ecx
push str.SoftwareBillP_StudiosWinPatrolIEHelpers
lea ecx, [ebp - 0x24]
mov edx, 0x80000001
call fcn.004c0250
mov eax, dword [0x505890]
inc edi
add esp, 8
cmp edi, eax
jl 0x4cb0b0
test eax, eax
je 0x4cb236
xor esi, esi
test eax, eax
jle 0x4cb22c
mov edi, edi
mov ecx, dword [esi*4 + 0x501878]
test ecx, ecx
je 0x4cb227
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x505890]
inc esi
cmp esi, eax
jl 0x4cb210
mov dword [0x505890], 0
push str.SoftwareBillP_StudiosWinPatrolTasks
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.InitRegStartups
mov esi, str.GetScheduledTasks___winpatrol.c
call fcn.0047da70
mov ecx, dword [0x4f8b7c]
add esp, 4
lea edx, [ebp - 0x240]
push edx
lea eax, [ebp - 0x23c]
push eax
push 0
push ecx
push 0
push 0
push 0
push str.SoftwareBillP_StudiosWinPatrolTasks
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4cb296
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004c4c00
xor edi, edi
mov dword [0x505890], eax
test eax, eax
jle 0x4cb3be
mov eax, dword [edi*4 + 0x501878]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x4cb359
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x130]
test eax, eax
mov edx, 0x80
mov eax, ecx
jne 0x4cb30c
mov esi, str.Title_Not_Found
sub esi, ecx
lea ecx, [edx + 0x7fffff7e]
test ecx, ecx
je 0x4cb300
mov cl, byte [esi + eax]
test cl, cl
je 0x4cb300
mov byte [eax], cl
inc eax
dec edx
jne 0x4cb2e1
dec eax
push str.Title_Not_Found
jmp 0x4cb32f
test edx, edx
jne 0x4cb305
dec eax
push str.Title_Not_Found
jmp 0x4cb32f
mov esi, ebx
sub esi, ecx
lea ecx, [edx + 0x7fffff7e]
test ecx, ecx
je 0x4cb329
mov cl, byte [esi + eax]
test cl, cl
je 0x4cb329
mov byte [eax], cl
inc eax
dec edx
jne 0x4cb310
jmp 0x4cb32d
test edx, edx
jne 0x4cb32e
dec eax
push ebx
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.Title
lea esi, [ebp - 0x130]
call fcn.0047da70
mov edx, dword [edi*4 + 0x501878]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [edi*4 + 0x501878]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4cb381
mov ecx, dword [edi*4 + 0x501878]
mov esi, dword [eax + 0x288]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0x4e8d64
lea edx, [ebp - 0x24]
push 0x20
push edx
call fcn.00402ee0
lea eax, [ebp - 0x130]
push eax
push str.SoftwareBillP_StudiosWinPatrolTasks
lea ecx, [ebp - 0x24]
mov edx, 0x80000001
call fcn.004c0250
mov eax, dword [0x505890]
inc edi
add esp, 0x18
cmp edi, eax
jl 0x4cb2aa
test eax, eax
je 0x4cb3f6
xor esi, esi
test eax, eax
jle 0x4cb3ec
jmp 0x4cb3d0
mov ecx, dword [esi*4 + 0x501878]
test ecx, ecx
je 0x4cb3e7
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x505890]
inc esi
cmp esi, eax
jl 0x4cb3d0
mov dword [0x505890], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret