Function at 0x402120
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x40f8a9
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41908c]
xor eax, esp
push eax
lea eax, [esp + 0x104]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x114]
call fcn.00403e90
push ebp
call fcn.00402510
test eax, eax
jne 0x4021b9
mov eax, dword [sym.imp.Common.dll_struct_LogFileInterface__g_AppLogFile]
mov ecx, dword [eax]
push 0x101
push str..FlashMail.cpp
push ecx
lea ecx, [esp + 0x40]
call dword [sym.imp.Common.dll_public:_void___thiscall_LogMessage::constructor_struct_LogFileInterface___wchar_t_const___long_int_]
push str.App:_InitBase_failed
push 1
mov dword [esp + 0x114], 0
push 4
push eax
call dword [sym.imp.Common.dll_public:_void___cdecl_LogMessage::operator___int__bool__wchar_t_const__]
add esp, 0x10
lea ecx, [esp + 0x34]
mov dword [esp + 0x10c], 0xffffffff
call dword [sym.imp.Common.dll_public:_void___thiscall_LogMessage::destructor_void_]
xor eax, eax
jmp 0x4024ef
mov esi, ebp
call fcn.00404810
test eax, eax
je 0x402237
call fcn.0040c3f0
mov eax, dword [ebp + 0xa8]
lea esi, [ebp + 0xc0]
add eax, 0x250
push esi
push eax
call fcn.0040bab0
mov ecx, dword [ebp + 0xa8]
push 0
call sub.MFC80U.DLL_Ordinal_6086
call fcn.0040a0f0
mov ebx, dword [ebp + 0x30]
mov edi, eax
call fcn.0040a2b0
test eax, eax
jne 0x40226d
mov ecx, dword [sym.imp.Common.dll_struct_LogFileInterface__g_AppLogFile]
mov edx, dword [ecx]
push 0x10f
push str..FlashMail.cpp
push edx
lea ecx, [esp + 0x40]
call dword [sym.imp.Common.dll_public:_void___thiscall_LogMessage::constructor_struct_LogFileInterface___wchar_t_const___long_int_]
push str.App:_InitServices_failed
push 1
mov dword [esp + 0x114], 2
push 5
jmp 0x402193
mov edx, dword [sym.imp.Common.dll_struct_LogFileInterface__g_AppLogFile]
mov eax, dword [edx]
push 0x108
push str..FlashMail.cpp
push eax
lea ecx, [esp + 0x40]
call dword [sym.imp.Common.dll_public:_void___thiscall_LogMessage::constructor_struct_LogFileInterface___wchar_t_const___long_int_]
push str.App:_InitBaseUI_failed
push 1
mov dword [esp + 0x114], 1
push 5
jmp 0x402193
mov ecx, dword [ebp + 0xa8]
mov eax, dword [ecx + 0x234]
mov edx, dword [eax + 0x10]
add ecx, 0x234
push 1
call edx
test eax, eax
je 0x4022fd
call dword [sym.imp.Mail.dll_class_MailService____cdecl_MailGetService_void_]
mov edi, eax
test edi, edi
je 0x4022fd
mov ebx, dword [sym.imp.Mail.dll_public:_struct_IMailUI____thiscall_MailService::GetMailUI_void_]
mov ecx, edi
call ebx
test eax, eax
je 0x4022fd
mov ecx, edi
call ebx
mov ecx, dword [esi]
mov edx, dword [eax]
mov edx, dword [edx + 0x4c]
push ecx
mov ecx, eax
call edx
mov eax, dword [esp + 0x118]
mov esi, dword [esp + 0x11c]
push eax
mov eax, ebp
call fcn.00402de0
call dword [sym.imp.MSVCR80.dll_rand]
cdq
mov ecx, 0x78
idiv ecx
push 4
mov esi, edx
add esi, 0xb4
call sub.MFC80U.DLL_Ordinal_762
add esp, 4
test eax, eax
je 0x40243b
mov dword [eax], vtable.CheckUpdateTimer.0
jmp 0x40243d
push 0xffffffffffffffff
push 0x11
push 2
call sub.MFC80U.DLL_Ordinal_1117
cmp eax, 1
jne 0x4021b2
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.Common.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_common::GetAppPath_void_]
add esp, 4
push eax
lea ecx, [esp + 0x20]
push ecx
mov edi, str.IDownRun.exe
mov dword [esp + 0x114], 3
call fcn.00402bd0
add esp, 8
lea ecx, [esp + 0x18]
mov byte [esp + 0x10c], 5
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.Common.dll_int___cdecl_common::IsFileExist_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const__]
add esp, 4
test eax, eax
je 0x4023fb
push 0x44
lea eax, [esp + 0x38]
push 0
push eax
call sub.MSVCR80.dll_memset
xor eax, eax
add esp, 0xc
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
push str.http:__fm.dl.126.net_NxMail_Update_installer_flashmail_2.3.exe
lea ecx, [esp + 0x1c]
push str.___s_
push ecx
mov byte [esp + 0x118], 6
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
mov ecx, dword [esp + 0x24]
add esp, 0xc
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
xor eax, eax
jmp 0x4024ef
push str.http:__fm.dl.126.net_NxMail_Update_installer_flashmail_2.3.exe
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
push 1
push 3
push eax
mov byte [esp + 0x118], 7
call dword [sym.imp.Common.dll_void___cdecl_common::SafeOpenWeb_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______int__int_]
add esp, 0xc
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
xor eax, eax
jmp 0x4024ef
xor eax, eax
push 0
push esi
push eax
call dword [sym.imp.Kernel.dll_class_kernel::NeKernel____cdecl_kernel::GetKernel_void_]
mov ecx, eax
call dword [sym.imp.Kernel.dll_public:_int___thiscall_kernel::NeKernel::AddTimer_struct_kernel::NeEventBase___unsigned_int__int_]
mov edx, dword [sym.imp.Common.dll_struct_LogFileInterface__g_AppLogFile]
mov eax, dword [edx]
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_LogMessage::constructor_struct_LogFileInterface___wchar_t_const___long_int_]
push 0x143
push str..FlashMail.cpp
push eax
lea ecx, [esp + 0x40]
call esi
push str.App:_On_time_update_checking_initialized
push 1
mov dword [esp + 0x114], 8
mov edi, dword [sym.imp.Common.dll_public:_void___cdecl_LogMessage::operator___int__bool__wchar_t_const__]
push 2
push eax
call edi
or ebx, 0xffffffff
add esp, 0x10
lea ecx, [esp + 0x34]
mov dword [esp + 0x10c], ebx
call dword [sym.imp.Common.dll_public:_void___thiscall_LogMessage::destructor_void_]
mov ecx, dword [sym.imp.Common.dll_struct_LogFileInterface__g_AppLogFile]
mov edx, dword [ecx]
push 0x144
push str..FlashMail.cpp
push edx
lea ecx, [esp + 0xa8]
call esi
push str.App:_Init_OK
push 1
push 2
push eax
mov dword [esp + 0x11c], 9
call edi
add esp, 0x10
lea ecx, [esp + 0x9c]
mov dword [esp + 0x10c], ebx
call dword [sym.imp.Common.dll_public:_void___thiscall_LogMessage::destructor_void_]
lea eax, [ebx + 2]
mov ecx, dword [esp + 0x104]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xfc
ret 0xc