Function at 0x4e1254
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x48
mov eax, 0x5365bc
call fcn.004f2332
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
push 0x55af84
mov dword [ebp - 0x54], eax
call fcn.00416680
pop ecx
push eax
push 0
push 0x55af84
mov ecx, edi
call fcn.0041aff0
mov dword [ebp - 0x50], eax
cmp eax, 0xffffffff
jne 0x4e1298
xor eax, eax
jmp 0x4e1472
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 0x53c108
cmovae eax, dword [ebp - 0x28]
push eax
mov byte [ebp - 4], 1
call fcn.004f38f9
pop ecx
pop ecx
test eax, eax
je 0x4e13a1
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
push str.HKCR
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004f38f9
pop ecx
pop ecx
test eax, eax
je 0x4e13a1
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
push str.HKEY_CURRENT_USER
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004f38f9
pop ecx
pop ecx
test eax, eax
je 0x4e139a
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
push str.HKCU
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004f38f9
pop ecx
pop ecx
test eax, eax
je 0x4e139a
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
push str.HKEY_LOCAL_MACHINE
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004f38f9
pop ecx
pop ecx
test eax, eax
je 0x4e1393
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
push str.HKLM
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004f38f9
pop ecx
pop ecx
test eax, eax
je 0x4e1393
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
push str.HKEY_USERS
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004f38f9
pop ecx
pop ecx
test eax, eax
jne 0x4e13ce
mov ecx, reloc.WS2_32.dll_closesocket
jmp 0x4e13a6
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x4e13a6
mov ecx, reloc.WS2_32.dll_accept
jmp 0x4e13a6
mov ecx, SysReAllocString
cmp dword [ebp - 0x30], 0
jne 0x4e13b1
mov dword [ebp - 0x48], ecx
jmp 0x4e13ca
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 0x4e13d5
xor edi, edi
jmp 0x4e1458
xor edx, edx
mov dword [ebp - 0x4c], 1
mov edi, edx
mov dword [ebp - 0x44], edx
cmp dword [esi + 0x10], edx
jne 0x4e13ec
mov esi, edx
jmp 0x4e13f4
cmp dword [esi + 0x14], 8
jb 0x4e13f4
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 0x4e1458
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 0x4e1427
mov eax, dword [ebx]
jmp 0x4e1429
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 0x4e1458
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.004f22e1
ret 0x10