Function at 0x20011b42
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
lea eax, [ebp - 0xc]
push eax
xor esi, esi
push 0xf003f
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
push dword [ebp + 8]
mov dword [ebx], esi
mov dword [ebp + 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x20011d14
push 0x206
lea eax, [ebp - 0x33a]
push esi
push eax
mov dword [ebp - 4], esi
mov word [ebp - 0x33c], si
call sub.MSVCRT.dll_memset
push 0x103
lea eax, [ebp - 0x133]
push esi
mov edi, 0x104
push eax
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x134], 0
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x33c]
push eax
push esi
push dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push 0x18
mov dword [ebp - 8], eax
call fcn.20004210
cmp dword [ebp - 8], esi
pop ecx
mov dword [ebp + 0x10], eax
jne 0x20011d14
cmp dword [ebp - 8], 0x103
je 0x20011d14
inc dword [ebp - 4]
cmp dword [ebp - 0x18], 3
jne 0x20011cdc
cmp dword [ebp - 0x10], 0xc
jne 0x20011cdc
push 0x20002d90
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push 0x20002d90
lea eax, [ebp - 0x33c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x20011cdc
lea eax, [ebp - 0x33c]
push eax
call fcn.2000c408
cmp eax, esi
mov dword [ebp - 8], eax
je 0x20011cdc
cmp dword [ebp + 0x10], esi
je 0x20011cdc
mov eax, dword [ebx]
inc eax
imul eax, eax, 0x18
push eax
push dword [ebp + 0x10]
call sub.MSVCRT.dll_realloc
mov edi, dword [ebx]
imul edi, edi, 0x18
mov esi, eax
push 6
xor eax, eax
pop ecx
add edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
push eax
mov dword [ebp + 0x10], esi
call fcn.20004235
mov ecx, dword [ebx]
imul ecx, ecx, 0x18
mov word [ecx + esi + 4], ax
mov eax, dword [ebx]
imul eax, eax, 0x18
lea eax, [eax + esi + 4]
add esp, 0xc
cmp word [eax], 0x43
jae 0x20011caf
and word [eax], 0
mov ecx, dword [ebx]
mov eax, dword [ebp + 0x10]
imul ecx, ecx, 0x18
lea edi, [ecx + eax + 8]
lea esi, [ebp - 0x134]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx]
imul ecx, ecx, 0x18
lea esi, [ebp - 0x130]
lea edi, [ecx + eax + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
inc dword [ebx]
mov edi, 0x104
xor esi, esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x33c]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x20011bfb
cmp dword [ebp - 0xc], esi
je 0x20011d22
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebx]
cmp eax, esi
je 0x20011d8a
dec eax
je 0x20011d9b
mov eax, dword [ebp + 0x10]
xor edx, edx
inc edx
add eax, 0x18
cmp edx, dword [ebx]
mov dword [ebp - 8], edx
jae 0x20011d7a
mov dword [ebp - 4], eax
mov cx, word [eax - 0x14]
mov esi, dword [ebp - 4]
cmp cx, word [esi + 4]
jbe 0x20011d6c
push 6
pop ecx
push 6
lea esi, [eax - 0x18]
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 4]
pop ecx
lea edi, [eax - 0x18]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 4]
push 6
pop ecx
lea esi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
inc dword [ebp - 8]
mov ecx, dword [ebp - 8]
add dword [ebp - 4], 0x18
cmp ecx, dword [ebx]
jb 0x20011d3e
mov esi, dword [ebx]
inc edx
add eax, 0x18
lea ecx, [edx - 1]
dec esi
cmp ecx, esi
jb 0x20011d34
jmp 0x20011d9b
cmp dword [ebp + 0x10], esi
je 0x20011d9b
push dword [ebp + 0x10]
call sub.MSVCRT.dll_free
pop ecx
mov dword [ebp + 0x10], esi
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret