Function at 0x4e0ccd
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x48
mov eax, 0x535f15
call fcn.004f1db2
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
push 0x559c0c
mov dword [ebp - 0x54], eax
call fcn.00416680
pop ecx
push eax
push 0
push 0x559c0c
mov ecx, edi
call fcn.0041aff0
mov dword [ebp - 0x50], eax
cmp eax, 0xffffffff
jne 0x4e0d11
xor eax, eax
jmp 0x4e0eeb
push eax
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0041a570
and dword [ebp - 4], 0
mov ecx, edi
mov eax, dword [ebp - 0x50]
push 0xffffffffffffffff
inc eax
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041a570
and dword [ebp - 0x48], 0
lea eax, [ebp - 0x28]
push 8
pop edi
cmp dword [ebp - 0x14], edi
push 0x53ad60
cmovae eax, dword [ebp - 0x28]
push eax
mov byte [ebp - 4], 1
call fcn.004f3482
pop ecx
pop ecx
test eax, eax
je 0x4e0e1a
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
push str.HKCR
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004f3482
pop ecx
pop ecx
test eax, eax
je 0x4e0e1a
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
push str.HKEY_CURRENT_USER
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004f3482
pop ecx
pop ecx
test eax, eax
je 0x4e0e13
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
push str.HKCU
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004f3482
pop ecx
pop ecx
test eax, eax
je 0x4e0e13
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
push str.HKEY_LOCAL_MACHINE
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004f3482
pop ecx
pop ecx
test eax, eax
je 0x4e0e0c
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
push str.HKLM
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004f3482
pop ecx
pop ecx
test eax, eax
je 0x4e0e0c
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
push str.HKEY_USERS
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004f3482
pop ecx
pop ecx
test eax, eax
jne 0x4e0e47
mov ecx, reloc.WS2_32.dll_closesocket
jmp 0x4e0e1f
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x4e0e1f
mov ecx, reloc.WS2_32.dll_accept
jmp 0x4e0e1f
mov ecx, SysReAllocString
cmp dword [ebp - 0x30], 0
jne 0x4e0e2a
mov dword [ebp - 0x48], ecx
jmp 0x4e0e43
cmp dword [ebp - 0x2c], edi
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ecx, dword [ebp - 0x48]
test ecx, ecx
jne 0x4e0e4e
xor edi, edi
jmp 0x4e0ed1
xor edx, edx
mov dword [ebp - 0x4c], 1
mov edi, edx
mov dword [ebp - 0x44], edx
cmp dword [esi + 0x10], edx
jne 0x4e0e65
mov esi, edx
jmp 0x4e0e6d
cmp dword [esi + 0x14], 8
jb 0x4e0e6d
mov esi, dword [esi]
lea eax, [ebp - 0x44]
push eax
push edx
lea eax, [ebp - 0x4c]
push eax
push edx
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4e0ed1
push eax
mov eax, dword [ebp - 0x44]
mov ecx, ebx
add eax, 0x10
push eax
call fcn.00427e60
add dword [ebp - 0x44], 2
cmp dword [ebx + 0x14], 0x10
jb 0x4e0ea0
mov eax, dword [ebx]
jmp 0x4e0ea2
mov eax, ebx
lea ecx, [ebp - 0x44]
push ecx
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push esi
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4e0ed1
push eax
push dword [ebp - 0x44]
mov ecx, ebx
call fcn.00427e60
mov ecx, dword [ebp - 0x54]
xor edi, edi
mov eax, dword [ebp - 0x4c]
inc edi
mov dword [ecx], eax
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00417d20
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00417d20
mov eax, edi
call fcn.004f1d61
ret 0x10