Function at 0x1020ee1
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x10bd233
call fcn.0106f6c0
sub esp, 0x28
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString_3
cmp dword [ebp + 0x10], ebx
mov edi, 0x2000
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 0x80000002
je 0x1020f2f
mov dword [ebp - 0x28], 0x80000001
mov esi, 0x1004340
push esi
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x1020fd8
add eax, 2
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::Mid_1
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0106e8f8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
push 0x1004338
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x1020fa7
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0106e8f8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
push esi
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::Find_1
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.0106e8f8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
jmp 0x1020ff1
push 0x17d4
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::LoadStringW
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.0106e8f8
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::TrimRight
mov eax, dword [ebp - 0x1c]
add eax, eax
push eax
call sub.MFC42u.DLL_operatornew
mov esi, eax
cmp esi, ebx
pop ecx
mov dword [ebp - 0x20], esi
je 0x10211c6
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x2000000
push ebx
push ebx
push ebx
push 0x10042b8
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x102113a
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x30]
push eax
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x102113a
mov eax, esi
cmp word [eax], bx
je 0x102113a
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
push 0x25
push esi
mov dword [ebp - 0x28], ebx
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x10210ba
lea ecx, [ebp - 0x24]
call sub.MFC42u.DLL_CString::CString_3
lea eax, [ebp - 0x24]
push eax
push esi
mov byte [ebp - 4], 6
call fcn.01020a42
push dword [ebp - 0x18]
push dword [ebp - 0x24]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10210ac
mov dword [ebp - 0x28], 1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
jmp 0x10210d1
push dword [ebp - 0x18]
push esi
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10210d6
mov dword [ebp - 0x28], 1
cmp dword [ebp - 0x28], ebx
jne 0x10210e5
push esi
call edi
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
pop ecx
jne 0x102106b
jmp 0x102113a
push esi
call edi
mov ebx, dword [ebp - 0x1c]
lea eax, [eax + eax + 2]
push esi
sub ebx, eax
call edi
pop ecx
pop ecx
mov ecx, esi
sub ecx, dword [ebp - 0x20]
sar ecx, 1
add eax, ecx
mov ecx, dword [ebp - 0x1c]
lea eax, [eax + eax + 2]
sub ecx, eax
push ecx
push esi
call edi
pop ecx
lea eax, [esi + eax*2 + 2]
push eax
push esi
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x30]
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x2c], 1
xor ebx, ebx
cmp dword [ebp - 0x14], ebx
je 0x102114b
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
push dword [ebp - 0x20]
call sub.MFC42u.DLL_operatordelete
cmp word [ebp - 0x2c], bx
pop ecx
je 0x10211c6
lea ecx, [ebp - 0x28]
call sub.MFC42u.DLL_CString::CString_3
cmp dword [ebp + 0x10], ebx
mov edi, dword [ebp + 8]
mov byte [ebp - 4], 7
je 0x1021176
add edi, 0xbc0
jmp 0x102117c
add edi, 0xba4
mov esi, dword [edi + 4]
jmp 0x10211a6
mov eax, esi
add eax, 8
mov dword [ebp + 0x10], esi
mov esi, dword [esi]
push eax
lea ecx, [ebp - 0x28]
call fcn.0106e8f8
push dword [ebp - 0x28]
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x10211ac
cmp esi, ebx
jne 0x1021181
jmp 0x10211b6
push dword [ebp + 0x10]
mov ecx, edi
call sub.MFC42u.DLL_CStringList::RemoveAt
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
xor esi, esi
jmp 0x10211c9
xor esi, esi
inc esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc