Function at 0x4ac6fd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
push 0x50f8e4
mov dword [ebp - 0x48], eax
call fcn.00405d70
pop ecx
push eax
push 0
push 0x50f8e4
mov ecx, ebx
call fcn.00409a10
mov dword [ebp - 0x44], eax
cmp eax, 0xffffffff
jne 0x4ac748
xor eax, eax
jmp 0x4ac937
and dword [ebp - 0xc], 0
xor ecx, ecx
push eax
push ecx
mov word [ebp - 0x1c], cx
lea ecx, [ebp - 0x1c]
push ebx
mov dword [ebp - 8], 7
call fcn.004072a0
and dword [ebp - 0x24], 0
lea ecx, [ebp - 0x34]
xor eax, eax
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov eax, dword [ebp - 0x44]
push 0xffffffffffffffff
inc eax
push eax
push ebx
call fcn.004072a0
and dword [ebp - 0x3c], 0
lea eax, [ebp - 0x1c]
push 8
pop ebx
cmp dword [ebp - 8], ebx
push str.HKEY_CLASSES_ROOT
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.004bcbf4
pop ecx
pop ecx
test eax, eax
je 0x4ac866
cmp dword [ebp - 8], ebx
lea eax, [ebp - 0x1c]
push str.HKCR
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.004bcbf4
pop ecx
pop ecx
test eax, eax
je 0x4ac866
cmp dword [ebp - 8], ebx
lea eax, [ebp - 0x1c]
push str.HKEY_CURRENT_USER
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.004bcbf4
pop ecx
pop ecx
test eax, eax
je 0x4ac85f
cmp dword [ebp - 8], ebx
lea eax, [ebp - 0x1c]
push str.HKCU
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.004bcbf4
pop ecx
pop ecx
test eax, eax
je 0x4ac85f
cmp dword [ebp - 8], ebx
lea eax, [ebp - 0x1c]
push str.HKEY_LOCAL_MACHINE
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.004bcbf4
pop ecx
pop ecx
test eax, eax
je 0x4ac858
cmp dword [ebp - 8], ebx
lea eax, [ebp - 0x1c]
push str.HKLM
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.004bcbf4
pop ecx
pop ecx
test eax, eax
je 0x4ac858
cmp dword [ebp - 8], ebx
lea eax, [ebp - 0x1c]
push str.HKEY_USERS
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.004bcbf4
pop ecx
pop ecx
test eax, eax
jne 0x4ac893
mov ecx, reloc.WS2_32.dll_closesocket
jmp 0x4ac86b
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x4ac86b
mov ecx, reloc.WS2_32.dll_accept
jmp 0x4ac86b
mov ecx, SysReAllocStringLen
cmp dword [ebp - 0x24], 0
jne 0x4ac876
mov dword [ebp - 0x3c], ecx
jmp 0x4ac88f
cmp dword [ebp - 0x20], ebx
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
jne 0x4ac89a
xor ebx, ebx
jmp 0x4ac91d
xor edx, edx
mov dword [ebp - 0x40], 1
mov ebx, edx
mov dword [ebp - 0x38], edx
cmp dword [esi + 0x10], edx
jne 0x4ac8b1
mov esi, edx
jmp 0x4ac8b9
cmp dword [esi + 0x14], 8
jb 0x4ac8b9
mov esi, dword [esi]
lea eax, [ebp - 0x38]
push eax
push edx
lea eax, [ebp - 0x40]
push eax
push edx
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ac91d
push eax
mov eax, dword [ebp - 0x38]
mov ecx, edi
add eax, 0x10
push eax
call fcn.00411b90
add dword [ebp - 0x38], 2
cmp dword [edi + 0x14], 0x10
jb 0x4ac8ec
mov eax, dword [edi]
jmp 0x4ac8ee
mov eax, edi
lea ecx, [ebp - 0x38]
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
push 0
push esi
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ac91d
push eax
push dword [ebp - 0x38]
mov ecx, edi
call fcn.00411b90
mov ecx, dword [ebp - 0x48]
xor ebx, ebx
mov eax, dword [ebp - 0x40]
inc ebx
mov dword [ecx], eax
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00403650
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00403650
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret 0x10