Function at 0x100b832
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x101908c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x214], ebx
cmp ecx, ebx
je 0x100bb96
cmp eax, ebx
je 0x100b883
xor edx, edx
cmp dx, word [eax]
je 0x100bb96
cmp esi, ebx
je 0x100bb96
push edi
lea edx, [ebp - 0x218]
push edx
push 0x2001f
push ebx
push eax
push ecx
mov dword [esi], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x100b8c1
jle 0x100b8b3
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x210], eax
jl 0x100badf
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, ebx
je 0x100b8f4
jle 0x100b8ee
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], ebx
jl 0x100badf
push 0x10
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
mov dword [esi], eax
cmp eax, ebx
je 0x100b93e
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
jbe 0x100b97c
shl eax, 2
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
mov ecx, dword [esi]
mov dword [ecx + 8], eax
mov eax, dword [esi]
cmp dword [eax + 8], ebx
jne 0x100b97c
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, ebx
jle 0x100b956
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x100b972
call edi
cmp eax, ebx
jg 0x100b966
mov dword [ebp - 0x210], eax
jmp 0x100b97c
and eax, 0xffff
or eax, 0x80070000
jmp 0x100b95e
mov dword [ebp - 0x210], 0x80004005
cmp dword [ebp - 0x210], ebx
jl 0x100badf
cmp dword [ebp - 0x21c], ebx
jbe 0x100baa2
mov dword [ebp - 0x224], 1
mov dword [ebp - 0x220], ebx
cmp dword [ebp - 0x210], ebx
jl 0x100badf
cmp dword [ebp - 0x224], 1
jne 0x100baa2
push 0x204
lea eax, [ebp - 0x208]
push ebx
push eax
mov dword [ebp - 0x20c], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x220]
mov dword [ebp - 0x228], 0x104
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
jne 0x100ba67
lea edi, [ebp - 0x20c]
call fcn.0100b786
cmp eax, 1
mov eax, edi
push eax
jne 0x100ba56
call dword [sym.imp.msvcrt.dll__wtoi]
test eax, eax
pop ecx
mov eax, edi
push eax
jle 0x100ba4f
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0x220]
inc dword [ebp - 0x214]
lea eax, [eax + ecx*4]
push 0x10037c4
push eax
call fcn.0100e8f9
add esp, 0xc
jmp 0x100ba84
push 0x1003748
jmp 0x100ba5b
push 0x10036c8
push 2
call fcn.01011312
add esp, 0xc
jmp 0x100ba8a
cmp eax, 0x103
jne 0x100ba76
mov dword [ebp - 0x224], ebx
jmp 0x100ba8a
cmp eax, ebx
jle 0x100ba84
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x210], eax
inc dword [ebp - 0x220]
mov eax, dword [ebp - 0x220]
cmp eax, dword [ebp - 0x21c]
jb 0x100b9a4
cmp dword [ebp - 0x210], ebx
jl 0x100badf
mov edi, dword [ebp - 0x214]
mov eax, dword [esi]
push 0x100b7f8
push 4
push edi
push dword [eax + 8]
call dword [sym.imp.msvcrt.dll_qsort]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x218]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax + 4], edi
mov eax, dword [esi]
add esp, 0x10
mov dword [eax + 0xc], ebx
jmp 0x100bb8d
mov eax, dword [esi]
cmp eax, ebx
je 0x100bb79
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [eax + 8], ebx
je 0x100bb60
xor eax, eax
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x21c], ebx
jbe 0x100bb43
mov ecx, dword [esi]
mov ecx, dword [ecx + 8]
lea eax, [ecx + eax*4]
cmp dword [eax], ebx
je 0x100bb2e
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
test eax, eax
je 0x100bb2e
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0x214]
mov dword [eax + ecx*4], ebx
mov eax, dword [ebp - 0x214]
inc eax
mov dword [ebp - 0x214], eax
cmp eax, dword [ebp - 0x21c]
jb 0x100bb04
mov eax, dword [esi]
mov eax, dword [eax + 8]
cmp eax, ebx
je 0x100bb60
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
test eax, eax
je 0x100bb60
mov eax, dword [esi]
mov dword [eax + 8], ebx
mov eax, dword [esi]
cmp eax, ebx
je 0x100bb77
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
test eax, eax
je 0x100bb77
mov dword [esi], ebx
mov dword [esi], ebx
cmp dword [ebp - 0x218], ebx
je 0x100bb8d
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x210]
pop edi
jmp 0x100bb9b
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0100d691
leave
ret 0xc