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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
push esi
push edi
lea ecx, [ebp - 0x44]
call fcn.00410d16
lea ecx, [ebp - 0x38]
call fcn.00410d16
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00403187
pop ecx
pop ecx
push str.sfxwaitall
push 0x41d9d4
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x8c]
push 0x41d914
push eax
call fcn.0041114f
add esp, 0xc
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00411123
add esp, 0xc
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00411123
add esp, 0xc
push 0x3a
push eax
lea ecx, [ebp - 0x68]
call fcn.004110bc
mov eax, dword [ebp + 0x10]
add eax, 0x30
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x50]
call fcn.004110bc
push 0x20
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004110bc
push 0x22
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x18]
call fcn.004110bc
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push 0x41d9cc
push dword [ebp + 8]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00411123
add esp, 0xc
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00411123
add esp, 0xc
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00411123
add esp, 0xc
push dword [eax]
lea ecx, [ebp - 0x38]
call fcn.004111b8
push dword [ebp - 0x98]
call fcn.00414ea0
push dword [ebp - 0xa4]
call fcn.00414ea0
push dword [ebp - 0xb0]
call fcn.00414ea0
push dword [ebp - 0x18]
call fcn.00414ea0
push dword [ebp - 0x5c]
call fcn.00414ea0
push dword [ebp - 0x50]
call fcn.00414ea0
push dword [ebp - 0x68]
call fcn.00414ea0
push dword [ebp - 0x74]
call fcn.00414ea0
push dword [ebp - 0x80]
call fcn.00414ea0
push dword [ebp - 0x8c]
call fcn.00414ea0
add esp, 0x28
lea eax, [ebp - 0xf4]
push eax
mov dword [ebp - 0xf4], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xf4]
push eax
push dword [0x424250]
xor edi, edi
push edi
push 0x1000004
push 1
push edi
push edi
push dword [ebp - 0x38]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401df5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x38]
call fcn.00414ea0
push dword [ebp - 0x44]
call fcn.00414ea0
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret
push ebx
push edi
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebp + 0x10], eax
cmp eax, edi
je 0x401e70
push dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x401e70
push edi
push 1
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov esi, eax
cmp esi, edi
je 0x401e70
push 8
lea eax, [ebp - 0x14]
push eax
push 7
push dword [ebp + 0x10]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_SetInformationJobObject]
push dword [ebp - 0x28]
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
jmp 0x401e5b
cmp dword [ebp - 4], 4
je 0x401e80
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
call edi
test eax, eax
jne 0x401e55
push dword [ebp - 0x28]
call ebx
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
pop ebx
test eax, eax
jne 0x401ea6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
push dword [ebp - 0x2c]
call edi
test esi, esi
je 0x401eb2
push esi
call edi
cmp dword [ebp + 0x10], 0
je 0x401ebd
push dword [ebp + 0x10]
call edi
mov esi, dword [ebp - 8]
jmp 0x401ddd