Function at 0x401fa0
Capabilities:
Accept command line arguments
Create process on windows
Resolve function by parsing pe exports
Resume thread

Disassembly:
sub esp, 0xf4
push esi
lea ecx, [esp + 0x3c]
call fcn.004159a0
lea ecx, [esp + 0x30]
call fcn.004159a0
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00403960
add esp, 8
push str.sfxwaitall
push 0x4229dc
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x90]
push 0x42291c
push edx
call fcn.00415eb0
add esp, 0xc
push eax
lea eax, [esp + 0x84]
push eax
call fcn.00415e70
add esp, 0xc
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.00415e70
add esp, 0xc
push 0x3a
push eax
lea ecx, [esp + 0x68]
call fcn.00415df0
mov edx, dword [esp + 0x104]
add edx, 0x30
push edx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x50]
call fcn.00415df0
push 0x20
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x5c]
call fcn.00415df0
push 0x22
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x18]
call fcn.00415df0
mov eax, dword [esp + 0x100]
mov ecx, dword [esp + 0xfc]
push eax
push 0x4229d4
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0xb8]
push eax
call fcn.00415e70
add esp, 0xc
push eax
lea ecx, [esp + 0xa8]
push ecx
call fcn.00415e70
add esp, 0xc
push eax
lea edx, [esp + 0x98]
push edx
call fcn.00415e70
mov eax, dword [eax]
add esp, 0xc
push eax
lea ecx, [esp + 0x34]
call fcn.00415f20
mov ecx, dword [esp + 0x90]
push ecx
call fcn.0041a71a
mov edx, dword [esp + 0xa0]
push edx
call fcn.0041a71a
mov eax, dword [esp + 0xb0]
push eax
call fcn.0041a71a
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0041a71a
mov edx, dword [esp + 0x64]
push edx
call fcn.0041a71a
mov eax, dword [esp + 0x5c]
push eax
call fcn.0041a71a
mov ecx, dword [esp + 0x78]
push ecx
call fcn.0041a71a
mov edx, dword [esp + 0x88]
push edx
call fcn.0041a71a
mov eax, dword [esp + 0x98]
push eax
call fcn.0041a71a
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.0041a71a
add esp, 0x28
lea edx, [esp + 0xb4]
push edx
mov dword [esp + 0xb8], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov edx, dword [0x429270]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0xb8]
push ecx
push edx
push 0
push 0x1000004
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40219a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x30]
push ecx
mov esi, eax
call fcn.0041a71a
mov edx, dword [esp + 0x40]
push edx
call fcn.0041a71a
add esp, 8
mov eax, esi
pop esi
add esp, 0xf4
ret
push ebx
push ebp
push edi
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ebx, eax
test ebx, ebx
je 0x40223f
mov eax, dword [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x40223f
push esi
push 1
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov esi, eax
test esi, esi
je 0x40223f
push 8
lea ecx, [esp + 0x20]
push ecx
push 7
push ebx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_SetInformationJobObject]
mov edx, dword [esp + 0x30]
push edx
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
push 0xffffffffffffffff
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
call edi
test eax, eax
je 0x40223f
lea ebx, [ebx]
cmp dword [esp + 0x10], 4
je 0x402253
push 0xffffffffffffffff
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
call edi
test eax, eax
jne 0x402220
mov eax, dword [esp + 0x30]
push eax
call ebp
mov ecx, dword [esp + 0x2c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40227e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x2c]
push edx
call edi
test esi, esi
je 0x40228c
push esi
call edi
test ebx, ebx
je 0x402293
push ebx
call edi
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x14]
push eax
call fcn.0041a71a
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0041a71a
add esp, 8
pop edi
pop ebp
pop ebx
mov eax, esi
pop esi
add esp, 0xf4
ret