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

Disassembly:
push 0x38
mov eax, 0x509f4b
call fcn.004d0cf3
mov dword [ebp - 0x34], edx
xor ebx, ebx
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
call fcn.004093f6
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x24]
call fcn.0046d6c0
or edi, 0xffffffff
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
cmp dword [ebp - 0x40], 2
jne 0x47af69
push ebx
lea ecx, [ebp - 0x44]
call fcn.00406740
push eax
lea ecx, [ebp - 0x30]
call fcn.004073ac
push str._cmdloc
lea ecx, [ebp - 0x30]
call fcn.004453c8
test eax, eax
jne 0x47af5b
push 1
lea ecx, [ebp - 0x44]
call fcn.00406740
push eax
lea ecx, [ebp - 0x14]
call fcn.004073ac
push 0x5c
push dword [ebp - 0x14]
call fcn.004d3931
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x47af4d
sub esi, dword [ebp - 0x14]
sar esi, 1
cmp esi, edi
je 0x47af4d
push esi
push ebx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00445339
call fcn.00406cde
push eax
lea ecx, [ebp - 0x24]
call fcn.00406b09
mov dword [ebp - 4], edi
call fcn.00406cde
push eax
lea ecx, [ebp - 0x20]
call fcn.00406b09
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x1c]
call fcn.00485920
push ebx
mov edi, eax
lea ecx, [ebp - 0x1c]
push 0x5c
mov dword [ebp - 0x38], edi
call fcn.004506c2
inc eax
lea ecx, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00445170
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push ebx
push dword [ebp - 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x47ae0f
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
push dword [ebp - 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x47ae0f
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
jmp 0x47ae8d
push 0x5c
push dword [ebp - 0x10]
call fcn.004d3931
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x47ae26
or edi, 0xffffffff
jmp 0x47ae2b
sub edi, dword [ebp - 0x10]
sar edi, 1
push edi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x10]
call fcn.004450c5
push eax
lea ecx, [ebp - 0x24]
call fcn.0044369a
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00445170
push eax
lea ecx, [ebp - 0x20]
call fcn.0044369a
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
cmp dword [ebp - 0x18], 0
jne 0x47ae98
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
jmp 0x47af24
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
call fcn.00445170
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
call fcn.00487588
pop ecx
push dword [ebp - 0x28]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
test eax, eax
jne 0x47af13
lea eax, [ebp - 0x2c]
push eax
push 0xf003f
push ebx
push edi
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47af13
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x47af13
cmp dword [ebp - 0x10], 0
jne 0x47af13
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov bl, 1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406dd3
or dword [ebp - 4], 0xffffffff
lea ecx, [edi - 0x10]
call fcn.00406dd3
or edi, 0xffffffff
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.00406dd3
lea ecx, [ebp - 0x44]
call fcn.00452170
mov al, bl
call fcn.004d0cbc
ret