Function at 0x4213a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x428
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x43c]
push eax
push ecx
push 0x80000002
xor edi, edi
mov byte [esp + 0x1e], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4214a6
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
push edi
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
mov ebx, 0x104
mov esi, 0x208
push ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], esi
call ebp
test eax, eax
jne 0x42148f
cmp dword [esp + 0x20], 1
jne 0x421439
mov eax, dword [esp + 0x444]
lea edx, [esp + 0x230]
push edx
push eax
call fcn.00424339
add esp, 8
test eax, eax
je 0x42146e
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x234]
push edx
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x3c]
push edx
inc edi
push edi
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], esi
call ebp
test eax, eax
je 0x421416
jmp 0x42148f
mov eax, dword [esp + 0x440]
test eax, eax
je 0x42148a
mov ecx, dword [esp + 0x43c]
push ecx
push eax
call fcn.004241a4
add esp, 8
mov byte [esp + 0x12], 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x12]
test al, al
jne 0x42163a
mov ecx, dword [esp + 0x43c]
lea eax, [esp + 0x14]
push eax
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x42163a
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push 0x104
lea edx, [esp + 0x2c]
push edx
xor ebp, ebp
push ebp
push eax
xor ebx, ebx
mov byte [esp + 0x23], 0
call edi
test eax, eax
jne 0x421569
jmp 0x4214f0
mov edx, dword [esp + 0x14]
push 0x104
lea ecx, [esp + 0x2c]
push ecx
inc ebp
push ebp
push edx
call edi
test eax, eax
je 0x4214f0
test ebp, ebp
jbe 0x421569
lea eax, [ebp*4]
push eax
call fcn.004121f0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x421569
test ebp, ebp
jbe 0x42152d
mov ecx, ebp
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
xor esi, esi
test ebp, ebp
jbe 0x421569
push 0x208
call fcn.004121f0
add esp, 4
test eax, eax
mov dword [ebx + esi*4], eax
je 0x421569
mov ecx, dword [esp + 0x14]
push 0x104
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x421569
inc esi
cmp esi, ebp
jne 0x421567
mov byte [esp + 0x13], 1
jb 0x421533
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x13]
test al, al
je 0x421617
xor edi, edi
test ebp, ebp
jbe 0x421617
lea ebx, [ebx]
mov eax, dword [ebx + edi*4]
push eax
call fcn.004241c8
mov ecx, dword [esp + 0x440]
push ecx
mov esi, eax
call fcn.004241c8
add esi, eax
lea edx, [esi + esi + 4]
push edx
call fcn.004121f0
mov esi, eax
mov eax, dword [esp + 0x448]
push eax
push esi
call fcn.004241a4
push 0x407418
push esi
call fcn.00424171
mov ecx, dword [ebx + edi*4]
push ecx
push esi
call fcn.00424171
mov edx, dword [esp + 0x468]
mov eax, dword [esp + 0x464]
mov ecx, dword [esp + 0x48]
add esp, 0x24
push edx
push eax
push esi
call fcn.004213a0
test al, al
push esi
jne 0x42160a
call fcn.00412210
add esp, 4
inc edi
cmp edi, ebp
jb 0x421590
jmp 0x421617
mov byte [esp + 0x16], 1
call fcn.00412210
add esp, 4
xor esi, esi
test ebp, ebp
jbe 0x421631
lea ecx, [ecx]
mov ecx, dword [ebx + esi*4]
push ecx
call fcn.00412210
add esp, 4
inc esi
cmp esi, ebp
jb 0x421620
push ebx
call fcn.00412210
add esp, 4
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x428
ret 0xc