Function at 0x1021a96
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x10cc282
call fcn.01077798
sub esp, 0x248
mov eax, dword [0x10de03c]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
mov edi, 0x80000002
push 0x4000
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x234], 0x2000
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x24c], 0x80000001
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x224], ebx
call sub.MFC42u.DLL_operatornew
cmp eax, ebx
pop ecx
mov dword [ebp - 0x230], eax
je 0x1021ce8
lea ecx, [esi + 0xba4]
mov dword [ebp - 0x238], ecx
call sub.MFC42u.DLL_CStringList::RemoveAll
lea ecx, [esi + 0xbc0]
mov dword [ebp - 0x240], ecx
call sub.MFC42u.DLL_CStringList::RemoveAll
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x220]
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
push 0x1004238
push edi
mov dword [ebp - 0x22c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1021ca3
mov esi, dword [ebp - 0x230]
lea eax, [ebp - 0x234]
push eax
push esi
lea eax, [ebp - 0x244]
push eax
push ebx
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x22c]
mov dword [ebp - 0x23c], 0x208
push dword [ebp - 0x220]
mov dword [ebp - 0x234], 0x2000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc dword [ebp - 0x22c]
cmp eax, ebx
jne 0x1021ca3
cmp dword [ebp - 0x244], 7
jne 0x1021b53
lea ecx, [ebp - 0x21c]
call sub.MFC42u.DLL_CString::CString_4
lea eax, [ebp - 0x218]
push 0x100421c
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
je 0x1021bee
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call sub.MFC42u.DLL_CString::CString
jmp 0x1021b53
cmp word [esi], bx
je 0x1021bda
mov edi, 0x1004208
push 0x25
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x1021c50
lea ecx, [ebp - 0x228]
call sub.MFC42u.DLL_CString::CString_4
lea eax, [ebp - 0x228]
push eax
push esi
mov byte [ebp - 4], 1
call fcn.01021786
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x228]
lea eax, [ebp - 0x21c]
push edi
push eax
call sub.MFC42u.DLL_CString::Format_1
add esp, 0x10
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
jmp 0x1021c68
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 0x21c]
push edi
push eax
call sub.MFC42u.DLL_CString::Format_1
add esp, 0x10
cmp dword [ebp - 0x224], 1
mov ecx, dword [ebp - 0x240]
lea eax, [ebp - 0x21c]
push eax
je 0x1021c84
mov ecx, dword [ebp - 0x238]
call sub.MFC42u.DLL_CStringList::AddTail
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
pop ecx
jne 0x1021bf8
jmp 0x1021bda
cmp dword [ebp - 0x220], ebx
je 0x1021cbd
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x220], ebx
inc dword [ebp - 0x224]
mov eax, dword [ebp - 0x224]
mov edi, dword [ebp + eax*4 - 0x250]
cmp edi, ebx
jne 0x1021b22
push dword [ebp - 0x230]
call sub.MFC42u.DLL_operatordelete
pop ecx
xor eax, eax
jmp 0x1021ceb
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01075aef
leave
ret 4