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

Disassembly:
mov eax, 0x4c911a
call fcn.004c7e20
sub esp, 0x424
mov eax, dword [0x4ed384]
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.0049403a
mov esi, eax
test esi, esi
jge 0x494790
jmp 0x494b50
cmp word [ebx], 0x7d
push edi
je 0x494b4d
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 0x4947ca
test edi, edi
je 0x49483f
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.0049403a
mov esi, eax
test esi, esi
jl 0x494b38
cmp dword [ebp + 0x10], 0
je 0x49483f
push 0x5c
mov eax, ebx
call fcn.00493fda
test eax, eax
pop ecx
jne 0x494c45
push ebx
call fcn.00494430
test eax, eax
je 0x494812
mov eax, dword [ebp + 0xc]
push ebx
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.004709d3
test edi, edi
je 0x49483f
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.0049403a
mov esi, eax
test esi, esi
jl 0x494b38
mov ecx, dword [ebp - 0x428]
mov edi, ebx
call fcn.00494491
jmp 0x494a54
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x49486c
and dword [ebp - 0x42c], eax
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.0049403a
mov esi, eax
test esi, esi
jl 0x494b38
push 0x4d3390
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4949b0
mov ecx, dword [ebp - 0x428]
lea eax, [ebp - 0x420]
call fcn.0049403a
mov esi, eax
xor edi, edi
cmp esi, edi
jl 0x494b38
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.0049403a
mov esi, eax
cmp esi, edi
jl 0x494b38
cmp word [ebx], 0x3d
jne 0x494c02
cmp dword [ebp + 0x10], edi
je 0x49494f
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.00494135
mov esi, eax
cmp esi, edi
jl 0x494c0a
mov byte [ebp - 4], 0
cmp word [ebx], 0x7b
jne 0x494940
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x494940
mov ecx, dword [ebp - 0x428]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x424]
push ebx
call fcn.00494747
mov esi, eax
test esi, esi
jl 0x494b38
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.0049403a
mov esi, eax
test esi, esi
jl 0x494b38
cmp word [ebx], 0x7d
jne 0x49479b
jmp 0x494b38
cmp dword [ebp + 0x14], edi
jne 0x4949a1
cmp dword [ebp - 0x42c], edi
je 0x4949a1
push 0x20006
push edi
push dword [ebp + 0xc]
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
call fcn.00401247
cmp eax, edi
jne 0x494c27
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x420]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x494996
cmp eax, 2
jne 0x494c15
test edi, edi
je 0x4949a1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x428]
mov edi, ebx
call fcn.00494491
jmp 0x494936
push 0x5c
mov eax, ebx
call fcn.00493fda
test eax, eax
pop ecx
jne 0x494c45
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x494a63
push 0x2001f
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x424]
call fcn.00401247
test eax, eax
je 0x494a1e
push 0x20019
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x424]
call fcn.00401247
test eax, eax
je 0x494a1e
push esi
push 0x2001f
push esi
push esi
push ebx
push dword [ebp + 0xc]
xor edi, edi
lea eax, [ebp - 0x424]
call fcn.0047090e
cmp eax, esi
jne 0x494b31
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.0049403a
mov esi, eax
test esi, esi
jl 0x494b38
cmp word [ebx], 0x3d
jne 0x4948f6
push ebx
push 0
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x428]
call fcn.00494135
mov esi, eax
test esi, esi
jl 0x494b38
jmp 0x4948f6
cmp dword [ebp + 0x14], esi
jne 0x494a81
push 0x20019
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x424]
call fcn.00401247
mov dword [ebp + 8], eax
jmp 0x494a88
mov dword [ebp + 8], 2
cmp dword [ebp + 8], esi
je 0x494a94
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.0049403a
mov esi, eax
test esi, esi
jl 0x494b38
mov ecx, dword [ebp - 0x428]
mov edi, ebx
call fcn.00494491
mov esi, eax
test esi, esi
jl 0x494b38
cmp word [ebx], 0x7b
jne 0x494b09
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x428]
push 0
push dword [ebp - 0x424]
push ebx
call fcn.00494747
mov esi, eax
test esi, esi
jge 0x494af6
cmp dword [ebp + 0x14], 0
je 0x494b38
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.0049403a
mov esi, eax
test esi, esi
jl 0x494b38
cmp dword [ebp + 8], 2
mov eax, dword [ebp - 0x430]
mov dword [ebp + 0x14], eax
je 0x494940
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, edi
je 0x494b68
cmp dword [ebp - 0x430], edi
jne 0x494940
call fcn.00493713
mov esi, eax
cmp dword [ebp - 0x424], 0
je 0x494b4d
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.004c7b01
leave
ret 0x10
cmp dword [ebp - 0x430], edi
je 0x494bb7
push dword [ebp - 0x424]
call fcn.0049445c
test eax, eax
je 0x494bb7
lea eax, [ebp - 0x218]
push eax
call fcn.00494430
test eax, eax
je 0x494940
cmp dword [ebp - 0x42c], 0
je 0x494940
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x424]
call fcn.004709d3
jmp 0x494940
cmp dword [ebp - 0x424], edi
je 0x494bd9
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
mov dword [ebp - 0x424], edi
jne 0x494c64
cmp dword [ebp - 0x42c], edi
je 0x494940
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x494b31
jmp 0x494940
cmp dword [ebp - 0x424], edi
jmp 0x494c4c
cmp dword [ebp - 0x424], edi
jmp 0x494b3f
call fcn.00493713
test edi, edi
mov esi, eax
je 0x494b38
push edi
jmp 0x494c3a
call fcn.00493713
cmp dword [ebp + 8], edi
mov esi, eax
je 0x494b38
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x494b38
cmp dword [ebp - 0x424], 0
je 0x494c5a
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x494b4f
call fcn.00493713
jmp 0x494b4f