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

Disassembly:
push 0xffffffffffffffff
push 0x40dd98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x2c], ecx
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x40], ebx
mov byte [esp + 0x18], bl
mov dword [esp + 0x28], ebp
mov ecx, dword [esp + 0x4c]
push 0x208
mov byte [esp + 0x44], 1
call sub.MFC42.DLL_CString::GetBuffer
push 0x5c
lea ecx, [esp + 0x4c]
mov edi, eax
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
lea eax, [esp + 0x1c]
push esi
push eax
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CString::Left
inc esi
lea ecx, [esp + 0x30]
push esi
push ecx
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 2
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x30]
mov byte [esp + 0x40], 2
call sub.MFC42.DLL_CString::CString
push 0x3a
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::Find_1
dec eax
lea edx, [esp + 0x10]
push eax
push edx
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CString::Left
mov eax, dword [esp + 0x48]
push 0x3a
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 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 + 0x50]
call sub.MFC42.DLL_CString::Right
push 0x20
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 5
call sub.MFC42.DLL_CString::Find_1
inc eax
lea edx, [esp + 0x30]
push eax
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x30]
mov byte [esp + 0x40], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push str.HKCU
push eax
call esi
add esp, 8
test eax, eax
jne 0x40958a
mov ecx, dword [esp + 0x10]
push str.Identities
push ecx
mov dword [esp + 0x38], 0x104
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x40944d
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x28]
push eax
call fcn.004090b0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
push str.SoftwareMicrosoftOutlook_Express5.0
lea edx, [esp + 0x30]
push ecx
push edx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 8
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x40], 5
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push 0xf003f
push ebx
push ecx
push 0x80000001
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4095f9
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
lea edx, [esp + 0x30]
lea eax, [esp + 0x2c]
push edx
push edi
push eax
push ebx
push ecx
push ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x4095f4
push ebx
push str.User_Shell_Folders
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x4095f9
xor esi, esi
mov dword [esp + 0x34], esi
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 9
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea edx, [esp + 0x24]
push eax
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push str.Shell_Folders
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 0xa
call fcn.0040c26e
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push eax
push 0xf003f
push ebx
push ecx
push 0x80000001
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x409566
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0x30]
lea eax, [esp + 0x2c]
push edx
push edi
push eax
push ebx
push ecx
push esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x409566
mov edx, dword [esp + 0x14]
push edi
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov ecx, ebp
push eax
mov eax, dword [esp + 0x30]
push edi
push 1
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov byte [esp + 0x18], 1
jmp 0x40956a
mov byte [esp + 0x18], bl
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 9
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
mov byte [esp + 0x40], 5
je 0x4095f9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4095f9
mov edx, dword [esp + 0x1c]
push str.HKLM
push edx
call esi
add esp, 8
test eax, eax
jne 0x40967a
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push eax
push 0xf003f
push ebx
push ecx
push 0x80000002
mov dword [esp + 0x48], 0x104
mov dword [esp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4095f9
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x30]
lea edx, [esp + 0x34]
lea eax, [esp + 0x30]
push edx
push edi
push eax
push ebx
push ecx
push ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x4095f9
mov byte [esp + 0x18], 1
mov esi, dword [esp + 0x4c]
push edi
push 0x41315c
push esi
call sub.MFC42.DLL_CString::Format
add esp, 0xc
cmp ebp, ebx
je 0x40961d
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
mov dword [esp + 0x28], ebp
push 0xffffffffffffffff
mov ecx, esi
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x14]
and edi, 0xff
mov byte [esp + 0x40], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 1
call sub.MFC42.DLL_CString::CString
cmp ebp, ebx
je 0x409665
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x48]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, edi
jmp 0x4096b7
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x34
ret 8