Function at 0x470630
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp]
xor edi, edi
test eax, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], edi
je 0x47073b
lea ecx, [esp + 0x1c]
push 0x100
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x47073b
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.004bd49b
add esp, 4
mov esi, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test esi, esi
je 0x470711
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x470701
mov edx, dword [ebx + 0x14]
add edx, eax
lea eax, [edx*4 + 4]
push eax
call fcn.004bd49b
mov ecx, dword [ebx + 0xc]
mov esi, dword [ebx + 4]
mov ebp, eax
lea ecx, [ecx*4 + 4]
mov edi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
push eax
call fcn.004bd4c4
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0xc]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
add esp, 8
add eax, ecx
mov dword [ebx + 4], ebp
mov ebp, dword [esp + 0x18]
mov dword [ebx + 0xc], eax
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov dword [eax + edx*4], esi
mov eax, dword [ebx + 8]
inc eax
mov dword [ebx + 8], eax
mov edx, dword [ebp]
lea ecx, [esp + 0x1c]
inc edi
push 0x100
push ecx
push edi
push edx
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x470672
test edi, edi
jne 0x470822
mov eax, dword [ebp + 4]
test eax, eax
je 0x470822
lea ecx, [esp + 0x1c]
push 0x100
push ecx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x470822
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.004bd49b
add esp, 4
mov esi, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test esi, esi
je 0x470800
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x4707f0
mov edx, dword [ebx + 0x14]
add edx, eax
lea eax, [edx*4 + 4]
push eax
call fcn.004bd49b
mov ecx, dword [ebx + 0xc]
mov esi, dword [ebx + 4]
mov ebp, eax
lea ecx, [ecx*4 + 4]
mov edi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
push eax
call fcn.004bd4c4
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0xc]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
add esp, 8
add eax, ecx
mov dword [ebx + 4], ebp
mov ebp, dword [esp + 0x18]
mov dword [ebx + 0xc], eax
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov dword [eax + edx*4], esi
mov eax, dword [ebx + 8]
inc eax
mov dword [ebx + 8], eax
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x1c]
inc edi
push 0x100
push ecx
push edi
push edx
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x470761
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret 4