Function at 0x408090
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.0040b890
mov eax, dword [0x432010]
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.00408910
add esp, 0xc
push 1
push 0x407c60
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea eax, [esp + 0x74]
mov dword [esp + 0x40], 0xc
push eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 1
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.00410788
push eax
call fcn.00414daf
push eax
call fcn.004133af
xor ecx, ecx
cmp eax, 0xffffffff
push 1
cmove eax, ecx
mov dword [esp + 0xbc], eax
call fcn.00410788
push eax
call fcn.00414daf
push eax
call fcn.004133af
xor ecx, ecx
cmp eax, 0xffffffff
push 2
cmove eax, ecx
mov dword [esp + 0xcc], eax
call fcn.00410788
push eax
call fcn.00414daf
push eax
call fcn.004133af
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 0x4081fc
push str.Failed_to_create_child_process__n
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x426544
call fcn.004028a0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x20b0]
xor ecx, esp
call fcn.0040b6a3
add esp, 0x20b4
ret
xorps xmm0, xmm0
lea eax, [esp + 0x4c]
movups xmmword [esp + 0x4c], xmm0
push eax
movq qword [esp + 0x70], xmm0
movups xmmword [esp + 0x60], xmm0
mov dword [esp + 0x74], str.PyInstallerOnefileHiddenWindow
mov dword [esp + 0x54], 0x407780
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x408235
call dword [sym.imp.KERNEL32.dll_GetLastError]
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 0x408278
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x408281
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x64
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4082ff
nop
cmp eax, 0xffffffff
jne 0x40829b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x3034], 0
jne 0x408308
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 0x4082f1
nop
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 0x4082c0
push 0x64
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x408290
cmp byte [esi + 0x3034], 0
je 0x408340
push 0x1f4
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x408459
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x408331
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x408459
cmp byte [esi + 0x3035], 0
jne 0x408421
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 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 + 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jle 0x4083c2
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 0x408391
cmp byte [esi + 0x3035], 0
jne 0x408421
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
sbb eax, dword [esp + 0x34]
push 0
push 0x3e8
push eax
push ecx
call fcn.0040b970
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push edx
push eax
call fcn.0040b8c0
test edx, edx
jl 0x408363
jg 0x408418
cmp eax, 0xfa
jb 0x408363
cmp byte [esi + 0x3035], 0
je 0x408459
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 0x408450
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 0x408421
mov eax, dword [esi + 0x3030]
test eax, eax
je 0x408474
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0x3030], 0
lea eax, [esp + 8]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [edi]
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.0040b6a3
add esp, 0x20b4
ret