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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4dd196
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
and dword [esp], 0
push ebx
push esi
push edi
mov dword [esp + 0x10], ecx
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
and dword [esp + 0x43c], 0
mov dword [esp + 0x1c], eax
mov eax, edi
call fcn.00473a1e
mov esi, eax
test esi, esi
jl 0x473f25
cmp word [edi], 0x7d
je 0x473f23
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
push str.Delete
push edi
mov dword [esp + 0x1c], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x473bb9
test ebx, ebx
je 0x473c84
mov ecx, dword [esp + 0x10]
mov eax, edi
call fcn.00473a1e
mov esi, eax
test esi, esi
jl 0x473f12
cmp dword [ebp + 0x10], 0
je 0x473c84
push 0x5c
mov eax, edi
call fcn.004738ad
test eax, eax
pop ecx
jne 0x473fd6
push edi
call fcn.004744b1
test eax, eax
je 0x473c05
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.004744dd
test ebx, ebx
je 0x473c84
mov ecx, dword [esp + 0x10]
mov eax, edi
call fcn.00473a1e
mov esi, eax
test esi, esi
jl 0x473f12
mov ecx, dword [esp + 0x10]
call fcn.00474468
mov esi, eax
test esi, esi
jl 0x473f12
cmp word [edi], 0x7b
jne 0x473c75
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp eax, 1
jne 0x473c75
mov ecx, dword [esp + 0x10]
push 0
push dword [ebp + 0x10]
push dword [esp + 0x14]
push edi
call fcn.00473b2f
mov esi, eax
test esi, esi
jl 0x473f12
mov ecx, dword [esp + 0x10]
mov eax, edi
call fcn.00473a1e
mov esi, eax
test esi, esi
jl 0x473f12
cmp word [edi], 0x7d
jne 0x473b88
jmp 0x473f12
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x473cad
and dword [esp + 0x14], eax
mov ecx, dword [esp + 0x10]
mov eax, edi
call fcn.00473a1e
mov esi, eax
test esi, esi
jl 0x473f12
push 0x4f4db0
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x473da5
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x228]
call fcn.00473a1e
mov esi, eax
test esi, esi
jl 0x473f12
mov ecx, dword [esp + 0x10]
mov eax, edi
call fcn.00473a1e
mov esi, eax
test esi, esi
jl 0x473f12
cmp word [edi], 0x3d
jne 0x473fd6
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x473d3d
mov eax, dword [ebp + 0xc]
mov byte [esp + 0x43c], 1
mov dword [esp + 0x14], eax
push edi
lea eax, [esp + 0x22c]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1c]
call fcn.00474036
mov esi, eax
cmp esi, ebx
jl 0x473ff1
mov byte [esp + 0x43c], bl
jmp 0x473c31
cmp dword [ebp + 0x14], ebx
jne 0x473d93
cmp dword [esp + 0x14], ebx
je 0x473d93
push 0x20006
push ebx
push dword [ebp + 0xc]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebx
call fcn.00415f14
cmp eax, ebx
jne 0x474015
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x228]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x473d86
cmp eax, 2
jne 0x473ffa
test ebx, ebx
je 0x473d91
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov ecx, dword [esp + 0x10]
call fcn.00474468
mov esi, eax
cmp esi, ebx
jmp 0x473c6f
push 0x5c
mov eax, edi
call fcn.004738ad
test eax, eax
pop ecx
jne 0x473fd6
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x473e36
mov esi, 0x2001f
push esi
push edi
push dword [ebp + 0xc]
lea eax, [esp + 0x18]
call fcn.00415f14
test eax, eax
je 0x473e01
push 0x20019
push edi
push dword [ebp + 0xc]
lea eax, [esp + 0x18]
call fcn.00415f14
test eax, eax
je 0x473e01
push esi
push edi
push dword [ebp + 0xc]
lea eax, [esp + 0x18]
call fcn.0045937a
test eax, eax
jne 0x473f0b
mov ecx, dword [esp + 0x10]
mov eax, edi
call fcn.00473a1e
mov esi, eax
test esi, esi
jl 0x473f12
cmp word [edi], 0x3d
jne 0x473c31
push edi
push 0
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c]
call fcn.00474036
jmp 0x473c27
cmp dword [ebp + 0x14], esi
jne 0x473e53
push 0x20019
push edi
push dword [ebp + 0xc]
lea eax, [esp + 0x18]
call fcn.00415f14
mov dword [esp + 0x18], eax
jmp 0x473e5b
mov dword [esp + 0x18], 2
cmp dword [esp + 0x18], esi
je 0x473e68
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x28]
push 0x104
push eax
call fcn.0049aa24
push eax
call fcn.004077c7
mov ecx, dword [esp + 0x24]
add esp, 0x14
mov eax, edi
call fcn.00473a1e
mov esi, eax
test esi, esi
jl 0x473f12
mov ecx, dword [esp + 0x10]
call fcn.00474468
mov esi, eax
test esi, esi
jl 0x473f12
cmp word [edi], 0x7b
jne 0x473ee5
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp eax, 1
jne 0x473ee5
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
push 0
push dword [esp + 0x14]
push edi
call fcn.00473b2f
mov esi, eax
test esi, esi
jge 0x473ed4
cmp dword [ebp + 0x14], 0
je 0x473f12
mov ecx, dword [esp + 0x10]
mov eax, edi
call fcn.00473a1e
mov esi, eax
test esi, esi
jl 0x473f12
cmp dword [esp + 0x18], 2
mov eax, dword [esp + 0x1c]
mov dword [ebp + 0x14], eax
je 0x473c75
xor ebx, ebx
cmp dword [esp + 0x18], ebx
je 0x473f3c
cmp eax, ebx
jne 0x473c75
mov eax, dword [esp + 0x18]
call fcn.00474a65
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x473f23
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x434]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp eax, ebx
je 0x473f7d
push dword [esp + 0xc]
call fcn.004745a1
test eax, eax
je 0x473f7d
lea eax, [esp + 0x20]
push eax
call fcn.004744b1
test eax, eax
je 0x473c75
cmp dword [esp + 0x14], 0
je 0x473c75
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x10]
call fcn.004744dd
jmp 0x473c75
push dword [esp + 0xc]
call fcn.004745a1
cmp dword [esp + 0xc], ebx
mov dword [esp + 0x18], eax
je 0x473fa6
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov dword [esp + 0xc], ebx
jne 0x47402c
cmp dword [esp + 0x14], ebx
je 0x473c75
cmp dword [esp + 0x18], 0
jne 0x473c75
lea eax, [esp + 0x20]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x473f0b
jmp 0x473c75
cmp dword [esp + 0xc], 0
je 0x473fe7
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x473f25
cmp dword [esp + 0xc], ebx
jmp 0x473f17
call fcn.00474a65
test ebx, ebx
mov esi, eax
je 0x473f12
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x473f12
call fcn.00474a65
cmp dword [esp + 0x14], ebx
mov esi, eax
je 0x473f12
push dword [esp + 0x14]
jmp 0x47400a
call fcn.00474a65
jmp 0x473f25