Function at 0x408bc0
Capabilities:
Accept command line arguments
Check for time delay via queryperformancecounter
Create process on windows
Create process suspended
Hide graphical window
Terminate process

Disassembly:
mov eax, 0x20b4
call fcn.0040c730
mov eax, dword [0x43a040]
xor eax, esp
mov dword [esp + 0x20b0], eax
push esi
mov esi, dword [esp + 0x20bc]
lea eax, [esp + 0xb4]
push edi
push 0x1000
push eax
lea eax, [esi + 8]
push eax
call fcn.00409510
add esp, 0xc
push 1
push 0x4084e0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x408c18
push str.LOADER:_failed_to_install_console_ctrl_handler__n
call fcn.004025b0
add esp, 4
push str.LOADER:_setting_up_child_process..._n
call fcn.004025b0
add esp, 4
mov dword [esp + 0x40], 0xc
lea eax, [esp + 0x74]
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 1
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
mov dword [esp + 0x78], 0
push 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0xa4], 0x101
mov word [esp + 0xa8], ax
call fcn.00414618
push eax
call fcn.00418e2c
push eax
call fcn.0041732a
xor ecx, ecx
cmp eax, 0xffffffff
push 1
cmove eax, ecx
mov dword [esp + 0xbc], eax
call fcn.00414618
push eax
call fcn.00418e2c
push eax
call fcn.0041732a
xor ecx, ecx
cmp eax, 0xffffffff
push 2
cmove eax, ecx
mov dword [esp + 0xcc], eax
call fcn.00414618
push eax
call fcn.00418e2c
push eax
call fcn.0041732a
add esp, 0x24
lea edi, [esi + 0x3020]
xor ecx, ecx
cmp eax, 0xffffffff
cmove eax, ecx
push edi
mov dword [esp + 0xb8], eax
lea eax, [esp + 0x78]
push eax
push ecx
push ecx
push ecx
push 1
push ecx
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [esp + 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x408d4a
push str.Failed_to_create_child_process__n
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42d57c
call fcn.00402a40
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x20b0]
xor ecx, esp
call fcn.0040c3f3
add esp, 0x20b4
ret
push str.LOADER:_child_process_started__n
call fcn.004025b0
push str.LOADER:_creating_hidden_window_to_capture_system_shutdown_events..._n
call fcn.004025b0
add esp, 8
lea eax, [esp + 0x4c]
xorps xmm0, xmm0
movups xmmword [esp + 0x4c], xmm0
mov dword [esp + 0x50], 0x407ed0
movq qword [esp + 0x6c], xmm0
push eax
movups xmmword [esp + 0x60], xmm0
mov dword [esp + 0x74], str.PyInstallerOnefileHiddenWindow
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x408da8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LOADER:_failed_to_register_hidden_window_class___d___n
call fcn.004025b0
add esp, 8
push esi
push 0
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0
push str.PyInstaller_Onefile_Hidden_Window
push dword [esp + 0x98]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 0x3030], eax
test eax, eax
jne 0x408df9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LOADER:_failed_to_create_hidden_window___d___n
call fcn.004025b0
add esp, 8
jmp 0x408e0f
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push str.LOADER:_hidden_window_created__n
call fcn.004025b0
add esp, 4
push str.LOADER:_entering_the_waiting_loop..._n
call fcn.004025b0
add esp, 4
push 0x64
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x408eb0
nop
cmp eax, 0xffffffff
jne 0x408e49
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LOADER:_WaitForSingleObject___failed_with_error_code__d__n
call fcn.004025b0
add esp, 8
cmp byte [esi + 0x3034], 0
jne 0x408f5a
push 1
push 0
push 0
push dword [esi + 0x3030]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jle 0x408ea2
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 0
push 0
push dword [esi + 0x3030]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jg 0x408e71
push 0x64
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x408e30
mov eax, str.LOADER:_child_process_has_finished___exiting_the_wait_loop__n
push eax
call fcn.004025b0
push str.LOADER:_made_it_out_of_the_waiting_loop__n
call fcn.004025b0
add esp, 8
cmp byte [esi + 0x3034], 0
je 0x408f77
push 0x1f4
push str.LOADER:_handling_console_shutdown___giving_the_child__d_ms_to_exit..._n
call fcn.004025b0
add esp, 8
push 0x1f4
push dword [esi + 0x3020]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x408f64
push str.LOADER:_terminating_the_child_process..._n
call fcn.004025b0
add esp, 4
push 0xffffffffffffffff
push dword [esi + 0x3020]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x408f2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LOADER:_TerminateProcess_call_failed___d__n
call fcn.004025b0
add esp, 8
push 0xffffffffffffffff
push dword [esi + 0x3020]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov edx, str.LOADER:_child_process_terminated__n
mov ecx, str.LOADER:_child_process_not_terminated__n
cmove ecx, edx
push ecx
call fcn.004025b0
add esp, 4
jmp 0x4090ec
mov eax, str.LOADER:_received_console_shutdown_event___exiting_the_wait_loop__n
jmp 0x408eb5
mov ecx, str.LOADER:_child_process_has_finished._n
push ecx
call fcn.004025b0
add esp, 4
jmp 0x4090ec
cmp byte [esi + 0x3035], 0
jne 0x40909e
push 0xfa
push str.LOADER:_waiting__d_ms_in_case_we_receive_WM_QUERYENDSESSION..._n
call fcn.004025b0
add esp, 8
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push ebx
nop dword [eax]
push 0x4ff
push 0x32
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 1
push 0
push 0
push dword [esi + 0x3030]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jle 0x409011
nop
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 0
push 0
push dword [esi + 0x3030]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jg 0x408fe0
cmp byte [esi + 0x3035], 0
jne 0x409087
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
sbb eax, dword [esp + 0x38]
push 0
push 0x3e8
push eax
push ecx
call fcn.0040c810
push dword [esp + 0x40]
push dword [esp + 0x40]
push edx
push eax
call fcn.0040c760
push 0xfa
mov edi, edx
mov ebx, eax
push edi
push ebx
push str.LOADER:_waited__lld_ms____d_ms..._n
call fcn.004025b0
add esp, 0x10
test edi, edi
jl 0x408fb0
jg 0x409080
cmp ebx, 0xfa
jb 0x408fb0
push str.LOADER:_done_waiting_for_WM_QUERYENDSESSION___timed_out__n
jmp 0x40908c
push str.LOADER:_done_waiting_for_WM_QUERYENDSESSION___message_received__n
call fcn.004025b0
add esp, 4
cmp byte [esi + 0x3035], 0
pop ebx
je 0x4090ec
push str.LOADER:_received_session_shutdown_signal_via_WM_QUERYENDSESSION__waiting_for_WM_ENDSESSION..._n
call fcn.004025b0
add esp, 4
cmp byte [esi + 0x3035], 0
je 0x4090ec
push 0
push 0
push dword [esi + 0x3030]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x4090e3
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [esi + 0x3035], 0
jne 0x4090b4
push str.LOADER:_retrieving_process_exit_code_and_performing_cleanup..._n
call fcn.004025b0
mov eax, dword [esi + 0x3030]
add esp, 4
test eax, eax
je 0x409114
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0x3030], 0
lea eax, [esp + 8]
push eax
push dword [esi + 0x3020]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [esi + 0x3020]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0x3024]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x20b8]
mov eax, dword [esp + 8]
pop edi
pop esi
xor ecx, esp
call fcn.0040c3f3
add esp, 0x20b4
ret