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

Disassembly:
mov eax, 0x4ee19d
call fcn.004eadec
sub esp, 0x424
mov eax, dword [0x516ad4]
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.004a0f62
mov esi, eax
test esi, esi
jge 0x4a16b8
jmp 0x4a1a78
cmp word [ebx], 0x7d
push edi
je 0x4a1a75
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 0x4a16f2
test edi, edi
je 0x4a1767
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.004a0f62
mov esi, eax
test esi, esi
jl 0x4a1a60
cmp dword [ebp + 0x10], 0
je 0x4a1767
push 0x5c
mov eax, ebx
call fcn.004a0f02
test eax, eax
pop ecx
jne 0x4a1b6d
push ebx
call fcn.004a1358
test eax, eax
je 0x4a173a
mov eax, dword [ebp + 0xc]
push ebx
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.0047a0cd
test edi, edi
je 0x4a1767
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.004a0f62
mov esi, eax
test esi, esi
jl 0x4a1a60
mov ecx, dword [ebp - 0x428]
mov edi, ebx
call fcn.004a13b9
jmp 0x4a197c
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4a1794
and dword [ebp - 0x42c], eax
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.004a0f62
mov esi, eax
test esi, esi
jl 0x4a1a60
push 0x4f9728
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4a18d8
mov ecx, dword [ebp - 0x428]
lea eax, [ebp - 0x420]
call fcn.004a0f62
mov esi, eax
xor edi, edi
cmp esi, edi
jl 0x4a1a60
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.004a0f62
mov esi, eax
cmp esi, edi
jl 0x4a1a60
cmp word [ebx], 0x3d
jne 0x4a1b2a
cmp dword [ebp + 0x10], edi
je 0x4a1877
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.004a105d
mov esi, eax
cmp esi, edi
jl 0x4a1b32
mov byte [ebp - 4], 0
cmp word [ebx], 0x7b
jne 0x4a1868
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x4a1868
mov ecx, dword [ebp - 0x428]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x424]
push ebx
call fcn.004a166f
mov esi, eax
test esi, esi
jl 0x4a1a60
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.004a0f62
mov esi, eax
test esi, esi
jl 0x4a1a60
cmp word [ebx], 0x7d
jne 0x4a16c3
jmp 0x4a1a60
cmp dword [ebp + 0x14], edi
jne 0x4a18c9
cmp dword [ebp - 0x42c], edi
je 0x4a18c9
push 0x20006
push edi
push dword [ebp + 0xc]
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
call fcn.00401247
cmp eax, edi
jne 0x4a1b4f
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x420]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4a18be
cmp eax, 2
jne 0x4a1b3d
test edi, edi
je 0x4a18c9
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x428]
mov edi, ebx
call fcn.004a13b9
jmp 0x4a185e
push 0x5c
mov eax, ebx
call fcn.004a0f02
test eax, eax
pop ecx
jne 0x4a1b6d
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x4a198b
push 0x2001f
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x424]
call fcn.00401247
test eax, eax
je 0x4a1946
push 0x20019
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x424]
call fcn.00401247
test eax, eax
je 0x4a1946
push esi
push 0x2001f
push esi
push esi
push ebx
push dword [ebp + 0xc]
xor edi, edi
lea eax, [ebp - 0x424]
call fcn.0047a008
cmp eax, esi
jne 0x4a1a59
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.004a0f62
mov esi, eax
test esi, esi
jl 0x4a1a60
cmp word [ebx], 0x3d
jne 0x4a181e
push ebx
push 0
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x428]
call fcn.004a105d
mov esi, eax
test esi, esi
jl 0x4a1a60
jmp 0x4a181e
cmp dword [ebp + 0x14], esi
jne 0x4a19a9
push 0x20019
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x424]
call fcn.00401247
mov dword [ebp + 8], eax
jmp 0x4a19b0
mov dword [ebp + 8], 2
cmp dword [ebp + 8], esi
je 0x4a19bc
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.004a0f62
mov esi, eax
test esi, esi
jl 0x4a1a60
mov ecx, dword [ebp - 0x428]
mov edi, ebx
call fcn.004a13b9
mov esi, eax
test esi, esi
jl 0x4a1a60
cmp word [ebx], 0x7b
jne 0x4a1a31
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x428]
push 0
push dword [ebp - 0x424]
push ebx
call fcn.004a166f
mov esi, eax
test esi, esi
jge 0x4a1a1e
cmp dword [ebp + 0x14], 0
je 0x4a1a60
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.004a0f62
mov esi, eax
test esi, esi
jl 0x4a1a60
cmp dword [ebp + 8], 2
mov eax, dword [ebp - 0x430]
mov dword [ebp + 0x14], eax
je 0x4a1868
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, edi
je 0x4a1a90
cmp dword [ebp - 0x430], edi
jne 0x4a1868
call fcn.004a0632
mov esi, eax
cmp dword [ebp - 0x424], 0
je 0x4a1a75
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.004eae3c
leave
ret 0x10
cmp dword [ebp - 0x430], edi
je 0x4a1adf
push dword [ebp - 0x424]
call fcn.004a1384
test eax, eax
je 0x4a1adf
lea eax, [ebp - 0x218]
push eax
call fcn.004a1358
test eax, eax
je 0x4a1868
cmp dword [ebp - 0x42c], 0
je 0x4a1868
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x424]
call fcn.0047a0cd
jmp 0x4a1868
cmp dword [ebp - 0x424], edi
je 0x4a1b01
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
mov dword [ebp - 0x424], edi
jne 0x4a1b8c
cmp dword [ebp - 0x42c], edi
je 0x4a1868
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4a1a59
jmp 0x4a1868
cmp dword [ebp - 0x424], edi
jmp 0x4a1b74
cmp dword [ebp - 0x424], edi
jmp 0x4a1a67
call fcn.004a0632
test edi, edi
mov esi, eax
je 0x4a1a60
push edi
jmp 0x4a1b62
call fcn.004a0632
cmp dword [ebp + 8], edi
mov esi, eax
je 0x4a1a60
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a1a60
cmp dword [ebp - 0x424], 0
je 0x4a1b82
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x4a1a77
call fcn.004a0632
jmp 0x4a1a77