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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
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]
cmp eax, 2
jb 0x40574f
push esi
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.0040eead
add esp, 4
push eax
call fcn.0040f241
add esp, 4
push 0x40000
push 1
call fcn.0040eead
add esp, 4
push eax
call fcn.0041500f
add esp, 4
push eax
call fcn.00414e20
add esp, 8
mov edi, eax
push esi
push 0x42a314
push 1
call fcn.0040eead
add esp, 4
push eax
call fcn.00401020
add esp, 0xc
push 1
call fcn.0040eead
add esp, 4
push eax
call fcn.0040f241
add esp, 4
test edi, edi
js 0x40573c
push edi
push 1
call fcn.0040eead
add esp, 4
push eax
call fcn.0041500f
add esp, 4
push eax
call fcn.00414e20
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004064d4
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0xf8]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
push esi
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 0x40596d
cmp dword [ebp - 0x80], 0x70
jne 0x40596d
test edi, edi
je 0x40596d
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 0x4057db
push str.Failed_to_update_job_information
jmp 0x405972
push 0x44
lea eax, [ebp - 0xdc]
push 0
push eax
call fcn.004075a0
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.004055f0
add esp, 4
test eax, eax
je 0x405957
push str.stdout
push 0xfffffffffffffff5
call ebx
lea edx, [ebp - 0xa0]
mov ecx, eax
call fcn.004055f0
add esp, 4
test eax, eax
je 0x405957
push str.stderr
push 0xfffffffffffffff4
call ebx
lea edx, [ebp - 0x9c]
mov ecx, eax
call fcn.004055f0
add esp, 4
test eax, eax
je 0x405957
push 1
push 0x405660
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x405899
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.004064d4
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x90]
mov dword [ebp - 0xb0], pe_nt_image_headers32
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 0x4058ef
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.004064d4
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 0x405933
push str.Failed_to_get_exit_code_of_process
jmp 0x405972
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.004064d4
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.004064d4
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.004064d4
mov esp, ebp
pop ebp
ret