Function at 0x412d70
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 0x412e76
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 0x412e5f
cmp dword [esp + 0x20], 1
jne 0x412e09
mov eax, dword [esp + 0x444]
lea edx, [esp + 0x230]
push edx
push eax
call fcn.004145c6
add esp, 8
test eax, eax
je 0x412e3e
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 0x412de6
jmp 0x412e5f
mov eax, dword [esp + 0x440]
test eax, eax
je 0x412e5a
mov ecx, dword [esp + 0x43c]
push ecx
push eax
call fcn.0040be07
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 0x41300a
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 0x41300a
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 0x412f39
jmp 0x412ec0
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 0x412ec0
test ebp, ebp
jbe 0x412f39
lea eax, [ebp*4]
push eax
call fcn.0040e4d0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x412f39
test ebp, ebp
jbe 0x412efd
mov ecx, ebp
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
xor esi, esi
test ebp, ebp
jbe 0x412f39
push 0x208
call fcn.0040e4d0
add esp, 4
test eax, eax
mov dword [ebx + esi*4], eax
je 0x412f39
mov ecx, dword [esp + 0x14]
push 0x104
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x412f39
inc esi
cmp esi, ebp
jne 0x412f37
mov byte [esp + 0x13], 1
jb 0x412f03
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x13]
test al, al
je 0x412fe7
xor edi, edi
test ebp, ebp
jbe 0x412fe7
lea ebx, [ebx]
mov eax, dword [ebx + edi*4]
push eax
call fcn.0040be23
mov ecx, dword [esp + 0x440]
push ecx
mov esi, eax
call fcn.0040be23
add esi, eax
lea edx, [esi + esi + 4]
push edx
call fcn.0040e4d0
mov esi, eax
mov eax, dword [esp + 0x448]
push eax
push esi
call fcn.0040be07
push 0x405504
push esi
call fcn.0040bddd
mov ecx, dword [ebx + edi*4]
push ecx
push esi
call fcn.0040bddd
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.00412d70
test al, al
push esi
jne 0x412fda
call fcn.0040e1c0
add esp, 4
inc edi
cmp edi, ebp
jb 0x412f60
jmp 0x412fe7
mov byte [esp + 0x16], 1
call fcn.0040e1c0
add esp, 4
xor esi, esi
test ebp, ebp
jbe 0x413001
lea ecx, [ecx]
mov ecx, dword [ebx + esi*4]
push ecx
call fcn.0040e1c0
add esp, 4
inc esi
cmp esi, ebp
jb 0x412ff0
push ebx
call fcn.0040e1c0
add esp, 4
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x428
ret 0xc