Function at 0x401f70
Capabilities:
Create process on windows

Disassembly:
push ebp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x12c
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.USER32.dll_PostMessageW]
sub esp, 0x10
lea eax, [esp + 0x50]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetMessageW]
sub esp, 0x10
mov dword [esp + 4], esi
mov dword [esp], str.run_child:_about_to_run__ls_n
call fcn.00401620
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
sub esp, 8
mov ebx, eax
lea ebp, [esp + 0x3c]
lea edi, [esp + 0xb0]
mov dword [esp], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 0x70
mov dword [esp + 8], edi
mov dword [esp + 4], 9
call dword [sym.imp.KERNEL32.dll_QueryInformationJobObject]
sub esp, 0x14
test eax, eax
je 0x402034
cmp dword [esp + 0x3c], 0x70
jne 0x402034
test ebx, ebx
jne 0x402048
mov dword [esp + 4], str.Job_information_querying_failed
mov dword [esp], 0x65
call fcn.00401d50
or dword [esp + 0xc0], 0x3000
mov dword [esp + 0xc], 0x70
mov dword [esp + 8], edi
mov dword [esp + 4], 9
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetInformationJobObject]
sub esp, 0x10
test eax, eax
jne 0x40208b
mov dword [esp + 4], str.Job_information_setting_failed
mov dword [esp], 0x65
call fcn.00401d50
xor eax, eax
lea edi, [esp + 0x6c]
mov ecx, 0x11
rep stosd dword es:[edi], eax
lea eax, [esp + 0x6c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esp], 0xfffffff6
call edi
push edx
lea edx, [esp + 0xa4]
call fcn.00401ee0
test eax, eax
je 0x4020f4
mov dword [esp], 0xfffffff5
call edi
push ecx
lea edx, [esp + 0xa8]
call fcn.00401ee0
test eax, eax
jne 0x402108
mov dword [esp + 4], str.stdout_duplication_failed
mov dword [esp], 0x64
call fcn.00401d50
mov dword [esp + 4], str.stdin_duplication_failed
mov dword [esp], 0x64
call fcn.00401d50
mov dword [esp], 0xfffffff4
call edi
push edx
lea edx, [esp + 0xac]
call fcn.00401ee0
test eax, eax
jne 0x402136
mov dword [esp + 4], str.stderr_duplication_failed
mov dword [esp], 0x64
call fcn.00401d50
mov dword [esp + 4], 1
mov dword [esp], 0x401610
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push edi
push edi
test eax, eax
jne 0x402165
mov dword [esp + 4], str.control_handler_setting_failed
mov dword [esp], 0x65
call fcn.00401d50
lea eax, [esp + 0x40]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x98], 0x100
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
jne 0x4021e0
mov dword [esp + 8], esi
mov dword [esp + 4], str.Unable_to_create_process_using__ls
mov dword [esp], 0x65
call fcn.00401d50
mov eax, dword [esp + 0x40]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
push eax
push eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 0
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
sub esp, 0xc
mov eax, dword [esp + 0x40]
mov dword [esp + 4], ebp
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push ecx
push ecx
test eax, eax
jne 0x40224c
mov dword [esp + 4], str.Failed_to_get_exit_code_of_process
mov dword [esp], 0x65
call fcn.00401d50
mov eax, dword [esp + 0x3c]
mov dword [esp], str.child_process_exit_code:__d_n
mov dword [esp + 4], eax
call fcn.00401620
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.msvcrt.dll_exit
lea esi, [esi]