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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
lea eax, [ebp - 0x48]
call fcn.00401000
lea eax, [ebp - 0x3c]
call fcn.00401000
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
lea eax, [ebp - 0x48]
call fcn.004036d6
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push 0x42692c
push dword [ebp + 8]
add eax, 0x30
push 0x22
push 0x20
push eax
push 0x3a
push str.sfxwaitall
push 0x42694c
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.0041253c
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0041250b
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0041250b
add esp, 0xc
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.00402633
add esp, 0xc
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00402633
add esp, 0xc
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00402633
add esp, 0xc
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00402633
add esp, 0xc
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0041250b
add esp, 0xc
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.0041250b
add esp, 0xc
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0041250b
add esp, 0xc
call fcn.0040bbc2
push eax
lea eax, [ebp - 0x3c]
call fcn.0040100c
lea eax, [ebp - 0x30]
call fcn.00401d42
lea eax, [ebp - 0xa8]
call fcn.00401d42
lea eax, [ebp - 0x54]
call fcn.00401d42
lea eax, [ebp - 0x6c]
call fcn.00401d42
lea eax, [ebp - 0x9c]
call fcn.00401d42
lea eax, [ebp - 0x84]
call fcn.00401d42
lea eax, [ebp - 0xb4]
call fcn.00401d42
lea eax, [ebp - 0x60]
call fcn.00401d42
lea eax, [ebp - 0x78]
call fcn.00401d42
lea eax, [ebp - 0x90]
call fcn.00401d42
lea eax, [ebp - 0xfc]
push eax
mov dword [ebp - 0xfc], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xfc]
push eax
mov eax, 0x42f2ec
call fcn.0040bbc2
push eax
xor edi, edi
push edi
push 0x1000004
push 1
push edi
push edi
lea eax, [ebp - 0x3c]
call fcn.0040bbc2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401f69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x3c]
call fcn.004017d0
lea eax, [ebp - 0x48]
call fcn.004017d0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
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 0x401fe3
push dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x401fe3
push edi
push 1
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov esi, eax
cmp esi, edi
je 0x401fe3
push 8
lea eax, [ebp - 0x2c]
push eax
push 7
push dword [ebp + 0x10]
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], esi
call dword [sym.imp.KERNEL32.dll_SetInformationJobObject]
push dword [ebp - 0x1c]
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
jmp 0x401fce
cmp dword [ebp - 8], 4
je 0x401ff3
push 0xffffffffffffffff
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
call edi
test eax, eax
jne 0x401fc8
push dword [ebp - 0x1c]
call ebx
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x402018
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x20]
call edi
test esi, esi
je 0x402024
push esi
call edi
cmp dword [ebp + 0x10], 0
je 0x40202f
push dword [ebp + 0x10]
call edi
mov esi, dword [ebp - 0xc]
jmp 0x401f52