Function at 0x412d40
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 0x412e46
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 0x412e2f
cmp dword [esp + 0x20], 1
jne 0x412dd9
mov eax, dword [esp + 0x444]
lea edx, [esp + 0x230]
push edx
push eax
call fcn.00414596
add esp, 8
test eax, eax
je 0x412e0e
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 0x412db6
jmp 0x412e2f
mov eax, dword [esp + 0x440]
test eax, eax
je 0x412e2a
mov ecx, dword [esp + 0x43c]
push ecx
push eax
call fcn.0040bdf7
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 0x412fda
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 0x412fda
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 0x412f09
jmp 0x412e90
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 0x412e90
test ebp, ebp
jbe 0x412f09
lea eax, [ebp*4]
push eax
call fcn.0040e4c0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x412f09
test ebp, ebp
jbe 0x412ecd
mov ecx, ebp
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
xor esi, esi
test ebp, ebp
jbe 0x412f09
push 0x208
call fcn.0040e4c0
add esp, 4
test eax, eax
mov dword [ebx + esi*4], eax
je 0x412f09
mov ecx, dword [esp + 0x14]
push 0x104
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x412f09
inc esi
cmp esi, ebp
jne 0x412f07
mov byte [esp + 0x13], 1
jb 0x412ed3
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x13]
test al, al
je 0x412fb7
xor edi, edi
test ebp, ebp
jbe 0x412fb7
lea ebx, [ebx]
mov eax, dword [ebx + edi*4]
push eax
call fcn.0040be13
mov ecx, dword [esp + 0x440]
push ecx
mov esi, eax
call fcn.0040be13
add esi, eax
lea edx, [esi + esi + 4]
push edx
call fcn.0040e4c0
mov esi, eax
mov eax, dword [esp + 0x448]
push eax
push esi
call fcn.0040bdf7
push 0x4054fc
push esi
call fcn.0040bdcd
mov ecx, dword [ebx + edi*4]
push ecx
push esi
call fcn.0040bdcd
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.00412d40
test al, al
push esi
jne 0x412faa
call fcn.0040e1b0
add esp, 4
inc edi
cmp edi, ebp
jb 0x412f30
jmp 0x412fb7
mov byte [esp + 0x16], 1
call fcn.0040e1b0
add esp, 4
xor esi, esi
test ebp, ebp
jbe 0x412fd1
lea ecx, [ecx]
mov ecx, dword [ebx + esi*4]
push ecx
call fcn.0040e1b0
add esp, 4
inc esi
cmp esi, ebp
jb 0x412fc0
push ebx
call fcn.0040e1b0
add esp, 4
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x428
ret 0xc