Function at 0x4210b9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 0xc]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ebx
shl esi, 2
push esi
push eax
call fcn.00406235
test al, al
je 0x4212c4
push edi
mov edi, dword [ebp - 0xc]
push esi
push 0
push edi
call fcn.0044f154
xor esi, esi
add esp, 0xc
mov dword [ebp - 0x14], esi
test ebx, ebx
jle 0x4212bc
mov edx, dword [ebp + 8]
add edx, 0x10
mov dword [ebp + 8], edx
cmp dword [edx - 0x10], 0
jne 0x4212aa
cmp dword [edi + esi*4], 0
jne 0x4212aa
mov eax, dword [edx]
cmp byte [eax], 0
jne 0x421121
mov ecx, dword [ebp + 0x10]
jmp 0x421143
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [ebp - 4]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov edx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], esi
cmp esi, ebx
jge 0x421297
lea esi, [edx - 8]
mov edx, dword [edx]
mov eax, dword [esi + 8]
mov bl, byte [eax]
cmp bl, byte [edx]
jne 0x42117b
test bl, bl
je 0x421175
mov bl, byte [eax + 1]
cmp bl, byte [edx + 1]
jne 0x42117b
add eax, 2
add edx, 2
test bl, bl
jne 0x421159
xor ebx, ebx
mov eax, ebx
jmp 0x421182
sbb eax, eax
or eax, 1
xor ebx, ebx
test eax, eax
jne 0x421279
mov eax, dword [ebp - 8]
mov dword [edi + eax*4], 1
cmp dword [esi - 8], ebx
jne 0x421276
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x421279
mov eax, dword [esi + 4]
sub eax, ebx
je 0x421250
sub eax, 1
je 0x42124c
sub eax, 1
je 0x421236
sub eax, 1
jne 0x421279
push 1
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0xc]
push ecx
call fcn.00420a02
test eax, eax
je 0x421276
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
push 0
lea eax, [ebx + ebx]
push eax
call fcn.0042036b
mov dword [esi - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x421229
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 - 8], 1
mov dword [esi], eax
test edi, edi
je 0x421276
push edi
call fcn.0046d68f
pop ecx
jmp 0x421276
push 3
push esi
lea eax, [esi - 4]
push eax
push dword [esi + 0xc]
push ecx
call fcn.00420a02
test eax, eax
je 0x421276
jmp 0x42126f
push 1
jmp 0x421238
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 4
push eax
lea eax, [esi - 4]
push eax
push ebx
push ebx
push dword [esi + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x421276
mov dword [esi - 8], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
add esi, 0x18
mov ebx, dword [ebp + 0xc]
inc eax
mov edi, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp eax, ebx
jl 0x421154
mov esi, dword [ebp - 0x14]
cmp ecx, dword [ebp + 0x10]
je 0x4212a7
test ecx, ecx
je 0x4212a7
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 0x421101
push edi
call fcn.0046d68f
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc