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

Disassembly:
mov eax, 0x10bd275
call fcn.0106f6c0
sub esp, 0x1c
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [ebp - 0x14]
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 - 0x1c], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x24], 0x80000002
je 0x102124b
mov dword [ebp - 0x24], 0x80000001
mov esi, 0x1004340
push esi
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x10212f4
add eax, 2
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::Mid_1
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0106e8f8
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
push 0x1004338
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x10212c3
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0106e8f8
lea ecx, [ebp - 0x20]
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 - 0x20]
push eax
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.0106e8f8
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
jmp 0x102130d
push 0x17d4
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::LoadStringW
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.0106e8f8
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::TrimRight
mov eax, dword [ebp - 0x10]
add eax, eax
push eax
call sub.MFC42u.DLL_operatornew
mov esi, eax
cmp esi, ebx
pop ecx
je 0x1021486
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0x2000000
push ebx
push ebx
push ebx
push 0x10042b8
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
mov dword [ebp - 0x24], eax
jne 0x102143c
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x10], edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
mov dword [ebp - 0x24], eax
jne 0x102143c
cmp word [esi], bx
mov edi, esi
je 0x10213ea
push 0x25
push edi
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x10213c5
lea ecx, [ebp - 0x20]
call sub.MFC42u.DLL_CString::CString_3
lea eax, [ebp - 0x20]
push eax
push edi
mov byte [ebp - 4], 6
call fcn.01020a42
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
je 0x1021435
call sub.MFC42u.DLL_CString::CString
jmp 0x10213d9
push dword [ebp - 0x14]
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x1021465
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
lea edi, [edi + eax*2 + 2]
cmp word [edi], bx
pop ecx
jne 0x1021380
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x14]
shr eax, 1
lea eax, [esi + eax*2 - 2]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
push dword [ebp - 0x14]
call dword [sym.imp.msvcrt.dll_wcslen]
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + eax*2]
mov dword [ebp - 0x10], eax
shr eax, 1
mov word [esi + eax*2], bx
add dword [ebp - 0x10], 2
add esp, 0xc
cmp dword [ebp - 0x1c], ebx
je 0x1021476
cmp dword [ebp + 0x10], ebx
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
je 0x1021444
add ecx, 0xbc0
jmp 0x102144a
call sub.MFC42u.DLL_CString::CString
jmp 0x1021465
push 2
pop eax
mov dword [ebp - 0x10], eax
jmp 0x10213ed
add ecx, 0xba4
call sub.MFC42u.DLL_CStringList::AddTail
push dword [ebp - 0x10]
push esi
push 7
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x1c], ebx
je 0x1021476
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], ebx
push esi
call sub.MFC42u.DLL_operatordelete
cmp dword [ebp - 0x24], ebx
pop ecx
jne 0x1021486
xor esi, esi
jmp 0x1021489
xor esi, esi
inc esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
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