Function at 0x5666b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc34
mov eax, dword [0x6a50f0]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x420], 0
push 0x3ff
push 0
lea eax, [ebp - 0x41f]
push eax
call fcn.00532490
add esp, 0xc
mov byte [ebp - 0xc28], 0
push 0x3ff
push 0
lea ecx, [ebp - 0xc27]
push ecx
call fcn.00532490
add esp, 0xc
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x828], 0
push 0x3ff
push 0
lea edx, [ebp - 0x827]
push edx
call fcn.00532490
add esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 0x424], 0x400
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x58]
push ecx
push str.borrow__x
lea edx, [ebp - 0x420]
push edx
call fcn.00535a83
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0x20007
push 0
push 0x693150
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x566805
cmp dword [ebp + 8], 0
je 0x5667f7
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x5667c0
xor edx, edx
je 0x5667c0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0xc30], ecx
jmp 0x5667ca
mov dword [ebp - 0xc30], 0xffffff86
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc30]
mov dword [edx + 0x80], eax
push 0
push 0xff
push 0
push 0
push 0x265
push 0xffffffffffffff86
mov ecx, dword [ebp + 8]
push ecx
call fcn.00576350
add esp, 0x1c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
jmp 0x5669e5
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc34], eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x424]
push ecx
lea edx, [ebp - 0x828]
push edx
mov eax, dword [ebp - 0xc34]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
test eax, eax
jne 0x5669d9
mov eax, dword [ebp - 0x424]
mov byte [ebp + eax - 0x828], 0
lea ecx, [ebp - 0x828]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
jmp 0x56686f
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 0
je 0x56689f
cmp dword [ebp - 4], 2
jae 0x56689f
push 0
push 0x2d
mov eax, dword [ebp - 0xc]
push eax
call fcn.00527f80
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x56689d
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x566866
push 0
lea edx, [ebp - 0x828]
push edx
lea eax, [ebp - 0xc28]
push eax
call fcn.00527900
add esp, 0xc
push 0
push 0x2d
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00527f80
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x5668d6
mov edx, dword [ebp - 0x1c]
mov byte [edx], 0
cmp dword [ebp - 0xc], 0
je 0x5669ca
push 0
push 0
lea eax, [ebp - 0x420]
push eax
call fcn.00527f10
add esp, 8
push eax
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x828]
push edx
call fcn.00527de0
add esp, 0x10
test eax, eax
jne 0x5669ca
push 0
mov eax, dword [ebp + 0xc]
add eax, 4
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00527cc0
add esp, 0xc
test eax, eax
jne 0x5669ca
mov dword [ebp - 0x428], 0
push 1
lea edx, [ebp - 0x428]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc28]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0057cdd0
add esp, 0x14
cmp dword [ebp - 0x428], 0
je 0x5669c8
mov dword [ebp - 0xc2c], 0
mov eax, dword [ebp - 0xc2c]
cmp eax, dword [ebp - 0x428]
jae 0x5669a8
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc2c]
movsx edx, byte [ecx]
xor edx, 0xff
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc2c]
mov byte [eax], dl
mov ecx, dword [ebp - 0xc2c]
add ecx, 2
mov dword [ebp - 0xc2c], ecx
jmp 0x56696c
push 1
mov edx, dword [ebp - 0x428]
push edx
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0xc28]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0057d0d0
add esp, 0x14
jmp 0x5669d9
mov dword [ebp - 0x424], 0x400
jmp 0x566805
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00531ddb
mov esp, ebp
pop ebp
ret