Function at 0x51c7c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x615ce2
mov eax, dword fs:[0]
push eax
mov eax, 0x2280
call fcn.005b2440
mov eax, dword [0x6ba394]
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 dword [ebp - 0x2278], edx
mov dword [ebp - 0x2270], 0
mov dword [ebp - 0x226c], 0
mov dword [ebp - 0x2268], 0
mov dword [ebp - 4], 0
cmp dword [ecx + 0x14], 8
jb 0x51c825
mov ecx, dword [ecx]
push 0x20019
push ecx
push reloc.WS2_32.dll_closesocket
lea ecx, [ebp - 0x2270]
call fcn.004b19b0
test eax, eax
mov eax, dword [ebp - 0x2270]
je 0x51c84c
xor bl, bl
jmp 0x51cbd6
lea ecx, [ebp - 0x2250]
mov dword [ebp - 0x2254], 0x1ffe
push ecx
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x2250], 0x208
push ecx
lea ecx, [ebp - 0x224c]
xor ebx, ebx
push ecx
push ebx
lea ecx, [ebp - 0x2254]
mov dword [ebp - 0x224c], ebx
push ecx
lea ecx, [ebp - 0x2218]
push ecx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x51cbce
nop dword [eax]
mov eax, dword [ebp - 0x224c]
cmp eax, 1
je 0x51c8b4
cmp eax, 2
jne 0x51cb75
xor eax, eax
mov dword [ebp - 0x221c], 7
mov dword [ebp - 0x2220], 0
mov word [ebp - 0x2230], ax
cmp word [ebp - 0x2218], ax
jne 0x51c8de
xor ecx, ecx
jmp 0x51c8f6
lea ecx, [ebp - 0x2218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51c8e7
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x2218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.004346a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2230]
mov esi, dword [ebp - 0x221c]
lea edi, [ebp - 0x2230]
mov edx, dword [ebp - 0x2230]
cmp esi, 8
mov eax, dword [ebp - 0x2220]
cmovae ecx, edx
mov dword [ebp - 0x2274], fcn.005d6049
cmovae edi, edx
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x2230]
cmovae ecx, edx
lea edx, [ebp - 0x2274]
push edx
push edi
push eax
push ecx
call fcn.0042c330
mov edi, dword [ebp - 0x2278]
lea eax, [ebp - 0x2230]
add esp, 0x10
mov ecx, edi
mov esi, dword [edi + 4]
push eax
lea eax, [ebp - 0x227c]
push eax
call fcn.0041ca10
xor eax, eax
mov dword [ebp - 0x2234], 7
mov dword [ebp - 0x2238], 0
mov word [ebp - 0x2248], ax
cmp dword [ebp - 0x227c], esi
je 0x51ca2c
cmp word [ebp - 0x218], ax
je 0x51c9c4
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x51c9b5
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2248]
call fcn.004346a0
lea eax, [ebp - 0x2230]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x2284]
mov ecx, edi
push eax
call fcn.0051d340
mov ecx, dword [ebp - 0x2284]
lea eax, [ebp - 0x2248]
push eax
add ecx, 0x20
call fcn.004ae910
mov eax, dword [ebp - 0x2234]
cmp eax, 8
jb 0x51cb53
inc eax
lea ecx, [ebp - 0x2248]
push eax
push dword [ebp - 0x2248]
call fcn.00434bd0
jmp 0x51cb53
cmp word [ebp - 0x218], ax
jne 0x51ca39
xor ecx, ecx
jmp 0x51ca51
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51ca42
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2248]
call fcn.004346a0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2230]
mov byte [ebp - 0x2264], 0
lea ecx, [ebp - 0x2260]
push dword [ebp - 0x2264]
mov dword [ebp - 0x2260], 0
push eax
lea eax, [ebp - 0x2248]
mov dword [ebp - 0x225c], 0
push eax
mov dword [ebp - 0x2258], 0
call fcn.004cfb60
push fcn.00413860
push 1
push 0x18
lea eax, [ebp - 0x2248]
mov byte [ebp - 4], 5
push eax
call fcn.005b1bf1
lea eax, [ebp - 0x2230]
mov ecx, edi
push eax
lea eax, [ebp - 0x228c]
push eax
call fcn.0051d340
mov ecx, dword [ebp - 0x228c]
lea eax, [ebp - 0x2260]
push eax
add ecx, 0x20
call fcn.004958e0
mov esi, dword [ebp - 0x2260]
test esi, esi
je 0x51cb53
push dword [ebp - 0x2264]
lea eax, [ebp - 0x2260]
push eax
push dword [ebp - 0x225c]
push esi
call fcn.004342f0
mov ecx, dword [ebp - 0x2258]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 0x10
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.00434340
mov dword [ebp - 0x2260], 0
mov dword [ebp - 0x225c], 0
mov dword [ebp - 0x2258], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x221c]
cmp eax, 8
jb 0x51cb75
inc eax
lea ecx, [ebp - 0x2230]
push eax
push dword [ebp - 0x2230]
call fcn.00434bd0
lea eax, [ebp - 0x2250]
mov dword [ebp - 0x2254], 0x1ffe
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x2250], 0x208
push eax
lea eax, [ebp - 0x224c]
mov dword [ebp - 0x224c], 0
push eax
push 0
lea eax, [ebp - 0x2254]
inc ebx
push eax
lea eax, [ebp - 0x2218]
push eax
push ebx
push dword [ebp - 0x2270]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x51c8a0
mov eax, dword [ebp - 0x2270]
mov bl, 1
test eax, eax
je 0x51cbe1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
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.005b168a
mov esp, ebp
pop ebp
ret