Function at 0x46f0f2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ebx
shl esi, 2
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.0042023c
test eax, eax
je 0x46f2ef
push edi
mov edi, dword [ebp - 0xc]
push esi
push 0
push edi
call fcn.0045d10c
xor esi, esi
add esp, 0xc
mov dword [ebp - 0x14], esi
test ebx, ebx
jle 0x46f2e8
mov edx, dword [ebp + 8]
add edx, 0x10
mov dword [ebp + 8], edx
cmp dword [edx - 0x10], 0
jne 0x46f2d6
cmp dword [edi + esi*4], 0
jne 0x46f2d6
mov eax, dword [edx]
cmp byte [eax], 0
jne 0x46f15d
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
jmp 0x46f180
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [ebp + 8]
test eax, eax
je 0x46f17d
xor ecx, ecx
jmp 0x46f158
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], esi
cmp esi, ebx
jge 0x46f2c3
lea esi, [edx - 8]
mov edx, dword [edx]
mov eax, dword [esi + 8]
mov bl, byte [eax]
cmp bl, byte [edx]
jne 0x46f1b5
test bl, bl
je 0x46f1af
mov bl, byte [eax + 1]
cmp bl, byte [edx + 1]
jne 0x46f1b5
add eax, 2
add edx, 2
test bl, bl
jne 0x46f193
xor ebx, ebx
mov eax, ebx
jmp 0x46f1bc
sbb eax, eax
sbb eax, 0xffffffff
xor ebx, ebx
test eax, eax
jne 0x46f2a5
mov eax, dword [ebp - 8]
xor edx, edx
inc edx
mov dword [edi + eax*4], edx
cmp dword [esi - 8], ebx
jne 0x46f2a2
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x46f2a5
mov eax, dword [esi + 4]
sub eax, ebx
je 0x46f27c
dec eax
je 0x46f279
dec eax
je 0x46f263
dec eax
jne 0x46f2a5
push edx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0xc]
mov dword [ebp - 0x10], ebx
push ecx
call fcn.0046f2f5
test eax, eax
je 0x46f2a2
mov edi, dword [ebp - 0x10]
push ebx
push ebx
push 0xffffffffffffffff
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
lea eax, [ebx + ebx]
push eax
call fcn.0044a635
mov dword [esi - 4], eax
test eax, eax
je 0x46f257
push ebx
push eax
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebx + ebx]
mov dword [esi], eax
mov dword [esi - 8], 1
test edi, edi
je 0x46f2a2
push edi
call fcn.0044a645
jmp 0x46f2a2
push 3
push esi
lea eax, [esi - 4]
push eax
push dword [esi + 0xc]
push ecx
call fcn.0046f2f5
test eax, eax
je 0x46f2a2
jmp 0x46f29b
push edx
jmp 0x46f265
lea eax, [ebp - 0x18]
push eax
lea eax, [esi - 4]
push eax
push ebx
push ebx
push dword [esi + 0xc]
mov dword [ebp - 0x18], 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46f2a2
mov dword [esi - 8], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
inc eax
add esi, 0x18
mov dword [ebp - 8], eax
cmp eax, ebx
jl 0x46f18e
mov esi, dword [ebp - 0x14]
cmp ecx, dword [ebp + 0x10]
je 0x46f2d3
test ecx, ecx
je 0x46f2d3
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 8]
inc esi
add edx, 0x18
mov dword [ebp - 0x14], esi
mov dword [ebp + 8], edx
cmp esi, ebx
jl 0x46f13a
push edi
call fcn.0044a645
pop edi
pop esi
pop ebx
leave
ret 0xc