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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5469b6
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x5b2920]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push esi
push edi
mov eax, dword [0x5b2920]
xor eax, esp
push eax
lea eax, [esp + 0x448]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ebx
mov edx, dword [ebp + 0x14]
mov eax, edi
mov dword [esp + 0x450], ebx
mov dword [esp + 0x28], edx
call fcn.00471af0
mov esi, eax
cmp esi, ebx
jl 0x472271
cmp word [edi], 0x7d
je 0x47226f
lea ecx, [ecx]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [esp + 0x20], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
add ebx, 1
call esi
test eax, eax
je 0x471cf3
test ebx, ebx
je 0x471e04
mov ecx, dword [esp + 0x20]
mov eax, edi
call fcn.00471af0
mov esi, eax
test esi, esi
jl 0x472260
cmp dword [ebp + 0x10], 0
je 0x471e04
movzx ecx, word [edi]
test cx, cx
mov dword [esp + 0x1c], 0
mov eax, edi
je 0x471d46
movzx ecx, cx
cmp cx, 0x5c
je 0x471d3e
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
test cx, cx
jne 0x471d27
jmp 0x471d46
test eax, eax
jne 0x4721f9
mov esi, 0x56b594
jmp 0x471d50
mov eax, dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x471d83
add esi, 4
cmp esi, 0x56b5c4
jl 0x471d50
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], ecx
push edi
lea ecx, [esp + 0x20]
call fcn.004728f0
mov dword [esp + 0x1c], 0
test ebx, ebx
je 0x471e04
mov ebx, dword [esp + 0x20]
mov eax, edi
mov ecx, ebx
call fcn.00471af0
mov esi, eax
test esi, esi
jl 0x472212
mov ecx, ebx
call fcn.00472840
mov esi, eax
test esi, esi
jl 0x472212
cmp word [edi], 0x7b
jne 0x471df5
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x471df5
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
push 0
push ecx
push edx
push edi
mov ecx, ebx
call fcn.00471c40
mov esi, eax
test esi, esi
jl 0x472260
mov eax, edi
mov ecx, ebx
call fcn.00471af0
mov esi, eax
test esi, esi
jl 0x472260
cmp word [edi], 0x7d
jne 0x471cc0
jmp 0x472260
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x471e2d
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov eax, edi
call fcn.00471af0
mov esi, eax
test esi, esi
jl 0x472260
mov ebx, dword [esp + 0x20]
push 0x56b554
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x471f33
lea eax, [esp + 0x234]
mov ecx, ebx
call fcn.00471af0
mov esi, eax
test esi, esi
jl 0x472260
mov eax, edi
mov ecx, ebx
call fcn.00471af0
mov esi, eax
test esi, esi
jl 0x472260
cmp word [edi], 0x3d
jne 0x472202
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x471ec6
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x454], 1
mov dword [esp + 0x1c], edx
push ecx
mov ecx, edi
mov edx, ebx
call fcn.004722f0
mov esi, eax
test esi, esi
mov dword [esp + 0x18], 0
jl 0x472218
mov byte [esp + 0x450], 0
jmp 0x471daf
cmp dword [ebp + 0x14], esi
jne 0x471f27
cmp dword [esp + 0x18], esi
je 0x471f27
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x1c]
push edx
push 0x20006
push esi
push esi
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x472250
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x234]
push ecx
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x471f1c
cmp eax, 2
jne 0x472250
test esi, esi
je 0x471f27
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebx
call fcn.00472840
jmp 0x471deb
movzx ecx, word [edi]
test cx, cx
mov eax, edi
je 0x471f5f
movzx ecx, cx
cmp cx, 0x5c
je 0x471f57
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
test cx, cx
jne 0x471f40
jmp 0x471f5f
test eax, eax
jne 0x472202
cmp dword [ebp + 0x10], 0
je 0x472037
mov ebx, dword [esp + 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x18]
push edx
push 0x2001f
push 0
push edi
push ebx
mov dword [esp + 0x2c], 0
call esi
test eax, eax
jne 0x471faa
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x471f9e
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
je 0x471ff7
lea edx, [esp + 0x18]
push edx
push 0x20019
push 0
push edi
push ebx
mov dword [esp + 0x2c], 0
call esi
test eax, eax
jne 0x471fe1
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x471fd5
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
je 0x471ff7
push ebx
mov edx, edi
lea esi, [esp + 0x18]
call fcn.004722a0
mov esi, eax
test esi, esi
jne 0x47222c
mov ebx, dword [esp + 0x20]
mov eax, edi
mov ecx, ebx
call fcn.00471af0
mov esi, eax
test esi, esi
jl 0x472260
cmp word [edi], 0x3d
jne 0x471daf
push 0
lea edx, [esp + 0x18]
push edx
mov ecx, edi
mov edx, ebx
call fcn.004722f0
mov esi, eax
test esi, esi
jl 0x472260
jmp 0x471daf
cmp dword [ebp + 0x14], 0
jne 0x472140
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push edi
push ecx
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47207c
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x472074
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
test eax, eax
mov dword [esp + 0x1c], eax
je 0x47208b
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x34]
push 0x104
push eax
call fcn.0051478e
push eax
call fcn.00416440
add esp, 0x14
mov eax, edi
mov ecx, ebx
call fcn.00471af0
mov esi, eax
test esi, esi
jl 0x472260
mov ecx, ebx
call fcn.00472840
mov esi, eax
test esi, esi
jl 0x472260
cmp word [edi], 0x7b
jne 0x472112
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x472112
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x14]
push ecx
push 0
push edx
push edi
mov ecx, ebx
call fcn.00471c40
mov esi, eax
test esi, esi
jge 0x4720ff
cmp dword [ebp + 0x14], 0
je 0x472260
mov eax, edi
mov ecx, ebx
call fcn.00471af0
mov esi, eax
test esi, esi
jl 0x472260
mov ecx, dword [esp + 0x1c]
cmp ecx, 2
mov eax, dword [esp + 0x28]
mov dword [ebp + 0x14], eax
je 0x471df5
test ecx, ecx
je 0x47214d
test eax, eax
jne 0x471df5
mov eax, ecx
call fcn.00472ac0
mov esi, eax
jmp 0x472260
mov dword [esp + 0x1c], 2
jmp 0x472084
test eax, eax
mov ebx, dword [esp + 0x14]
je 0x47218d
mov ecx, ebx
call fcn.00472a40
test eax, eax
je 0x47218d
lea ebx, [esp + 0x2c]
call fcn.004728b0
test eax, eax
je 0x471df5
cmp dword [esp + 0x18], 0
je 0x471df5
mov eax, ebx
push eax
lea ecx, [esp + 0x18]
call fcn.004728f0
jmp 0x471df5
mov ecx, ebx
call fcn.00472a40
test ebx, ebx
mov dword [esp + 0x1c], eax
je 0x4721b9
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], 0
jne 0x47223e
cmp dword [esp + 0x18], 0
je 0x471df5
cmp dword [esp + 0x1c], 0
jne 0x471df5
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
mov dword [esp + 0x18], 0
jne 0x472250
lea ecx, [esp + 0x18]
call fcn.00472aa0
jmp 0x471df5
lea ecx, [esp + 0x1c]
call fcn.00472aa0
lea ecx, [esp + 0x14]
call fcn.00472aa0
mov eax, 0x80020009
jmp 0x472271
lea ecx, [esp + 0x1c]
jmp 0x47225b
lea ecx, [esp + 0x18]
call fcn.00472aa0
lea ecx, [esp + 0x14]
call fcn.00472aa0
jmp 0x47226f
lea ecx, [esp + 0x14]
call fcn.00472aa0
mov eax, esi
call fcn.00472ac0
jmp 0x472271
lea ecx, [esp + 0x14]
call fcn.00472aa0
mov eax, ebx
call fcn.00472ac0
jmp 0x472271
call fcn.00472ac0
mov esi, eax
lea ecx, [esp + 0x18]
call fcn.00472aa0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47226f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x448]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.0050fe87
mov esp, ebp
pop ebp
ret 0x10