Function at 0x401640
Capabilities:
Create process on windows
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x40645e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
push sub.MFC42.DLL_CString::CString
push sub.MFC42.DLL_CString::CString_3
push 3
lea eax, [esp + 0x50]
mov ebx, ecx
push 4
push eax
mov dword [esp + 0x3c], ebx
call fcn.00404934
lea ecx, [esp + 0x44]
lea esi, [ebx + 0x14]
xor ebp, ebp
push ecx
mov ecx, esi
mov dword [esp + 0x68], ebp
call fcn.004025e0
push sub.MFC42.DLL_CString::CString
push sub.MFC42.DLL_CString::CString_3
push 3
lea edx, [esp + 0x5c]
push 4
push edx
call fcn.00404934
lea eax, [esp + 0x50]
mov ecx, esi
push eax
mov byte [esp + 0x68], 1
call fcn.00402750
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
lea edi, [ebx + 4]
push 0x5c
mov ecx, edi
mov byte [esp + 0x68], 2
mov dword [esp + 0x20], ebp
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::Mid
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], 3
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::MakeLower
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x44]
push edx
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x4017ab
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x48]
push eax
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x4017ab
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x4017ab
push 0x2e
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
lea edx, [esp + 0x1c]
push eax
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 4
call fcn.004046fa
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeLower
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call sub.MFC42.DLL_CString::CString_1
call fcn.00402b70
add esp, 4
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
mov byte [esp + 0x64], 5
push 0x4835b0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
push ecx
lea esi, [esp + ebp + 0x48]
mov ecx, esp
mov dword [esp + 0x40], esp
push esi
call sub.MFC42.DLL_CString::CString_1
call fcn.004033a0
mov ecx, dword [ebx + 0x24]
add esp, 4
cmp eax, ecx
jge 0x4018b5
push esi
call fcn.004034a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40180a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + ebp + 0x50]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push esi
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [esp + 0x70], 6
mov ecx, esp
mov dword [esp + 0x4c], esp
push edi
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x70], 5
call fcn.00402bc0
mov eax, dword [esp + 0x28]
add esp, 0xc
test eax, eax
je 0x401893
push edi
lea edx, [esp + 0x28]
push 0x40906c
push edx
call sub.MFC42.DLL_operator_2
push 0x409068
push eax
lea eax, [esp + 0x28]
mov byte [esp + 0x6c], 7
push eax
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 8
call fcn.004046fa
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x64], 5
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, dword [esi]
push 0
push 0
push ecx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ebx, dword [esp + 0x28]
jmp 0x401983
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push esi
call sub.MFC42.DLL_CString::CString_1
call fcn.00403600
add esp, 4
test eax, eax
jne 0x401983
mov eax, dword [esi]
push eax
call fcn.00403480
add esp, 4
test eax, eax
jne 0x401912
lea edx, [esp + ebp + 0x50]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push esi
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [esp + 0x70], 9
mov ecx, esp
mov dword [esp + 0x48], esp
push edi
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x70], 5
call fcn.00402bc0
add esp, 0xc
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40196a
push edi
lea eax, [esp + 0x34]
push 0x40906c
push eax
call sub.MFC42.DLL_operator_2
push 0x409068
lea ecx, [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x70], 0xa
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 0xb
call fcn.004046fa
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x64], 5
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
mov eax, dword [esi]
push 0
push 0
push edx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Empty
push 0x5c
mov ecx, esi
call sub.MFC42.DLL_CString::ReverseFind
inc eax
mov ecx, esi
push eax
lea eax, [esp + 0x38]
push eax
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 0xc
call fcn.004046fa
lea ecx, [esp + 0x34]
mov byte [esp + 0x64], 5
call sub.MFC42.DLL_CString::CString
push 0x2e
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::ReverseFind
lea ecx, [esp + 0x38]
push eax
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 0xd
call fcn.004046fa
lea ecx, [esp + 0x38]
mov byte [esp + 0x64], 5
call sub.MFC42.DLL_CString::CString
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push esi
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
mov byte [esp + 0x70], 0xe
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x6c], 5
call fcn.00402ad0
add ebp, 4
add esp, 8
cmp ebp, 0xc
jl 0x4017b9
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp eax, esi
je 0x401a72
mov eax, dword [ebx + 8]
cmp eax, esi
je 0x401a4e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 8], esi
mov eax, dword [0x4835b4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebx + 0xc]
cmp eax, esi
je 0x401a6b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0xc], esi
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 1
call sub.MFC42.DLL_CString::CString
push sub.MFC42.DLL_CString::CString
push 3
lea ecx, [esp + 0x58]
push 4
push ecx
mov byte [esp + 0x74], 0
call fcn.00404840
push sub.MFC42.DLL_CString::CString
push 3
lea edx, [esp + 0x4c]
push 4
push edx
mov dword [esp + 0x74], 0xffffffff
call fcn.00404840
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x58
ret