Function at 0x57c1c2
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x2b0
mov eax, 0x658d93
call fcn.00597eb5
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x29c], edi
mov dword [ebp - 0x2a0], ebx
lea ecx, [ebp - 0x2b4]
mov dword [ebp - 4], 2
call fcn.00555344
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x298], 0xffffffff
sub eax, ebx
mov byte [ebp - 4], 3
je 0x57c22e
dec eax
je 0x57c227
dec eax
je 0x57c220
dec eax
je 0x57c219
dec eax
jne 0x57c220
mov ecx, Ordinal_9
jmp 0x57c233
mov ecx, reloc.WS2_32.dll_closesocket
jmp 0x57c233
mov ecx, reloc.WS2_32.dll_bind
jmp 0x57c233
mov ecx, reloc.WS2_32.dll_accept
jmp 0x57c233
mov ecx, bind
cmp dword [ebp + 0x24], 8
mov eax, dword [ebp + 0x10]
jae 0x57c23f
lea eax, [ebp + 0x10]
lea edx, [ebp - 0x294]
push edx
push 0x20019
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x57c432
cmp dword [ebp + 0x40], 8
mov eax, dword [ebp + 0x2c]
jae 0x57c268
lea eax, [ebp + 0x2c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
push ebx
lea ecx, [ebp - 0x298]
push ecx
push ebx
push eax
push dword [ebp - 0x294]
call esi
cmp eax, ebx
jne 0x57c426
cmp dword [ebp - 0x298], ebx
jbe 0x57c426
cmp dword [ebp - 0x298], 2
jbe 0x57c353
push 4
pop eax
cmp dword [ebp - 0x298], eax
jne 0x57c426
cmp dword [ebp + 0x40], 8
mov dword [ebp - 0x2a4], eax
mov eax, dword [ebp + 0x2c]
jae 0x57c2c3
lea eax, [ebp + 0x2c]
lea ecx, [ebp - 0x2a4]
push ecx
lea ecx, [ebp - 0x2b8]
push ecx
lea ecx, [ebp - 0x298]
push ecx
push ebx
push eax
push dword [ebp - 0x294]
call esi
cmp eax, ebx
je 0x57c305
push dword [ebp - 0x294]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x2b4]
push eax
mov ecx, edi
call fcn.00555d12
jmp 0x57c440
push 0xa
push 0x40
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x2b8]
call fcn.0058e5de
add esp, 0xc
lea eax, [ebp - 0x90]
mov dword [ebp - 0x2bc], esp
mov esi, esp
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
cmp eax, ebx
jne 0x57c343
push 0x8007000e
call fcn.0047e6f0
lea ecx, [ebp - 0x2b4]
call fcn.00555643
jmp 0x57c426
cmp dword [ebp + 0x40], 8
mov eax, dword [ebp + 0x2c]
mov edi, 0x200
mov dword [ebp - 0x2a4], edi
jae 0x57c36a
lea eax, [ebp + 0x2c]
lea ecx, [ebp - 0x2a4]
push ecx
lea ecx, [ebp - 0x290]
push ecx
lea ecx, [ebp - 0x298]
push ecx
push ebx
push eax
push dword [ebp - 0x294]
call esi
cmp eax, ebx
je 0x57c3d6
mov ecx, dword [ebp - 0x29c]
lea eax, [ebp - 0x2b4]
push eax
call fcn.00555d12
xor esi, esi
inc esi
lea ecx, [ebp - 0x2b4]
mov dword [ebp - 0x2a0], esi
mov byte [ebp - 4], 2
call fcn.00555355
push ebx
push esi
lea ecx, [ebp + 0x10]
call fcn.00401da0
push ebx
push esi
lea ecx, [ebp + 0x2c]
call fcn.00401da0
mov eax, dword [ebp - 0x29c]
jmp 0x57c46e
mov eax, dword [ebp - 0x2a4]
cmp eax, edi
jne 0x57c3ee
push dword [ebp - 0x294]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x57c38d
push ecx
mov byte [ebp + eax - 0x290], bl
lea eax, [ebp - 0x290]
mov dword [ebp - 0x2bc], esp
mov esi, esp
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
cmp eax, ebx
je 0x57c339
lea ecx, [ebp - 0x2b4]
call fcn.00555643
mov edi, dword [ebp - 0x29c]
push dword [ebp - 0x294]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x2b4]
push eax
mov ecx, edi
call fcn.00555d12
xor esi, esi
inc esi
lea ecx, [ebp - 0x2b4]
mov dword [ebp - 0x2a0], esi
mov byte [ebp - 4], 2
call fcn.00555355
push ebx
push esi
lea ecx, [ebp + 0x10]
call fcn.00401da0
push ebx
push esi
lea ecx, [ebp + 0x2c]
call fcn.00401da0
mov eax, edi
call fcn.00597f38
ret