Function at 0x4096d0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x40ddf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor edi, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x1c], edi
push 0x5c
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 1
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::Left
inc esi
lea ecx, [esp + 0x24]
push esi
push ecx
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
push 0x3a
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::Find_1
dec eax
lea edx, [esp + 0x10]
push eax
push edx
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::Left
mov eax, dword [esp + 0x38]
push 0x3a
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 4
mov esi, dword [eax - 8]
call sub.MFC42.DLL_CString::ReverseFind
sub esi, eax
lea ecx, [esp + 0x14]
dec esi
push esi
push ecx
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::Right
mov bl, 5
push 0x20
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], bl
call sub.MFC42.DLL_CString::Find_1
inc eax
lea edx, [esp + 0x24]
push eax
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
push str.HKCU
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push eax
call esi
add esp, 8
test eax, eax
jne 0x4098c6
mov ecx, dword [esp + 0x10]
push str.Identities
push ecx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x40986e
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x28]
mov ecx, ebp
push eax
call fcn.004090b0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
push str.SoftwareMicrosoftOutlook_Express5.0
lea edx, [esp + 0x28]
push ecx
push edx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 8
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push eax
push 0xf003f
push 0
push ecx
push 0x80000001
mov dword [esp + 0x38], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409941
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
push ebx
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push ebx
push 1
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x409930
jmp 0x40992b
mov edx, dword [esp + 0x18]
push str.HKLM
push edx
call esi
add esp, 8
test eax, eax
jne 0x409995
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push 0xf003f
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409941
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
push ebx
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push ebx
push 1
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x409930
mov byte [esp + 0x20], 1
test edi, edi
je 0x409941
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [esp + 0x1c], edi
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x14]
and esi, 0xff
mov byte [esp + 0x30], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
test edi, edi
je 0x409980
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x4099d2
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 8