Function at 0x401dca
Capabilities:
Accept command line arguments
Create process on windows
Resume thread

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xf4
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp + 0x30]
mov esi, edx
call fcn.00411b60
lea ecx, [ebp + 0x3c]
call fcn.00411b60
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
lea edx, [ebp + 0x30]
mov ecx, eax
call fcn.0040310a
push str.sfxwaitall
push 0x41aaec
lea eax, [ebp + 0x30]
push eax
mov edx, 0x41a9f0
lea ecx, [ebp - 0x18]
call fcn.00411b32
mov edx, eax
lea ecx, [ebp - 0xc]
call fcn.00411b08
mov edx, eax
lea ecx, [ebp]
call fcn.00411b08
push 0x3a
push eax
lea ecx, [ebp + 0xc]
call fcn.00411a62
mov eax, dword [ebp + 0x7c]
add eax, 0x30
push eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x24]
call fcn.00411a62
push 0x20
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp + 0x18]
call fcn.00411a62
push 0x22
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp + 0x5c]
call fcn.00411a62
push esi
push 0x41aae4
push edi
lea edx, [ebp + 0x5c]
lea ecx, [ebp - 0x3c]
call fcn.00411b08
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00411b08
mov edx, eax
lea ecx, [ebp - 0x24]
call fcn.00411b08
push dword [eax]
lea ecx, [ebp + 0x3c]
call fcn.00411be5
push dword [ebp - 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x5c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x28
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x44
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [0x41e89c]
xor ebx, ebx
push ebx
push 0x1000004
xor edi, edi
inc edi
push edi
push ebx
push ebx
push dword [ebp + 0x3c]
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
jne 0x401f49
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push dword [ebp + 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4
push ebx
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_CreateJobObjectW]
mov dword [ebp + 0x7c], eax
cmp eax, ebx
je 0x401fbc
push dword [ebp + 0x48]
push eax
call dword [sym.imp.KERNEL32.DLL_AssignProcessToJobObject]
test eax, eax
je 0x401fbc
push ebx
push edi
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateIoCompletionPort]
mov esi, eax
cmp esi, ebx
je 0x401fbc
push 8
lea eax, [ebp + 0x60]
push eax
push 7
push dword [ebp + 0x7c]
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x64], esi
call dword [sym.imp.KERNEL32.DLL_SetInformationJobObject]
push dword [ebp + 0x4c]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov edi, dword [sym.imp.KERNEL32.DLL_GetQueuedCompletionStatus]
jmp 0x401fa7
cmp dword [ebp + 0x70], 4
je 0x401fd0
push 0xffffffffffffffff
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x70]
push eax
push esi
call edi
test eax, eax
jne 0x401fa1
push dword [ebp + 0x4c]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push 0xffffffffffffffff
push dword [ebp + 0x48]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp + 0x4c]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call edi
lea eax, [ebp + 0x6c]
push eax
push dword [ebp + 0x48]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
jne 0x401ff5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x6c], eax
push dword [ebp + 0x48]
call edi
cmp esi, ebx
je 0x402001
push esi
call edi
cmp dword [ebp + 0x7c], ebx
je 0x40200b
push dword [ebp + 0x7c]
call edi
mov esi, dword [ebp + 0x6c]
jmp 0x401f2b