Function at 0x45eff0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ec2b
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x577760]
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 esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, esi
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], ebx
mov byte [ebp - 0x22c], bl
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x45f050
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x22c]
call fcn.0041c5b0
mov dword [ebp - 4], ebx
inc dword [0x57afe8]
cmp dword [ebp - 0x218], 0x10
mov eax, dword [ebp - 0x22c]
jae 0x45f084
lea eax, [ebp - 0x22c]
lea ecx, [ebp - 0x234]
push ecx
push 0xf003f
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x45f0c3
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x218], 0x10
jb 0x45f0bc
mov edx, dword [ebp - 0x22c]
push edx
call fcn.004bf135
add esp, 4
xor al, al
jmp 0x45f2fa
push ebx
push ebx
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x258]
push edx
mov edx, dword [ebp - 0x234]
push ebx
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x250]
push ecx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x45f123
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x218], 0x10
jb 0x45f0bc
mov eax, dword [ebp - 0x22c]
push eax
call fcn.004bf135
add esp, 4
xor al, al
jmp 0x45f2fa
mov edi, dword [ebp - 0x250]
dec edi
mov dword [ebp - 0x230], edi
cmp edi, ebx
jl 0x45f2ac
jmp 0x45f146
mov edi, dword [ebp - 0x230]
push 0xff
lea ecx, [ebp - 0x20f]
push ebx
push ecx
mov byte [ebp - 0x210], bl
call fcn.004c5420
mov eax, dword [ebp - 0x234]
add esp, 0xc
push 0x100
lea edx, [ebp - 0x210]
push edx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0xff
lea ecx, [ebp - 0x10f]
push ebx
push ecx
mov byte [ebp - 0x110], bl
call fcn.004c5420
mov eax, dword [ebp - 0x22c]
add esp, 0xc
cmp dword [ebp - 0x218], 0x10
jae 0x45f1ab
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x110]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x45f1b3
lea edi, [ebp - 0x110]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x45f1c4
mov dx, word [0x561194]
lea eax, [ebp - 0x210]
mov word [edi], dx
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x45f1e0
lea edi, [ebp - 0x110]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x45f1f0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x23c]
push eax
and ecx, 3
push 0xf003f
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x238]
push ebx
lea ecx, [ebp - 0x110]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45f29a
push ebx
push ebx
lea edx, [ebp - 0x248]
push edx
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x258]
push ecx
mov ecx, dword [ebp - 0x23c]
push ebx
lea edx, [ebp - 0x254]
push edx
lea eax, [ebp - 0x24c]
push eax
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x45f27f
cmp dword [ebp - 0x24c], ebx
je 0x45f27f
lea edx, [ebp - 0x110]
push edx
push esi
call fcn.0045eff0
add esp, 8
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x110]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
dec dword [ebp - 0x230]
jns 0x45f140
mov esi, dword [ebp - 0x244]
cmp dword [0x57afe8], ebx
jne 0x45f2c2
mov edx, dword [ebp - 0x238]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [ebp - 0x234]
cmp eax, ebx
je 0x45f2d3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
dec dword [0x57afe8]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x218], 0x10
jb 0x45f2f8
mov eax, dword [ebp - 0x22c]
push eax
call fcn.004bf135
add esp, 4
mov al, 1
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.004be8b8
mov esp, ebp
pop ebp
ret