Function at 0x54d4a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8398
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x63b404]
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 ebx, ecx
mov dword [ebp - 0x230], ebx
push 8
mov dword [ebp - 0x23c], 0
call fcn.0056f5ce
mov esi, eax
add esp, 4
mov dword [ebp - 0x214], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, dword [ebx]
test eax, eax
je 0x54d7e4
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 0
push ecx
push 0
push 0
push 0
push eax
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x23c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x54d64c
xor esi, esi
cmp dword [ebp - 0x220], esi
jbe 0x54d646
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x100
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebx]
call edi
test eax, eax
jne 0x54d639
mov eax, dword [ebp - 0x218]
lea eax, [eax*2 + 2]
cmp eax, 0x200
jae 0x54d802
xor ecx, ecx
mov word [ebp + eax - 0x210], cx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x238]
call fcn.00545630
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
mov eax, dword [ebp - 0x228]
push ecx
cmp dword [ebp - 0x224], eax
je 0x54d600
mov ecx, eax
call fcn.00545740
add dword [ebp - 0x228], 8
jmp 0x54d60c
push eax
lea ecx, [ebp - 0x22c]
call fcn.0054e840
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x54d62f
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
inc esi
cmp esi, dword [ebp - 0x220]
jb 0x54d576
mov esi, dword [ebp - 0x214]
mov eax, dword [ebp - 0x228]
xor edi, edi
mov ecx, dword [ebp - 0x22c]
sub eax, ecx
sar eax, 3
test eax, eax
je 0x54d796
lea eax, [ecx + edi*8]
mov ecx, ebx
push 0
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0054cd90
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x54d729
push 8
call fcn.0056f5ce
add esp, 4
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x218]
mov dword [eax + 4], ecx
mov ecx, eax
push dword [ebp - 0x21c]
call fcn.0054da70
mov ebx, dword [esi + 4]
mov edx, 4
mov ecx, dword [ebp - 0x214]
mov esi, dword [esi]
lea eax, [ebx + 1]
mov dword [ecx + 4], eax
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056f8a6
mov edx, eax
add esp, 4
mov eax, dword [ebp - 0x214]
mov dword [eax], edx
test esi, esi
je 0x54d703
lea ecx, [ebx*4]
push ecx
push esi
push edx
call fcn.00573870
mov eax, dword [ebp - 0x214]
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [ebp - 0x220]
mov dword [eax + ebx*4], ecx
test esi, esi
je 0x54d71d
push 4
push esi
call fcn.0056f898
add esp, 8
mov ebx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
test eax, eax
je 0x54d776
cmp eax, 0x80000000
je 0x54d75f
cmp eax, 0x80000005
je 0x54d75f
cmp eax, reloc.WS2_32.dll_accept
je 0x54d75f
cmp eax, reloc.WS2_32.dll_bind
je 0x54d75f
cmp eax, 0x80000004
je 0x54d75f
cmp eax, reloc.WS2_32.dll_closesocket
je 0x54d75f
xor cl, cl
jmp 0x54d761
mov cl, 1
test cl, cl
jne 0x54d76c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x21c], 0
mov eax, dword [ebp - 0x228]
inc edi
mov ecx, dword [ebp - 0x22c]
sub eax, ecx
mov esi, dword [ebp - 0x214]
sar eax, 3
cmp edi, eax
jb 0x54d667
test ecx, ecx
je 0x54d7de
mov edx, dword [ebp - 0x228]
push ecx
call fcn.0054eab0
mov ecx, dword [ebp - 0x224]
add esp, 4
mov edx, dword [ebp - 0x22c]
sub ecx, edx
and ecx, 0xfffffff8
mov eax, edx
cmp ecx, 0x1000
jb 0x54d7d4
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x54d807
push ecx
push edx
call fcn.0056f898
add esp, 8
mov esi, dword [ebp - 0x214]
mov eax, esi
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.0056f3c2
mov esp, ebp
pop ebp
ret
call fcn.0056f4f4
call fcn.0057a76e
int3