Function at 0x461760
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5580
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x536014]
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 edi, ecx
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 0
push eax
call fcn.00461f00
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4617c7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [edi + 0x1c], 0
mov ebx, dword [ebp - 0x60]
mov esi, ebx
cmp ebx, dword [ebp - 0x5c]
je 0x461922
push 0xffffffffffffffff
lea eax, [edi + 4]
mov dword [ebp - 0x3c], 0xf
push 0
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
call fcn.00409d10
push 1
push 0x516498
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.00409a60
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x50]
call fcn.00409960
mov eax, dword [edi]
lea ecx, [ebp - 0x34]
push 0xffffffffffffffff
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x50]
push 0
push eax
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
call fcn.00409d10
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00461760
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x461875
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x4618bb
mov ecx, dword [ebp - 0x34]
inc eax
cmp eax, 0x1000
jb 0x4618b2
test cl, 0x1f
jne 0x4619d1
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4619d1
sub ecx, eax
cmp ecx, 4
jb 0x4619d1
cmp ecx, 0x23
ja 0x4619d1
mov ecx, eax
push ecx
call fcn.00466902
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
cmp eax, 0x10
jb 0x461917
mov ecx, dword [ebp - 0x50]
inc eax
cmp eax, 0x1000
jb 0x46190e
test cl, 0x1f
jne 0x4619d1
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4619d1
sub ecx, eax
cmp ecx, 4
jb 0x4619d1
cmp ecx, 0x23
ja 0x4619d1
mov ecx, eax
push ecx
call fcn.00466902
add esp, 4
add esi, 0x18
cmp esi, dword [ebp - 0x5c]
jmp 0x4617cf
cmp dword [edi + 0x24], 0
je 0x46197e
push str.ADVAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov dword [ebp - 0x64], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x461977
push str.RegDeleteKeyExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x461977
cmp dword [edi + 0x18], 0x10
lea ecx, [edi + 4]
jb 0x46195b
mov ecx, dword [ecx]
push 0
push dword [edi + 0x24]
push ecx
push dword [edi]
call eax
test eax, eax
push esi
sete byte [ebp - 0x51]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [ebp - 0x51]
jmp 0x46199f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [edi + 0x18], 0x10
lea eax, [edi + 4]
jb 0x461989
mov eax, dword [eax]
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x46199a
xor al, al
jmp 0x46199c
mov al, 1
mov byte [ebp - 0x51], al
test ebx, ebx
je 0x461a1d
push dword [ebp - 0x64]
mov edx, dword [ebp - 0x5c]
push ecx
mov ecx, ebx
call fcn.00462ed0
mov ecx, dword [ebp - 0x58]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0xaaaaaaa
jbe 0x4619d6
call fcn.004ab969
lea eax, [eax + eax*2]
shl eax, 3
cmp eax, 0x1000
jb 0x461a11
test bl, 0x1f
je 0x4619ed
call fcn.004ab969
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x4619f9
call fcn.004ab969
sub ebx, eax
cmp ebx, 4
jae 0x461a05
call fcn.004ab969
cmp ebx, 0x23
jbe 0x461a0f
call fcn.004ab969
mov ebx, eax
push ebx
call fcn.00466902
mov al, byte [ebp - 0x51]
add esp, 4
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.00466907
mov esp, ebp
pop ebp
ret