Function at 0x464af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49997e
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4c6190]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
cmp dword [ecx + 0x14], 8
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], eax
jb 0x464b6c
mov ecx, dword [ecx]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0x18]
or eax, 1
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x464cdc
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, edi
jb 0x464b99
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x464cc9
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x464bcd
cmp eax, 2
je 0x464bcd
cmp eax, 7
jne 0x464cc9
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi + 0x10]
inc eax
shr eax, 1
cmp eax, ecx
ja 0x464bef
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x464be4
mov ecx, dword [esi]
xor edx, edx
mov dword [esi + 0x10], eax
mov word [ecx + eax*2], dx
jmp 0x464bfb
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.0040ed20
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x464c05
mov eax, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x464c0d
mov edi, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x464ca0
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x464c38
cmp eax, 2
je 0x464c38
cmp eax, 7
jne 0x464ca0
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi + 0x10]
shr eax, 1
cmp eax, ecx
ja 0x464c59
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x464c4e
mov ecx, dword [esi]
xor edx, edx
mov dword [esi + 0x10], eax
mov word [ecx + eax*2], dx
jmp 0x464c65
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.0040ed20
mov eax, dword [esi + 0x10]
test eax, eax
je 0x464cd1
mov edx, dword [esi + 0x14]
mov ecx, esi
cmp edx, 8
jb 0x464c78
mov ecx, dword [esi]
cmp word [ecx + eax*2 - 2], 0
jne 0x464cd1
lea ecx, [eax - 1]
mov eax, esi
cmp edx, 8
jb 0x464c8c
mov eax, dword [esi]
xor edx, edx
mov dword [esi + 0x10], ecx
mov word [eax + ecx*2], dx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x464ce7
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x464cb2
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x464ce7
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x464ce7
push 0x3f2
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00465ee7
mov esp, ebp
pop ebp
ret