Function at 0x1000bb30
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.RegOpenKeyExA
mov ebp, ecx
push str.ADVAPI32.dll
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.RegQueryInfoKeyA
push str.ADVAPI32.dll
mov edi, eax
call esi
push eax
call ebx
mov edx, dword [ebp + 4]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
lea ecx, [ebp + 8]
push eax
push 0xf003f
push 0
push ecx
push edx
mov dword [esp + 0x34], 0
call edi
test eax, eax
jne 0x1000bd36
push eax
push eax
lea eax, [esp + 0x44]
lea ecx, [esp + 0x48]
push eax
lea edx, [esp + 0x50]
push ecx
push edx
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x3c]
push 0
lea ecx, [esp + 0x28]
push eax
push ecx
push 0
push 0
push 0
push edx
call dword [esp + 0x54]
test eax, eax
je 0x1000bbc9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x48
ret
mov eax, dword [esp + 0x28]
lea ebp, [eax + 1]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x1000bd36
cmp ebp, 1
jbe 0x1000bd36
push str.LocalReAlloc
push str.KERNEL32.dll
call esi
push eax
call ebx
push str.LocalAlloc
push str.KERNEL32.dll
mov dword [esp + 0x40], eax
call esi
push eax
call ebx
push str.RegCloseKey
push str.ADVAPI32.dll
mov edi, eax
call esi
push eax
call ebx
push str.RegEnumKeyExA
push str.ADVAPI32.dll
mov dword [esp + 0x3c], eax
call esi
push eax
call ebx
mov ebx, ebp
mov dword [esp + 0x30], eax
imul ebx, dword [esp + 0x10]
add ebx, 0xe
push ebx
push 0x40
call edi
mov ecx, ebx
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
push ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x54]
and ecx, 3
mov dword [esp + 0x24], esi
rep stosb byte es:[edi], al
mov byte [esi], 0x8c
mov eax, dword [esp + 0x14]
lea ecx, [esi + 1]
mov dword [esi + 1], eax
mov al, byte [esp + 0x58]
mov dword [ecx + 4], ebp
mov dword [ecx + 8], edx
mov byte [ecx + 0xc], al
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x14], 0
test eax, eax
jbe 0x1000bd10
add esi, 0xd
mov dword [esp + 0x24], esi
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
push 0
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
push 0
lea eax, [esp + 0x38]
push 0
push eax
push edi
push ecx
push edx
mov dword [esp + 0x4c], ebp
call dword [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x24]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
add edx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
cmp eax, ecx
mov dword [esp + 0x24], edx
jb 0x1000bc9a
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [esp + 0x38]
push 0x42
push ebx
push esi
call dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret