Function at 0x45e560
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f21a0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x533014]
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.0045ed00
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x45e5c7
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 0x45e722
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 0x5133d8
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.0045e560
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x45e675
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x45e6bb
mov ecx, dword [ebp - 0x34]
inc eax
cmp eax, 0x1000
jb 0x45e6b2
test cl, 0x1f
jne 0x45e7d1
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x45e7d1
sub ecx, eax
cmp ecx, 4
jb 0x45e7d1
cmp ecx, 0x23
ja 0x45e7d1
mov ecx, eax
push ecx
call fcn.00463708
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 0x45e717
mov ecx, dword [ebp - 0x50]
inc eax
cmp eax, 0x1000
jb 0x45e70e
test cl, 0x1f
jne 0x45e7d1
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x45e7d1
sub ecx, eax
cmp ecx, 4
jb 0x45e7d1
cmp ecx, 0x23
ja 0x45e7d1
mov ecx, eax
push ecx
call fcn.00463708
add esp, 4
add esi, 0x18
cmp esi, dword [ebp - 0x5c]
jmp 0x45e5cf
cmp dword [edi + 0x24], 0
je 0x45e77e
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 0x45e777
push str.RegDeleteKeyExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45e777
cmp dword [edi + 0x18], 0x10
lea ecx, [edi + 4]
jb 0x45e75b
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 0x45e79f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [edi + 0x18], 0x10
lea eax, [edi + 4]
jb 0x45e789
mov eax, dword [eax]
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x45e79a
xor al, al
jmp 0x45e79c
mov al, 1
mov byte [ebp - 0x51], al
test ebx, ebx
je 0x45e81d
push dword [ebp - 0x64]
mov edx, dword [ebp - 0x5c]
push ecx
mov ecx, ebx
call fcn.0045fcd0
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 0x45e7d6
call fcn.004a8769
lea eax, [eax + eax*2]
shl eax, 3
cmp eax, 0x1000
jb 0x45e811
test bl, 0x1f
je 0x45e7ed
call fcn.004a8769
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x45e7f9
call fcn.004a8769
sub ebx, eax
cmp ebx, 4
jae 0x45e805
call fcn.004a8769
cmp ebx, 0x23
jbe 0x45e80f
call fcn.004a8769
mov ebx, eax
push ebx
call fcn.00463708
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.0046370d
mov esp, ebp
pop ebp
ret