Function at 0x407820
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.0040b240
mov eax, dword [0x437040]
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.00408020
add esp, 0xc
push 1
push 0x407220
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.00414128
push eax
call fcn.0041889b
push eax
call fcn.00416e72
xor ecx, ecx
cmp eax, 0xffffffff
push 1
cmove eax, ecx
mov dword [esp + 0xbc], eax
call fcn.00414128
push eax
call fcn.0041889b
push eax
call fcn.00416e72
xor ecx, ecx
cmp eax, 0xffffffff
push 2
cmove eax, ecx
mov dword [esp + 0xcc], eax
call fcn.00414128
push eax
call fcn.0041889b
push eax
call fcn.00416e72
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 0x40798c
push str.Failed_to_create_child_process__n
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42b4bc
call fcn.00402110
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x20b0]
xor ecx, esp
call fcn.0040af03
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], 0x406d40
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x4079c5
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 0x407a08
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x407a11
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 0x407a8f
nop
cmp eax, 0xffffffff
jne 0x407a2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x3034], 0
jne 0x407a98
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 0x407a81
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 0x407a50
push 0x64
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x407a20
cmp byte [esi + 0x3034], 0
je 0x407ad0
push 0x1f4
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x407be9
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x407ac1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x407be9
cmp byte [esi + 0x3035], 0
jne 0x407bb1
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 0x407b52
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 0x407b21
cmp byte [esi + 0x3035], 0
jne 0x407bb1
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.0040b320
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push edx
push eax
call fcn.0040b270
test edx, edx
jl 0x407af3
jg 0x407ba8
cmp eax, 0xfa
jb 0x407af3
cmp byte [esi + 0x3035], 0
je 0x407be9
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 0x407be0
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 0x407bb1
mov eax, dword [esi + 0x3030]
test eax, eax
je 0x407c04
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.0040af03
add esp, 0x20b4
ret