Function at 0x491cef
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov eax, 0x4c3807
call fcn.004c2540
sub esp, 0x424
mov eax, dword [0x4e7384]
and dword [ebp - 0x424], 0
push ebx
mov dword [ebp - 0x10], eax
push esi
mov dword [ebp - 0x428], ecx
and dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x430], eax
mov eax, ebx
call fcn.004915e2
mov esi, eax
test esi, esi
jge 0x491d38
jmp 0x4920f8
cmp word [ebx], 0x7d
push edi
je 0x4920f5
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push ebx
mov dword [ebp - 0x42c], 1
call esi
mov edi, eax
neg edi
push str.ForceRemove
sbb edi, edi
push ebx
inc edi
call esi
test eax, eax
je 0x491d72
test edi, edi
je 0x491de7
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.004915e2
mov esi, eax
test esi, esi
jl 0x4920e0
cmp dword [ebp + 0x10], 0
je 0x491de7
push 0x5c
mov eax, ebx
call fcn.00491582
test eax, eax
pop ecx
jne 0x4921ed
push ebx
call fcn.004919d8
test eax, eax
je 0x491dba
mov eax, dword [ebp + 0xc]
push ebx
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.0046d7de
test edi, edi
je 0x491de7
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.004915e2
mov esi, eax
test esi, esi
jl 0x4920e0
mov ecx, dword [ebp - 0x428]
mov edi, ebx
call fcn.00491a39
jmp 0x491ffc
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x491e14
and dword [ebp - 0x42c], eax
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.004915e2
mov esi, eax
test esi, esi
jl 0x4920e0
push 0x4ce040
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x491f58
mov ecx, dword [ebp - 0x428]
lea eax, [ebp - 0x420]
call fcn.004915e2
mov esi, eax
xor edi, edi
cmp esi, edi
jl 0x4920e0
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.004915e2
mov esi, eax
cmp esi, edi
jl 0x4920e0
cmp word [ebx], 0x3d
jne 0x4921aa
cmp dword [ebp + 0x10], edi
je 0x491ef7
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov dword [ebp + 8], eax
push ebx
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x428]
call fcn.004916dd
mov esi, eax
cmp esi, edi
jl 0x4921b2
mov byte [ebp - 4], 0
cmp word [ebx], 0x7b
jne 0x491ee8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x491ee8
mov ecx, dword [ebp - 0x428]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x424]
push ebx
call fcn.00491cef
mov esi, eax
test esi, esi
jl 0x4920e0
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.004915e2
mov esi, eax
test esi, esi
jl 0x4920e0
cmp word [ebx], 0x7d
jne 0x491d43
jmp 0x4920e0
cmp dword [ebp + 0x14], edi
jne 0x491f49
cmp dword [ebp - 0x42c], edi
je 0x491f49
push 0x20006
push edi
push dword [ebp + 0xc]
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
call fcn.00401247
cmp eax, edi
jne 0x4921cf
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x420]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x491f3e
cmp eax, 2
jne 0x4921bd
test edi, edi
je 0x491f49
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x428]
mov edi, ebx
call fcn.00491a39
jmp 0x491ede
push 0x5c
mov eax, ebx
call fcn.00491582
test eax, eax
pop ecx
jne 0x4921ed
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x49200b
push 0x2001f
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x424]
call fcn.00401247
test eax, eax
je 0x491fc6
push 0x20019
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x424]
call fcn.00401247
test eax, eax
je 0x491fc6
push esi
push 0x2001f
push esi
push esi
push ebx
push dword [ebp + 0xc]
xor edi, edi
lea eax, [ebp - 0x424]
call fcn.0046d719
cmp eax, esi
jne 0x4920d9
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.004915e2
mov esi, eax
test esi, esi
jl 0x4920e0
cmp word [ebx], 0x3d
jne 0x491e9e
push ebx
push 0
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x428]
call fcn.004916dd
mov esi, eax
test esi, esi
jl 0x4920e0
jmp 0x491e9e
cmp dword [ebp + 0x14], esi
jne 0x492029
push 0x20019
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x424]
call fcn.00401247
mov dword [ebp + 8], eax
jmp 0x492030
mov dword [ebp + 8], 2
cmp dword [ebp + 8], esi
je 0x49203c
mov dword [ebp + 0x14], 1
push 0x104
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.004915e2
mov esi, eax
test esi, esi
jl 0x4920e0
mov ecx, dword [ebp - 0x428]
mov edi, ebx
call fcn.00491a39
mov esi, eax
test esi, esi
jl 0x4920e0
cmp word [ebx], 0x7b
jne 0x4920b1
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x428]
push 0
push dword [ebp - 0x424]
push ebx
call fcn.00491cef
mov esi, eax
test esi, esi
jge 0x49209e
cmp dword [ebp + 0x14], 0
je 0x4920e0
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.004915e2
mov esi, eax
test esi, esi
jl 0x4920e0
cmp dword [ebp + 8], 2
mov eax, dword [ebp - 0x430]
mov dword [ebp + 0x14], eax
je 0x491ee8
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, edi
je 0x492110
cmp dword [ebp - 0x430], edi
jne 0x491ee8
call fcn.00490cb7
mov esi, eax
cmp dword [ebp - 0x424], 0
je 0x4920f5
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004c2215
leave
ret 0x10
cmp dword [ebp - 0x430], edi
je 0x49215f
push dword [ebp - 0x424]
call fcn.00491a04
test eax, eax
je 0x49215f
lea eax, [ebp - 0x218]
push eax
call fcn.004919d8
test eax, eax
je 0x491ee8
cmp dword [ebp - 0x42c], 0
je 0x491ee8
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x424]
call fcn.0046d7de
jmp 0x491ee8
cmp dword [ebp - 0x424], edi
je 0x492181
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
mov dword [ebp - 0x424], edi
jne 0x49220c
cmp dword [ebp - 0x42c], edi
je 0x491ee8
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4920d9
jmp 0x491ee8
cmp dword [ebp - 0x424], edi
jmp 0x4921f4
cmp dword [ebp - 0x424], edi
jmp 0x4920e7
call fcn.00490cb7
test edi, edi
mov esi, eax
je 0x4920e0
push edi
jmp 0x4921e2
call fcn.00490cb7
cmp dword [ebp + 8], edi
mov esi, eax
je 0x4920e0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4920e0
cmp dword [ebp - 0x424], 0
je 0x492202
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x4920f7
call fcn.00490cb7
jmp 0x4920f7