Function at 0x421990
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4473fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x48]
mov esi, ecx
push edi
lea ecx, [esp + 0x4c]
call sub.MFC42u.DLL_CString::CString_2
mov ebp, dword [esp + 0x44]
mov eax, dword [esi]
push 1
lea ecx, [esp + 0x4c]
push 2
push ecx
push ebp
mov ecx, esi
mov dword [esp + 0x4c], 0
call dword [eax + 0x50]
lea ecx, [esp + 0x48]
mov dword [esi + 0x10], eax
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4219fb
xor eax, eax
jmp 0x421bb0
mov ebx, dword [esp + 0x4c]
test ebx, ebx
jne 0x421ab9
lea edx, [esp + 0x24]
push edi
push edx
call fcn.0040d9d0
lea eax, [esp + 0x1c]
push edi
push eax
mov dword [esp + 0x4c], 1
call fcn.004172c0
add esp, 0x10
mov ecx, dword [esp + 0x18]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
xor edi, edi
mov byte [esp + 0x3c], 2
cmp ecx, edi
jne 0x421a3f
mov ecx, edx
mov eax, dword [esp + 0x28]
cmp eax, edi
jne 0x421a49
mov eax, edx
mov edx, dword [esi]
push ecx
push eax
push ebp
mov ecx, esi
call dword [edx + 0x40]
mov ecx, dword [esp + 0x18]
mov esi, eax
cmp ecx, edi
je 0x421a7b
mov al, byte [ecx - 1]
test al, al
je 0x421a6f
cmp al, 0xff
je 0x421a6f
dec al
mov byte [ecx - 1], al
jmp 0x421a7b
add ecx, 0xfffffffe
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], edi
cmp ecx, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
je 0x421ab2
mov al, byte [ecx - 1]
test al, al
je 0x421aa6
cmp al, 0xff
je 0x421aa6
dec al
mov byte [ecx - 1], al
mov eax, esi
jmp 0x421bb0
add ecx, 0xfffffffe
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, esi
jmp 0x421bb0
lea ecx, [esi + 0xc]
push ebx
call sub.MFC42u.DLL_CString::operator_1
mov ebp, dword [esp + 0x50]
test ebp, ebp
jne 0x421add
mov ecx, dword [esp + 0x44]
mov eax, dword [esi]
push ebx
push edi
push ecx
mov ecx, esi
call dword [eax + 0x3c]
jmp 0x421bb0
mov edi, dword [esi + 0xc]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
mov eax, dword [esi + 0x10]
push edx
push ebp
push 1
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esi]
mov ecx, esi
mov edi, eax
call dword [edx + 0x58]
test edi, edi
je 0x421bab
lea eax, [esi + 8]
lea ecx, [esp + 0x10]
push eax
push 0x45a894
push ecx
call sub.MFC42u.DLL_operator_3
push 0x45a870
lea edx, [esp + 0x54]
push eax
push edx
mov dword [esp + 0x48], 3
call sub.MFC42u.DLL_operator_4
push ebx
push eax
lea eax, [esp + 0x54]
mov byte [esp + 0x44], 4
push eax
call sub.MFC42u.DLL_operator_4
push 0x45a86c
lea ecx, [esp + 0x48]
mov bl, 5
push eax
push ecx
mov byte [esp + 0x48], bl
call sub.MFC42u.DLL_operator_4
push eax
lea ecx, [esi + 0x1c]
mov byte [esp + 0x40], 6
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0x3c], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0x3c], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
jmp 0x421bb0
mov eax, 1
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 0x10