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

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x20a0]
mov eax, 0x21a0
call fcn.14000c9d0
sub rsp, rax
mov rax, qword [0x14003d070]
xor rax, rsp
mov qword [rbp + 0x2090], rax
mov rdi, rcx
lea rdx, [rbp + 0x90]
add rcx, 0x10
mov r8d, 0x1000
call fcn.1400096a0
mov r14d, 1
lea rcx, [0x1400084f0]
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x140008a64
lea rcx, str.LOADER:_failed_to_install_console_ctrl_handler__n
call fcn.140001f80
lea rcx, str.LOADER:_setting_up_child_process..._n
call fcn.140001f80
xor r15d, r15d
mov dword [rbp - 0x50], 0x18
lea rcx, [rbp + 0x20]
mov qword [rbp - 0x48], r15
mov dword [rbp - 0x40], r14d
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xorps xmm0, xmm0
mov qword [rbp + 0x28], r15
xor ecx, ecx
movdqa xmmword [rbp + 0x30], xmm0
mov dword [rbp + 0x5c], 0x101
mov word [rbp + 0x60], r14w
call fcn.140013730
mov rcx, rax
call fcn.1400183f8
mov ecx, eax
call fcn.14001678c
cmp rax, 0xffffffffffffffff
mov ecx, r14d
cmove rax, r15
mov qword [rbp + 0x70], rax
call fcn.140013730
mov rcx, rax
call fcn.1400183f8
mov ecx, eax
call fcn.14001678c
cmp rax, 0xffffffffffffffff
lea ecx, [r15 + 2]
cmove rax, r15
mov qword [rbp + 0x78], rax
call fcn.140013730
mov rcx, rax
call fcn.1400183f8
mov ecx, eax
call fcn.14001678c
cmp rax, 0xffffffffffffffff
lea rsi, [rdi + 0x3040]
cmove rax, r15
mov qword [rbp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x48], rsi
lea r8, [rbp - 0x50]
mov rdx, rax
lea rcx, [rbp + 0x90]
lea rax, [rbp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140008b7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Failed_to_create_child_process__n
lea rcx, [0x14002ca08]
call fcn.140002560
lea eax, [r15 - 1]
jmp 0x140008fa5
lea rcx, str.LOADER:_child_process_started__n
call fcn.140001f80
lea rcx, str.LOADER:_creating_hidden_window_to_capture_system_shutdown_events..._n
call fcn.140001f80
xorps xmm0, xmm0
mov qword [rbp - 0x30], r15
lea rax, str.PyInstallerOnefileHiddenWindow
movdqa xmmword [rbp - 0x20], xmm0
mov qword [rbp + 0x10], rax
lea rcx, [rbp - 0x30]
lea rax, [0x140007f20]
movdqa xmmword [rbp], xmm0
xorps xmm1, xmm1
mov qword [rbp - 0x28], rax
movdqa xmmword [rbp - 0x10], xmm1
call qword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x140008be8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LOADER:_failed_to_register_hidden_window_class___d___n
call fcn.140001f80
mov rdx, qword [rbp + 0x10]
lea r8, str.PyInstaller_Onefile_Hidden_Window
mov qword [rsp + 0x58], rdi
xor r9d, r9d
mov qword [rsp + 0x50], r15
xor ecx, ecx
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], 0x80000000
mov dword [rsp + 0x30], 0x80000000
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [rdi + 0x3058], rax
test rax, rax
jne 0x140008c54
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LOADER:_failed_to_create_hidden_window___d___n
call fcn.140001f80
jmp 0x140008c6b
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, str.LOADER:_hidden_window_created__n
call fcn.140001f80
lea rcx, str.LOADER:_entering_the_waiting_loop..._n
call fcn.140001f80
mov rcx, qword [rsi]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140008d20
nop dword [rax]
cmp eax, 0xffffffff
jne 0x140008ca9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LOADER:_WaitForSingleObject___failed_with_error_code__d__n
call fcn.140001f80
cmp byte [rdi + 0x3060], r15b
jne 0x140008dc6
mov rdx, qword [rdi + 0x3058]
lea rcx, [rbp - 0x80]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
xor r8d, r8d
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jle 0x140008d0a
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov rdx, qword [rdi + 0x3058]
lea rcx, [rbp - 0x80]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
xor r8d, r8d
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jg 0x140008cd6
mov rcx, qword [rsi]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140008c90
lea rcx, str.LOADER:_child_process_has_finished___exiting_the_wait_loop__n
call fcn.140001f80
lea rcx, str.LOADER:_made_it_out_of_the_waiting_loop__n
call fcn.140001f80
cmp byte [rdi + 0x3060], r15b
je 0x140008de3
mov edx, 0x1f4
lea rcx, str.LOADER:_handling_console_shutdown___giving_the_child__d_ms_to_exit..._n
call fcn.140001f80
mov rcx, qword [rsi]
mov edx, 0x1f4
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140008dd2
lea rcx, str.LOADER:_terminating_the_child_process..._n
call fcn.140001f80
mov rcx, qword [rsi]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x140008d9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LOADER:_TerminateProcess_call_failed___d__n
call fcn.140001f80
mov rcx, qword [rsi]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
lea rdx, str.LOADER:_child_process_not_terminated__n
lea rcx, str.LOADER:_child_process_terminated__n
cmovne rcx, rdx
call fcn.140001f80
jmp 0x140008f58
lea rcx, str.LOADER:_received_console_shutdown_event___exiting_the_wait_loop__n
jmp 0x140008d27
lea rcx, str.LOADER:_child_process_has_finished._n
call fcn.140001f80
jmp 0x140008f58
cmp byte [rdi + 0x3061], r15b
jne 0x140008f0b
mov edx, 0xfa
lea rcx, str.LOADER:_waiting__d_ms_in_case_we_receive_WM_QUERYENDSESSION..._n
call fcn.140001f80
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov qword [rsp + 0x21c8], rbx
nop
mov r9d, 0x32
mov dword [rsp + 0x20], 0x4ff
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov rdx, qword [rdi + 0x3058]
lea rcx, [rbp - 0x80]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
xor r8d, r8d
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jle 0x140008e94
nop dword [rax + rax]
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov rdx, qword [rdi + 0x3058]
lea rcx, [rbp - 0x80]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
xor r8d, r8d
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jg 0x140008e60
cmp byte [rdi + 0x3061], r15b
jne 0x140008eee
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x68]
lea rcx, str.LOADER:_waited__lld_ms____d_ms..._n
sub rax, qword [rsp + 0x70]
mov r8d, 0xfa
imul rax, rax, 0x3e8
cqo
idiv qword [rsp + 0x78]
mov rdx, rax
mov rbx, rax
call fcn.140001f80
cmp rbx, 0xfa
jl 0x140008e20
lea rcx, str.LOADER:_done_waiting_for_WM_QUERYENDSESSION___timed_out__n
jmp 0x140008ef5
lea rcx, str.LOADER:_done_waiting_for_WM_QUERYENDSESSION___message_received__n
call fcn.140001f80
mov rbx, qword [rsp + 0x21c8]
cmp byte [rdi + 0x3061], r15b
je 0x140008f58
lea rcx, str.LOADER:_received_session_shutdown_signal_via_WM_QUERYENDSESSION__waiting_for_WM_ENDSESSION..._n
call fcn.140001f80
cmp byte [rdi + 0x3061], r15b
je 0x140008f58
mov rdx, qword [rdi + 0x3058]
lea rcx, [rbp - 0x80]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x140008f4f
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [rdi + 0x3061], r15b
jne 0x140008f20
lea rcx, str.LOADER:_retrieving_process_exit_code_and_performing_cleanup..._n
call fcn.140001f80
mov rcx, qword [rdi + 0x3058]
test rcx, rcx
je 0x140008f7d
call qword [sym.imp.USER32.dll_DestroyWindow]
mov qword [rdi + 0x3058], r15
mov rcx, qword [rsi]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x3048]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x60]
mov rcx, qword [rbp + 0x2090]
xor rcx, rsp
call fcn.14000c7f0
lea r11, [rsp + 0x21a0]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret