Function at 0x404f30
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56dde0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5d2fec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
call fcn.00417ce3
mov ecx, eax
test ecx, ecx
jne 0x404f77
push 0x80004005
call fcn.00407010
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
push 0x5af8f0
mov dword [ebp - 0x14], 0
call fcn.00406840
push ecx
mov ecx, esp
mov byte [ebp - 4], 3
lea eax, [ebp + 8]
mov dword [ebp - 0x28], ecx
push eax
lea edi, [ebp - 0x14]
call fcn.004069a0
mov edx, edi
lea ecx, [ebp - 0x24]
call fcn.004047c0
add esp, 4
mov byte [ebp - 4], 4
lea edi, [esi - 0x10]
mov ecx, dword [eax]
or ebx, 0xffffffff
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x405018
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x405009
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x405009
push edx
call fcn.00406c80
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x405001
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
jmp 0x405018
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00406bd0
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405036
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x405042
or eax, 0xffffffff
jmp 0x405068
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 0xc], 0
jge 0x405050
or eax, 0xffffffff
jmp 0x405068
push eax
push ecx
call fcn.00550fb4
add esp, 8
test eax, eax
jne 0x405063
or eax, 0xffffffff
jmp 0x405068
sub eax, dword [ebp - 0x14]
sar eax, 1
dec eax
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00405b70
mov byte [ebp - 4], 5
mov ecx, dword [eax]
mov edi, dword [ebp - 0x14]
add edi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x4050ce
cmp dword [edi + 0xc], 0
jl 0x4050c2
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x4050c2
push edx
call fcn.00406c80
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, ebx
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4050ba
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
add eax, 0x10
mov dword [ebp - 0x14], eax
jmp 0x4050ce
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00406bd0
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4050ec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, esp
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x28], ecx
call fcn.004069a0
call fcn.00404900
add esp, 4
mov dword [ebp - 0x28], eax
mov edi, 0x2001f
mov dword [ebp - 0x18], 0
push 0x5af224
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x40513e
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x24]
cmp dword [ebp - 0x18], 0
je 0x40516b
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jl 0x405166
push str.Wow6432Node
push eax
call fcn.00550fb4
add esp, 8
test eax, eax
je 0x405166
sub eax, dword [ebp + 8]
sar eax, 1
jns 0x40516b
mov edi, 0x2011f
lea eax, [ebp - 0x20]
push eax
push edi
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4051a4
push dword [ebp + 0xc]
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push dword [ebp - 0x20]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x4051a4
mov edi, 1
jmp 0x4051a6
xor edi, edi
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4051c4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4051df
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4051fd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40521c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054e73a
mov esp, ebp
pop ebp
ret