Function at 0x54c6b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b7578
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x63a404]
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.0056e7bf
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 0x54c9f4
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 0x54c85c
xor esi, esi
cmp dword [ebp - 0x220], esi
jbe 0x54c856
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 0x54c849
mov eax, dword [ebp - 0x218]
lea eax, [eax*2 + 2]
cmp eax, 0x200
jae 0x54ca12
xor ecx, ecx
mov word [ebp + eax - 0x210], cx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x238]
call fcn.00544840
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
mov eax, dword [ebp - 0x228]
push ecx
cmp dword [ebp - 0x224], eax
je 0x54c810
mov ecx, eax
call fcn.00544950
add dword [ebp - 0x228], 8
jmp 0x54c81c
push eax
lea ecx, [ebp - 0x22c]
call fcn.0054da50
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x54c83f
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
inc esi
cmp esi, dword [ebp - 0x220]
jb 0x54c786
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 0x54c9a6
lea eax, [ecx + edi*8]
mov ecx, ebx
push 0
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0054bfa0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x54c939
push 8
call fcn.0056e7bf
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.0054cc80
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.0056ea97
mov edx, eax
add esp, 4
mov eax, dword [ebp - 0x214]
mov dword [eax], edx
test esi, esi
je 0x54c913
lea ecx, [ebx*4]
push ecx
push esi
push edx
call fcn.00572a60
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 0x54c92d
push 4
push esi
call fcn.0056ea89
add esp, 8
mov ebx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
test eax, eax
je 0x54c986
cmp eax, 0x80000000
je 0x54c96f
cmp eax, 0x80000005
je 0x54c96f
cmp eax, reloc.WS2_32.dll_accept
je 0x54c96f
cmp eax, reloc.WS2_32.dll_bind
je 0x54c96f
cmp eax, 0x80000004
je 0x54c96f
cmp eax, reloc.WS2_32.dll_closesocket
je 0x54c96f
xor cl, cl
jmp 0x54c971
mov cl, 1
test cl, cl
jne 0x54c97c
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 0x54c877
test ecx, ecx
je 0x54c9ee
mov edx, dword [ebp - 0x228]
push ecx
call fcn.0054dcc0
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 0x54c9e4
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x54ca17
push ecx
push edx
call fcn.0056ea89
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.0056e5b3
mov esp, ebp
pop ebp
ret
call fcn.0056e6e5
call fcn.0057995e
int3