Function at 0x407d40
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.0040b800
mov eax, dword [0x435040]
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.004085d0
add esp, 0xc
push 1
push 0x407910
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.00413398
push eax
call fcn.00417aaf
push eax
call fcn.00416024
xor ecx, ecx
cmp eax, 0xffffffff
push 1
cmove eax, ecx
mov dword [esp + 0xbc], eax
call fcn.00413398
push eax
call fcn.00417aaf
push eax
call fcn.00416024
xor ecx, ecx
cmp eax, 0xffffffff
push 2
cmove eax, ecx
mov dword [esp + 0xcc], eax
call fcn.00413398
push eax
call fcn.00417aaf
push eax
call fcn.00416024
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 0x407eac
push str.Failed_to_create_child_process__n
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x429544
call fcn.00402860
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x20b0]
xor ecx, esp
call fcn.0040b4c3
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], 0x407430
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x407ee5
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 0x407f28
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x407f31
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 0x407faf
nop
cmp eax, 0xffffffff
jne 0x407f4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x3034], 0
jne 0x407fb8
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 0x407fa1
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 0x407f70
push 0x64
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x407f40
cmp byte [esi + 0x3034], 0
je 0x407ff0
push 0x1f4
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x408109
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x407fe1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x408109
cmp byte [esi + 0x3035], 0
jne 0x4080d1
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 0x408072
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 0x408041
cmp byte [esi + 0x3035], 0
jne 0x4080d1
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.0040b8e0
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push edx
push eax
call fcn.0040b830
test edx, edx
jl 0x408013
jg 0x4080c8
cmp eax, 0xfa
jb 0x408013
cmp byte [esi + 0x3035], 0
je 0x408109
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 0x408100
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 0x4080d1
mov eax, dword [esi + 0x3030]
test eax, eax
je 0x408124
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.0040b4c3
add esp, 0x20b4
ret