Function at 0x5676b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc34
mov eax, dword [0x6a5f90]
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.00532e90
add esp, 0xc
mov byte [ebp - 0xc28], 0
push 0x3ff
push 0
lea ecx, [ebp - 0xc27]
push ecx
call fcn.00532e90
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.00532e90
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.00536483
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0x20007
push 0
push 0x693fe8
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x567805
cmp dword [ebp + 8], 0
je 0x5677f7
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x5677c0
xor edx, edx
je 0x5677c0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0xc30], ecx
jmp 0x5677ca
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.00577350
add esp, 0x1c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
jmp 0x5679e5
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 0x5679d9
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 0x56786f
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 0
je 0x56789f
cmp dword [ebp - 4], 2
jae 0x56789f
push 0
push 0x2d
mov eax, dword [ebp - 0xc]
push eax
call fcn.00528980
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x56789d
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x567866
push 0
lea edx, [ebp - 0x828]
push edx
lea eax, [ebp - 0xc28]
push eax
call fcn.00528300
add esp, 0xc
push 0
push 0x2d
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00528980
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x5678d6
mov edx, dword [ebp - 0x1c]
mov byte [edx], 0
cmp dword [ebp - 0xc], 0
je 0x5679ca
push 0
push 0
lea eax, [ebp - 0x420]
push eax
call fcn.00528910
add esp, 8
push eax
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x828]
push edx
call fcn.005287e0
add esp, 0x10
test eax, eax
jne 0x5679ca
push 0
mov eax, dword [ebp + 0xc]
add eax, 4
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005286c0
add esp, 0xc
test eax, eax
jne 0x5679ca
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.0057ddd0
add esp, 0x14
cmp dword [ebp - 0x428], 0
je 0x5679c8
mov dword [ebp - 0xc2c], 0
mov eax, dword [ebp - 0xc2c]
cmp eax, dword [ebp - 0x428]
jae 0x5679a8
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 0x56796c
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.0057e0d0
add esp, 0x14
jmp 0x5679d9
mov dword [ebp - 0x424], 0x400
jmp 0x567805
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.005327db
mov esp, ebp
pop ebp
ret