Function at 0x49a270
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4c32cc]
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.0047fb10
mov edx, dword [0x4c6448]
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 0x49a2e6
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
call fcn.00488040
mov eax, dword [0x4cd38c]
xor ebx, ebx
test eax, eax
jle 0x49a3b9
lea esp, [esp]
lea esi, [ebp - 0x238]
mov edi, ebx
call fcn.0048fb30
lea ecx, [ebp - 0x130]
push ecx
mov edi, esi
call fcn.0047f640
mov edx, dword [ebx*4 + 0x4cd390]
add esp, 4
push edx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x49a346
mov esi, dword [eax + 0x288]
mov eax, dword [ebx*4 + 0x4cd390]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0x4b7c94
lea ecx, [ebp - 0x24]
push 0x20
push ecx
call fcn.00402830
add esp, 0x10
lea edx, [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 5
jge 0x49a38f
push str.Run_Error
lea esi, [ebp - 0x130]
call fcn.0047fb10
add esp, 4
push str.Type_
lea esi, [ebp - 0x24]
call fcn.0047fb10
add esp, 4
lea eax, [ebp - 0x130]
push eax
push str.SoftwareBillP_StudiosWinPatrolRun
lea ecx, [ebp - 0x24]
mov edx, 0x80000001
call fcn.0048e390
mov eax, dword [0x4cd38c]
inc ebx
add esp, 8
cmp ebx, eax
jl 0x49a300
xor edi, edi
cmp eax, edi
je 0x49a3e7
xor esi, esi
cmp eax, edi
jle 0x49a3e1
mov ecx, dword [esi*4 + 0x4cd390]
cmp ecx, edi
je 0x49a3dc
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x4cd38c]
inc esi
cmp esi, eax
jl 0x49a3c5
mov dword [0x4cd38c], 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.0047fb10
mov eax, dword [0x4c6448]
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 0x49a442
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00401060
mov dword [0x4cd38c], eax
test eax, eax
jle 0x49a593
mov edx, dword [edi*4 + 0x4cd390]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x49a4f6
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x130]
test eax, eax
mov edx, 0x80
mov eax, ecx
jne 0x49a4bb
mov esi, str.Title_Not_Found
sub esi, ecx
jmp 0x49a490
lea ecx, [edx + 0x7fffff7e]
test ecx, ecx
je 0x49a4af
mov cl, byte [esi + eax]
test cl, cl
je 0x49a4af
mov byte [eax], cl
inc eax
dec edx
jne 0x49a490
dec eax
push str.Title_Not_Found
jmp 0x49a4df
test edx, edx
jne 0x49a4b4
dec eax
push str.Title_Not_Found
jmp 0x49a4df
mov esi, ebx
sub esi, ecx
nop
lea ecx, [edx + 0x7fffff7e]
test ecx, ecx
je 0x49a4d9
mov cl, byte [esi + eax]
test cl, cl
je 0x49a4d9
mov byte [eax], cl
inc eax
dec edx
jne 0x49a4c0
jmp 0x49a4dd
test edx, edx
jne 0x49a4de
dec eax
push ebx
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [edi*4 + 0x4cd390]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [edi*4 + 0x4cd390]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x49a51e
mov ecx, dword [edi*4 + 0x4cd390]
mov esi, dword [eax + 0x288]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0x4b7c94
lea edx, [ebp - 0x24]
push 0x20
push edx
call fcn.00402830
add esp, 0x10
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 5
jge 0x49a567
push str.IE_Helper_Error
lea esi, [ebp - 0x130]
call fcn.0047fb10
add esp, 4
push str.Type_
lea esi, [ebp - 0x24]
call fcn.0047fb10
add esp, 4
lea ecx, [ebp - 0x130]
push ecx
push str.SoftwareBillP_StudiosWinPatrolIEHelpers
lea ecx, [ebp - 0x24]
mov edx, 0x80000001
call fcn.0048e390
mov eax, dword [0x4cd38c]
inc edi
add esp, 8
cmp edi, eax
jl 0x49a454
test eax, eax
je 0x49a5c6
xor esi, esi
test eax, eax
jle 0x49a5bc
jmp 0x49a5a0
mov ecx, dword [esi*4 + 0x4cd390]
test ecx, ecx
je 0x49a5b7
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x4cd38c]
inc esi
cmp esi, eax
jl 0x49a5a0
mov dword [0x4cd38c], 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.0047fb10
mov ecx, dword [0x4c6448]
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 0x49a626
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00490a70
xor edi, edi
mov dword [0x4cd38c], eax
test eax, eax
jle 0x49a73b
mov eax, dword [edi*4 + 0x4cd390]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x49a6d6
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x130]
test eax, eax
mov edx, 0x80
mov eax, ecx
jne 0x49a69c
mov esi, str.Title_Not_Found
sub esi, ecx
lea ecx, [edx + 0x7fffff7e]
test ecx, ecx
je 0x49a690
mov cl, byte [esi + eax]
test cl, cl
je 0x49a690
mov byte [eax], cl
inc eax
dec edx
jne 0x49a671
dec eax
push str.Title_Not_Found
jmp 0x49a6bf
test edx, edx
jne 0x49a695
dec eax
push str.Title_Not_Found
jmp 0x49a6bf
mov esi, ebx
sub esi, ecx
lea ecx, [edx + 0x7fffff7e]
test ecx, ecx
je 0x49a6b9
mov cl, byte [esi + eax]
test cl, cl
je 0x49a6b9
mov byte [eax], cl
inc eax
dec edx
jne 0x49a6a0
jmp 0x49a6bd
test edx, edx
jne 0x49a6be
dec eax
push ebx
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [edi*4 + 0x4cd390]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [edi*4 + 0x4cd390]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x49a6fe
mov ecx, dword [edi*4 + 0x4cd390]
mov esi, dword [eax + 0x288]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0x4b7c94
lea edx, [ebp - 0x24]
push 0x20
push edx
call fcn.00402830
lea eax, [ebp - 0x130]
push eax
push str.SoftwareBillP_StudiosWinPatrolTasks
lea ecx, [ebp - 0x24]
mov edx, 0x80000001
call fcn.0048e390
mov eax, dword [0x4cd38c]
inc edi
add esp, 0x18
cmp edi, eax
jl 0x49a63a
test eax, eax
je 0x49a769
xor esi, esi
test eax, eax
jle 0x49a75f
mov ecx, dword [esi*4 + 0x4cd390]
test ecx, ecx
je 0x49a75a
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x4cd38c]
inc esi
cmp esi, eax
jl 0x49a743
mov dword [0x4cd38c], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a01d6
mov esp, ebp
pop ebp
ret