Function at 0x401000
Capabilities:
Create process on windows
Create process suspended
Resume thread
Terminate process

Disassembly:
sub esp, 0x78
push ebx
mov ebx, dword [esp + 0x80]
push ebp
push esi
test ebx, ebx
push edi
jne 0x401023
push 0xb
push str.C:My_ProgramsCMPQDraftCommon.cpp
push str.lpszTargetPath
call fcn.00401960
mov ebp, dword [esp + 0x94]
test ebp, ebp
jne 0x40103f
push 0xc
push str.C:My_ProgramsCMPQDraftCommon.cpp
push str.lpszDLLPath
call fcn.00401960
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x401066
mov eax, dword [esp + 0x98]
test eax, eax
jne 0x401066
push 0xf
push str.C:My_ProgramsCMPQDraftCommon.cpp
push str.lplpszMPQNames
call fcn.00401960
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x40108d
mov eax, dword [esp + 0xa0]
test eax, eax
jne 0x40108d
push 0x12
push str.C:My_ProgramsCMPQDraftCommon.cpp
push str.lpAuxModules
call fcn.00401960
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x44]
lea edx, [esp + 0x44]
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
push ecx
mov dword [esp + 0x20], eax
push edx
push eax
push eax
push 4
push 1
push eax
mov dword [esp + 0x3c], eax
push eax
mov eax, dword [esp + 0xb0]
push eax
push ebx
xor esi, esi
mov dword [esp + 0x6c], 0x44
mov word [esp + 0x9c], 5
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40126e
lea ecx, [esp + 0x14]
push ebp
push ecx
call fcn.00401e50
test eax, eax
je 0x401261
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push edx
push str.MPQDRAFT__08x_SECTION
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push 0x2ce8
push esi
push 4
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
je 0x401261
cmp ebp, 0xffffffff
je 0x401261
push 0x2ce8
push esi
push esi
push 0xf001f
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x401256
lea esi, [ebx + 0xc]
mov ecx, 0xb3a
xor eax, eax
mov edi, ebx
push 0x108
push esi
rep stosd dword es:[edi], eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov eax, dword [esp + 0x9c]
xor esi, esi
test eax, eax
jbe 0x4011de
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edi, [ebx + 0x114]
mov edx, dword [esp + 0x98]
cmp dword [edx + esi*4], 0
jne 0x4011b5
push 0x42
push str.C:My_ProgramsCMPQDraftCommon.cpp
push str.lplpszMPQNames_iCurMPQs_
call fcn.00401960
mov eax, dword [esp + 0x98]
push 0x108
mov ecx, dword [eax + esi*4]
push ecx
push edi
call ebp
mov eax, dword [esp + 0x9c]
inc esi
add edi, 0x108
cmp esi, eax
jb 0x401197
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x9c]
test ecx, ecx
mov dword [ebx + 4], edx
jbe 0x401226
mov eax, dword [esp + 0xa0]
lea edx, [ebx + 0x954]
mov ebp, ecx
mov esi, eax
mov edi, edx
mov ecx, 0x45
add eax, 0x114
add edx, 0x114
dec ebp
rep movsd dword es:[edi], dword [esi]
jne 0x401202
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa8]
mov dword [ebx + 8], ecx
mov dword [ebx], eax
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
mov esi, 1
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x40126e
mov eax, dword [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret