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

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xf4
push ebx
push esi
push edi
lea ecx, [ebp + 0x28]
call fcn.0040145c
lea ecx, [ebp + 0x34]
call fcn.0040145c
lea eax, [ebp + 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
call fcn.00404989
mov eax, dword [ebp + 0x7c]
pop ecx
pop ecx
push dword [ebp + 0x78]
add eax, 0x30
push 0x416738
push dword [ebp + 0x74]
push 0x22
push 0x20
push eax
push 0x3a
push str.sfxwaitall
push 0x416718
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp - 0x20]
push 0x22
push eax
call fcn.004047f1
add esp, 0xc
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040480f
add esp, 0xc
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.0040480f
add esp, 0xc
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0040482d
add esp, 0xc
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040482d
add esp, 0xc
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040482d
add esp, 0xc
push eax
lea eax, [ebp + 4]
push eax
call fcn.0040482d
add esp, 0xc
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.0040480f
add esp, 0xc
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0040480f
add esp, 0xc
push eax
lea eax, [ebp + 0x40]
push eax
call fcn.0040480f
add esp, 0xc
push eax
lea ecx, [ebp + 0x34]
call fcn.004013ad
push dword [ebp + 0x40]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x44]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x20]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x28
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x44
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
lea eax, [ebp + 0x50]
push eax
xor ebx, ebx
lea eax, [ebp - 0x88]
push eax
push ebx
push ebx
push 0x1000004
xor edi, edi
inc edi
push edi
push ebx
push ebx
push dword [ebp + 0x34]
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
jne 0x4050f7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push dword [ebp + 0x34]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
push ebx
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_CreateJobObjectW]
cmp eax, ebx
mov dword [ebp + 0x7c], eax
je 0x40516a
push dword [ebp + 0x50]
push eax
call dword [sym.imp.KERNEL32.DLL_AssignProcessToJobObject]
test eax, eax
je 0x40516a
push ebx
push edi
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateIoCompletionPort]
mov esi, eax
cmp esi, ebx
je 0x40516a
push 8
lea eax, [ebp + 0x44]
push eax
push 7
push dword [ebp + 0x7c]
mov dword [ebp + 0x44], edi
mov dword [ebp + 0x48], esi
call dword [sym.imp.KERNEL32.DLL_SetInformationJobObject]
push dword [ebp + 0x54]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov edi, dword [sym.imp.KERNEL32.DLL_GetQueuedCompletionStatus]
jmp 0x405155
cmp dword [ebp + 0x68], 4
je 0x40517e
push 0xffffffffffffffff
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x68]
push eax
push esi
call edi
test eax, eax
jne 0x40514f
push dword [ebp + 0x54]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push 0xffffffffffffffff
push dword [ebp + 0x50]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp + 0x54]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call edi
lea eax, [ebp + 0x64]
push eax
push dword [ebp + 0x50]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
jne 0x4051a3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x64], eax
push dword [ebp + 0x50]
call edi
cmp esi, ebx
je 0x4051af
push esi
call edi
cmp dword [ebp + 0x7c], ebx
je 0x4051b9
push dword [ebp + 0x7c]
call edi
mov esi, dword [ebp + 0x64]
jmp 0x4050db