Function at 0x408930
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.0040c600
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.004093e0
add esp, 0xc
push 1
push 0x4084b0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x408988
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.00414198
push eax
call fcn.004188af
push eax
call fcn.00416e22
xor ecx, ecx
cmp eax, 0xffffffff
push 1
cmove eax, ecx
mov dword [esp + 0xbc], eax
call fcn.00414198
push eax
call fcn.004188af
push eax
call fcn.00416e22
xor ecx, ecx
cmp eax, 0xffffffff
push 2
cmove eax, ecx
mov dword [esp + 0xcc], eax
call fcn.00414198
push eax
call fcn.004188af
push eax
call fcn.00416e22
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 0x408aba
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.0040c2c3
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], 0x407ea0
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 0x408b18
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 0x408b69
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 0x408b7f
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 0x408c20
nop
cmp eax, 0xffffffff
jne 0x408bb9
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 0x408cca
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 0x408c12
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 0x408be1
push 0x64
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x408ba0
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 0x408ce7
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 0x408cd4
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 0x408c9f
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 0x408e5c
mov eax, str.LOADER:_received_console_shutdown_event___exiting_the_wait_loop__n
jmp 0x408c25
mov ecx, str.LOADER:_child_process_has_finished._n
push ecx
call fcn.004025b0
add esp, 4
jmp 0x408e5c
cmp byte [esi + 0x3035], 0
jne 0x408e0e
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 0x408d81
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 0x408d50
cmp byte [esi + 0x3035], 0
jne 0x408df7
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.0040c6e0
push dword [esp + 0x40]
push dword [esp + 0x40]
push edx
push eax
call fcn.0040c630
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 0x408d20
jg 0x408df0
cmp ebx, 0xfa
jb 0x408d20
push str.LOADER:_done_waiting_for_WM_QUERYENDSESSION___timed_out__n
jmp 0x408dfc
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 0x408e5c
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 0x408e5c
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 0x408e53
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 0x408e24
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 0x408e84
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.0040c2c3
add esp, 0x20b4
ret