Function at 0x46a187
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x816078]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0x624], eax
mov eax, esi
push edi
mov edi, ecx
and eax, 0x200
xor ecx, ecx
mov dword [ebp - 0x610], edi
or eax, ecx
je 0x46a2e4
push ecx
lea eax, [ebp - 0x60c]
mov dword [ebp - 0x60c], ecx
xor edx, edx
mov ecx, 0x6e2800
push eax
inc edx
call fcn.00436a6a
xor ecx, ecx
test eax, eax
jne 0x46a2e4
lea eax, [ebp - 0x614]
mov dword [ebp - 0x620], ecx
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x61c]
push eax
push ecx
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x204]
push eax
push ecx
jmp 0x46a2ae
and dword [ebp - 0x608], 0
cmp dword [ebp - 0x61c], 1
jne 0x46a27b
mov edx, dword [ebp - 0x618]
test edx, edx
je 0x46a27b
cmp dword [ebx], edx
jbe 0x46a27b
push edx
push dword [edi]
lea ecx, [ebp - 0x204]
call fcn.0043996e
test al, al
je 0x46a27b
mov edi, dword [ebp - 0x614]
lea edx, [ebp - 0x608]
mov eax, dword [ebx]
push dword [ebp - 0x624]
shr edi, 1
add eax, edi
lea ecx, [eax*2 - 2]
call fcn.00437765
test eax, eax
jns 0x46a3a0
mov edi, dword [ebp - 0x610]
mov eax, dword [ebp - 0x620]
lea ecx, [ebp - 0x614]
push ecx
lea ecx, [ebp - 0x404]
inc eax
push ecx
lea ecx, [ebp - 0x61c]
mov dword [ebp - 0x620], eax
push ecx
push 0
lea ecx, [ebp - 0x618]
push ecx
lea ecx, [ebp - 0x204]
push ecx
push eax
push dword [ebp - 0x60c]
mov dword [ebp - 0x618], 0x100
mov dword [ebp - 0x614], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x46a219
push dword [ebp - 0x60c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
and esi, 0x400
or esi, ecx
je 0x46a406
push 1
lea eax, [ebp - 0x61c]
mov dword [ebp - 0x61c], 0x200
push eax
lea edx, [ebp - 0x604]
mov ecx, 0x6e34d0
call fcn.00431d73
lea edi, [ebp - 0x604]
xor edx, edx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x46a320
sub edi, ecx
mov dword [ebp - 0x608], edx
sar edi, 1
je 0x46a406
mov ecx, dword [ebx]
lea edx, [ebp - 0x608]
push dword [ebp - 0x624]
add ecx, edi
add ecx, ecx
call fcn.00437765
test eax, eax
js 0x46a406
lea esi, [edi + edi]
push esi
lea eax, [ebp - 0x604]
push eax
push dword [ebp - 0x608]
call fcn.0064f310
mov eax, dword [ebx]
add eax, eax
push eax
mov eax, dword [ebp - 0x610]
push dword [eax]
mov eax, dword [ebp - 0x608]
add eax, esi
push eax
call fcn.0064f310
mov ecx, dword [ebp - 0x610]
add esp, 0x18
mov eax, dword [ebp - 0x608]
mov dword [ecx], eax
add dword [ebx], edi
jmp 0x46a402
mov edx, dword [ebx]
lea esi, [edi*2 - 2]
mov ecx, dword [ebp - 0x608]
lea eax, [ebp - 0x404]
add edx, edi
push esi
push eax
lea edx, [edx*2 - 2]
call fcn.00433f94
mov edx, dword [ebx]
mov ecx, dword [ebp - 0x610]
add edx, edx
push edx
push dword [ecx]
mov ecx, dword [ebp - 0x608]
lea ecx, [esi + ecx]
call fcn.00433f94
mov eax, dword [ebp - 0x610]
add esp, 0x10
mov ecx, dword [ebp - 0x608]
push dword [ebp - 0x60c]
mov dword [eax], ecx
lea ecx, [edi - 1]
add dword [ebx], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x46a408
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0064c681
mov esp, ebp
pop ebp
ret