Function at 0x408910
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.0040c5f0
mov eax, dword [0x439040]
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.004093c0
add esp, 0xc
push 1
push 0x408490
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x408968
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.00414188
push eax
call fcn.0041889f
push eax
call fcn.00416e12
xor ecx, ecx
cmp eax, 0xffffffff
push 1
cmove eax, ecx
mov dword [esp + 0xbc], eax
call fcn.00414188
push eax
call fcn.0041889f
push eax
call fcn.00416e12
xor ecx, ecx
cmp eax, 0xffffffff
push 2
cmove eax, ecx
mov dword [esp + 0xcc], eax
call fcn.00414188
push eax
call fcn.0041889f
push eax
call fcn.00416e12
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 0x408a9a
push str.Failed_to_create_child_process__n
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42c51c
call fcn.00402a40
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x20b0]
xor ecx, esp
call fcn.0040c2b3
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], 0x407e80
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 0x408af8
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 0x408b49
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 0x408b5f
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 0x408c00
nop
cmp eax, 0xffffffff
jne 0x408b99
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 0x408caa
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 0x408bf2
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 0x408bc1
push 0x64
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x408b80
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 0x408cc7
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 0x408cb4
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 0x408c7f
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 0x408e3c
mov eax, str.LOADER:_received_console_shutdown_event___exiting_the_wait_loop__n
jmp 0x408c05
mov ecx, str.LOADER:_child_process_has_finished._n
push ecx
call fcn.004025b0
add esp, 4
jmp 0x408e3c
cmp byte [esi + 0x3035], 0
jne 0x408dee
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 0x408d61
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 0x408d30
cmp byte [esi + 0x3035], 0
jne 0x408dd7
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.0040c6d0
push dword [esp + 0x40]
push dword [esp + 0x40]
push edx
push eax
call fcn.0040c620
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 0x408d00
jg 0x408dd0
cmp ebx, 0xfa
jb 0x408d00
push str.LOADER:_done_waiting_for_WM_QUERYENDSESSION___timed_out__n
jmp 0x408ddc
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 0x408e3c
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 0x408e3c
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 0x408e33
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 0x408e04
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 0x408e64
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.0040c2b3
add esp, 0x20b4
ret