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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x472264
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040555c
xor eax, eax
push ebp
push 0x4725ba
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004055c8
lea eax, [ebp - 0x10]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x4725d4
call fcn.00405f58
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00405c40
mov edx, dword [ebp - 8]
mov eax, 0x4725d4
call fcn.00405f58
mov ecx, eax
lea eax, [ebp - 8]
mov edx, 1
call fcn.00405d10
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4722ed
mov eax, ebx
sub eax, 0xa
cmp word [eax], 2
je 0x4722ed
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00404f08
mov ebx, eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x47230a
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x47230a
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00404f08
test eax, eax
je 0x472313
sub eax, 4
mov eax, dword [eax]
cmp word [ebx + eax*2 - 2], 0x5c
jne 0x4724cd
mov eax, dword [ebp - 8]
test eax, eax
je 0x47233c
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x47233c
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00404f08
mov ebx, eax
test ebx, ebx
je 0x472347
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 8]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00405c40
mov eax, dword [ebp - 8]
test eax, eax
je 0x472378
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x472378
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00404f08
mov ebx, eax
test ebx, ebx
je 0x472383
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0xc]
push eax
mov dx, 0x5c
mov eax, dword [ebp - 8]
call fcn.00471a44
mov edx, eax
inc edx
mov ecx, ebx
mov eax, dword [ebp - 8]
call fcn.00405c40
mov dx, 0x5c
mov eax, dword [ebp - 8]
call fcn.00471a44
mov ebx, eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x4723cb
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4723cb
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00404f08
test eax, eax
je 0x4723d4
sub eax, 4
mov eax, dword [eax]
lea edx, [ebp - 8]
mov ecx, eax
mov eax, ebx
xchg edx, eax
call fcn.00405d10
lea eax, [ebp - 0x18]
push eax
push 0x20006
push 0
mov eax, dword [ebp - 8]
call fcn.00405600
push eax
mov eax, dword [ebp - 0x10]
call fcn.00471178
push eax
call sub.advapi32.dll_RegOpenKeyExW_1
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004718b8
cmp dword [ebp - 0x1c], 0
jne 0x472430
mov eax, dword [ebp - 0xc]
call fcn.00405600
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegDeleteKeyW
test eax, eax
sete bl
jmp 0x472589
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004718b8
jmp 0x4724a0
push dword [ebp - 4]
lea eax, [ebp - 0x24]
push eax
mov edx, dword [ebp - 0x14]
mov eax, 0x4725e4
call fcn.00405f58
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00405c40
push dword [ebp - 0x24]
push 0x4725d4
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00405a90
mov eax, dword [ebp - 0x20]
call fcn.0047225c
mov ebx, eax
test bl, bl
je 0x4724b1
mov edx, dword [ebp - 0x14]
mov eax, 0x4725e4
call fcn.00405f58
mov ecx, eax
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.00405d10
mov edx, dword [ebp - 0x14]
mov eax, 0x4725e4
call fcn.00405f58
test eax, eax
jg 0x47243d
mov eax, dword [ebp - 0xc]
call fcn.00405600
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegDeleteKeyW
test eax, eax
sete bl
jmp 0x472589
mov eax, dword [ebp - 8]
test eax, eax
je 0x4724ea
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4724ea
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00404f08
mov ebx, eax
test ebx, ebx
je 0x4724f5
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0xc]
push eax
mov dx, 0x5c
mov eax, dword [ebp - 8]
call fcn.00471a44
mov edx, eax
inc edx
mov ecx, ebx
mov eax, dword [ebp - 8]
call fcn.00405c40
mov dx, 0x5c
mov eax, dword [ebp - 8]
call fcn.00471a44
mov ebx, eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x47253d
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x47253d
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00404f08
test eax, eax
je 0x472546
sub eax, 4
mov eax, dword [eax]
lea edx, [ebp - 8]
mov ecx, eax
mov eax, ebx
xchg edx, eax
call fcn.00405d10
lea eax, [ebp - 0x18]
push eax
push 2
push 0
mov eax, dword [ebp - 8]
call fcn.00405600
push eax
mov eax, dword [ebp - 0x10]
call fcn.00471178
push eax
call sub.advapi32.dll_RegOpenKeyExW_1
mov eax, dword [ebp - 0xc]
call fcn.00405600
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegDeleteValueW
test eax, eax
sete bl
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4725c1
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.0040556c
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.0040556c
ret