Function at 0x407830
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.0040afb0
mov eax, dword [0x433008]
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.00408030
add esp, 0xc
push 1
push 0x407240
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.00410fc8
push eax
call fcn.0041569b
push eax
call fcn.00413cc2
xor ecx, ecx
cmp eax, 0xffffffff
push 1
cmove eax, ecx
mov dword [esp + 0xbc], eax
call fcn.00410fc8
push eax
call fcn.0041569b
push eax
call fcn.00413cc2
xor ecx, ecx
cmp eax, 0xffffffff
push 2
cmove eax, ecx
mov dword [esp + 0xcc], eax
call fcn.00410fc8
push eax
call fcn.0041569b
push eax
call fcn.00413cc2
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 0x40799c
push str.Failed_to_create_child_process__n
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4274a4
call fcn.00402150
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x20b0]
xor ecx, esp
call fcn.0040adc3
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], 0x406d60
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x4079d5
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 0x407a18
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x407a21
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 0x407a9f
nop
cmp eax, 0xffffffff
jne 0x407a3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x3034], 0
jne 0x407aa8
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 0x407a91
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 0x407a60
push 0x64
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x407a30
cmp byte [esi + 0x3034], 0
je 0x407ae0
push 0x1f4
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x407bf9
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x407ad1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x407bf9
cmp byte [esi + 0x3035], 0
jne 0x407bc1
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 0x407b62
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 0x407b31
cmp byte [esi + 0x3035], 0
jne 0x407bc1
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.0040b090
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push edx
push eax
call fcn.0040afe0
test edx, edx
jl 0x407b03
jg 0x407bb8
cmp eax, 0xfa
jb 0x407b03
cmp byte [esi + 0x3035], 0
je 0x407bf9
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 0x407bf0
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 0x407bc1
mov eax, dword [esi + 0x3030]
test eax, eax
je 0x407c14
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.0040adc3
add esp, 0x20b4
ret