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

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x56dc00
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5b3480]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x214]
push 8
mov dword [ebp - 4], 0
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00491411
lea ecx, [ebp - 0x24]
add esp, 4
mov dword [eax + 4], 0
mov dword [ebp - 0x24], eax
mov dword [eax], ecx
mov ecx, edi
call fcn.0054e450
mov ebx, eax
mov dword [ebp - 0x58], 0x5a23d8
lea eax, [ebp - 0x24]
mov dword [ebp - 0x54], eax
lea ecx, [ebp + 0x218]
lea eax, [ebp - 0x58]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x34], eax
xor esi, esi
mov byte [ebp - 4], 2
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x104
push eax
lea eax, [ebp]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x55004a
mov ecx, dword [ebp - 0x34]
lea eax, [ebp]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
test ecx, ecx
je 0x5501dc
mov eax, dword [ecx]
lea edx, [ebp - 0x30]
push edx
mov eax, dword [eax + 8]
call eax
test al, al
je 0x55004a
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x104
push eax
lea eax, [ebp]
inc esi
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x550000
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x550062
mov edx, dword [ecx]
lea eax, [ebp - 0x58]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
lea ebx, [esi + ecx]
cmp esi, ebx
je 0x5500af
nop
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
dec ecx
and ecx, esi
mov eax, dword [eax + ecx*4]
cmp dword [eax + 0x14], 7
jbe 0x550084
mov eax, dword [eax]
push eax
mov ecx, edi
call fcn.0054e450
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
jne 0x5500a3
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov byte [edi + 0xc], 1
jmp 0x5500a7
mov byte [ebp - 0xd], 0
inc esi
cmp esi, ebx
jne 0x550070
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x55011f
mov eax, dword [ebp - 0x18]
dec eax
add ecx, eax
mov eax, dword [ebp - 0x1c]
dec eax
and ecx, eax
mov eax, dword [ebp - 0x20]
mov esi, dword [eax + ecx*4]
mov ecx, dword [esi + 0x14]
cmp ecx, 7
jbe 0x5500fe
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x5500f4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5501e1
mov eax, edx
push ecx
push eax
call fcn.00491173
add esp, 8
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x14]
sub ecx, 1
mov dword [ebp - 0x14], ecx
jne 0x5500b3
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x550175
mov esi, dword [ebp - 0x1c]
test esi, esi
jle 0x55014e
lea ecx, [ecx]
mov eax, dword [ecx + esi*4 - 4]
dec esi
test eax, eax
je 0x550147
push 0x18
push eax
call fcn.00491173
mov ecx, dword [ebp - 0x20]
add esp, 8
test esi, esi
jg 0x550130
mov esi, dword [ebp - 0x1c]
shl esi, 2
mov eax, ecx
cmp esi, 0x1000
jb 0x55016b
mov ecx, dword [eax - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5501e1
push esi
push ecx
call fcn.00491173
add esp, 8
mov eax, dword [ebp - 0x24]
push 8
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
call fcn.00491173
mov ecx, dword [ebp + 0x23c]
add esp, 8
test ecx, ecx
je 0x5501b6
mov esi, dword [ecx]
lea eax, [ebp + 0x218]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004913e0
lea esp, [ebp + 0x20c]
pop ebp
ret
call fcn.0048f7f8
call fcn.004956fe
int3