Function at 0x405790
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push str.PYLAUNCHER_DRYRUN
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push esi
cmp eax, 2
jb 0x40586f
push str.LaunchCommand:__s_n
call fcn.00401130
push str._Exiting_due_to_PYLAUNCHER_DRYRUN_variable_n
call fcn.00401130
add esp, 0xc
push 1
call fcn.0040ef6d
add esp, 4
push eax
call fcn.0040f301
add esp, 4
push 0x40000
push 1
call fcn.0040ef6d
add esp, 4
push eax
call fcn.004150a6
add esp, 4
push eax
call fcn.00414eb7
add esp, 8
mov edi, eax
push esi
push 0x428e48
push 1
call fcn.0040ef6d
add esp, 4
push eax
call fcn.00401020
add esp, 0xc
push 1
call fcn.0040ef6d
add esp, 4
push eax
call fcn.0040f301
add esp, 4
test edi, edi
js 0x40585c
push edi
push 1
call fcn.0040ef6d
add esp, 4
push eax
call fcn.004150a6
add esp, 4
push eax
call fcn.00414eb7
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004065bc
mov esp, ebp
pop ebp
ret
push str._about_to_run:__s_n
call fcn.00401130
add esp, 8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov edi, eax
lea eax, [ebp - 0x80]
push eax
push 0x70
lea eax, [ebp - 0x7c]
push eax
push 9
push edi
call dword [sym.imp.KERNEL32.dll_QueryInformationJobObject]
test eax, eax
je 0x405a6b
cmp dword [ebp - 0x80], 0x70
jne 0x405a6b
test edi, edi
je 0x405a6b
or dword [ebp - 0x6c], 0x3000
lea eax, [ebp - 0x7c]
push 0x70
push eax
push 9
push edi
call dword [sym.imp.KERNEL32.dll_SetInformationJobObject]
test eax, eax
jne 0x4058d9
push str.Failed_to_update_job_information
jmp 0x405a70
push 0x44
lea eax, [ebp - 0xdc]
push 0
push eax
call fcn.00407660
add esp, 0xc
lea eax, [ebp - 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push str.stdin
push 0xfffffffffffffff6
call ebx
lea edx, [ebp - 0xa4]
mov ecx, eax
call fcn.00405710
add esp, 4
test eax, eax
je 0x405a55
push str.stdout
push 0xfffffffffffffff5
call ebx
lea edx, [ebp - 0xa0]
mov ecx, eax
call fcn.00405710
add esp, 4
test eax, eax
je 0x405a55
push str.stderr
push 0xfffffffffffffff4
call ebx
lea edx, [ebp - 0x9c]
mov ecx, eax
call fcn.00405710
add esp, 4
test eax, eax
je 0x405a55
push 1
push 0x405780
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x405997
push str.Failed_to_update_Control_C_handler
push eax
call fcn.00401200
mov eax, 0x64
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004065bc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x90]
mov dword [ebp - 0xb0], 0x100
push eax
lea eax, [ebp - 0xdc]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4059ed
push esi
push str.Unable_to_create_process_using__s
push eax
call fcn.00401200
add esp, 0xc
mov eax, 0x65
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004065bc
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x90]
push edi
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0xffffffffffffffff
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x405a31
push str.Failed_to_get_exit_code_of_process
jmp 0x405a70
push dword [ebp - 0x80]
push str.child_process_exit_code:__d_n
call fcn.00401130
mov eax, dword [ebp - 0x80]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004065bc
mov esp, ebp
pop ebp
ret
mov eax, 0x64
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004065bc
mov esp, ebp
pop ebp
ret
push str.Failed_to_query_job_information
push 0
call fcn.00401200
mov ecx, dword [ebp - 8]
add esp, 8
xor ecx, ebp
mov eax, 0x65
pop edi
pop esi
pop ebx
call fcn.004065bc
mov esp, ebp
pop ebp
ret