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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
push esi
lea ecx, [ebp - 0x34]
call fcn.004013d0
lea ecx, [ebp - 0x40]
call fcn.004013d0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00403e30
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
add esp, 8
push ecx
push 0x429a54
push edx
push 0x22
push 0x20
add eax, 0x30
push eax
push 0x3a
push str.sfxwaitall
push 0x429a34
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x88]
push 0x42997c
push edx
call fcn.00416370
add esp, 0xc
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00416330
add esp, 0xc
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.00416330
add esp, 0xc
push eax
lea edx, [ebp - 0xac]
push edx
call fcn.00402330
add esp, 0xc
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00402330
add esp, 0xc
push eax
lea ecx, [ebp - 0x94]
push ecx
call fcn.00402330
add esp, 0xc
push eax
lea edx, [ebp - 0x4c]
push edx
call fcn.00402330
add esp, 0xc
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00416330
add esp, 0xc
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.00416330
add esp, 0xc
push eax
lea edx, [ebp - 0x28]
push edx
call fcn.00416330
add esp, 0xc
mov ecx, eax
call fcn.00414870
push eax
lea ecx, [ebp - 0x40]
call fcn.00401000
lea ecx, [ebp - 0x28]
call fcn.0040c810
lea ecx, [ebp - 0x64]
call fcn.0040c810
lea ecx, [ebp - 0xa0]
call fcn.0040c810
lea ecx, [ebp - 0x4c]
call fcn.0040c810
lea ecx, [ebp - 0x94]
call fcn.0040c810
lea ecx, [ebp - 0x7c]
call fcn.0040c810
lea ecx, [ebp - 0xac]
call fcn.0040c810
lea ecx, [ebp - 0x58]
call fcn.0040c810
lea ecx, [ebp - 0x70]
call fcn.0040c810
lea ecx, [ebp - 0x88]
call fcn.0040c810
lea eax, [ebp - 0xf0]
push eax
mov dword [ebp - 0xf0], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0xf0]
push edx
mov ecx, 0x4312b0
call fcn.00414870
push eax
push 0
push 0x1000004
push 1
push 0
push 0
lea ecx, [ebp - 0x40]
call fcn.00414870
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402511
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.00412b60
lea ecx, [ebp - 0x34]
call fcn.00412b60
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov ebx, eax
test ebx, ebx
je 0x40259d
mov eax, dword [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x40259d
push esi
push 1
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov esi, eax
test esi, esi
je 0x40259d
push 8
lea ecx, [ebp - 0x24]
push ecx
push 7
push ebx
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_SetInformationJobObject]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp + 0x10]
push edx
push esi
call edi
test eax, eax
je 0x40259d
cmp dword [ebp + 0x10], 4
je 0x4025b3
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x402582
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x1c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x4025da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x1c]
push edx
call edi
test esi, esi
je 0x4025e7
push esi
call edi
test ebx, ebx
je 0x4025ee
push ebx
call edi
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0x40]
call fcn.00412b60
lea ecx, [ebp - 0x34]
call fcn.00412b60
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret