Function at 0x408a40
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Hide graphical window
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
mov eax, 0x20f8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
call fcn.0040f2e0
mov ebx, 1
sub esp, eax
mov edi, dword [ecx]
lea ecx, [ebp - 0x2018]
mov dword [esp + 4], ecx
lea eax, [edi + 8]
mov dword [esp + 8], 0x1000
mov dword [esp], eax
call fcn.004094e0
mov dword [esp + 4], 1
mov dword [esp], 0x408350
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea edx, [ebp - 0x2060]
sub esp, 8
mov dword [ebp - 0x20b0], 0xc
mov dword [ebp - 0x20ac], 0
mov dword [ebp - 0x20a8], 1
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
sub esp, 4
mov word [ebp - 0x2030], bx
mov ebx, dword [fcn.00417fb0]
mov dword [ebp - 0x205c], 0
mov dword [ebp - 0x2058], 0
mov dword [ebp - 0x2054], 0
mov dword [ebp - 0x2034], 0x101
mov dword [esp], 0
call ebx
mov dword [esp], eax
call sub.msvcrt.dll__fileno_1
mov esi, dword [sym.imp.msvcrt.dll__get_osfhandle]
mov dword [esp], eax
call esi
xor ecx, ecx
cmp eax, 0xffffffff
cmove eax, ecx
mov dword [ebp - 0x2028], eax
mov dword [esp], 1
call ebx
mov dword [esp], eax
call sub.msvcrt.dll__fileno_1
mov dword [esp], eax
call esi
xor ecx, ecx
cmp eax, 0xffffffff
cmove eax, ecx
mov dword [ebp - 0x2024], eax
mov dword [esp], 2
call ebx
lea ebx, [edi + 0x3020]
mov dword [esp], eax
call sub.msvcrt.dll__fileno_1
mov dword [esp], eax
call esi
xor ecx, ecx
cmp eax, 0xffffffff
cmove eax, ecx
mov dword [ebp - 0x2020], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [ebp - 0x2060]
lea ecx, [ebp - 0x2018]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], edx
lea edx, [ebp - 0x20b0]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x409001
pxor xmm0, xmm0
lea eax, [ebp - 0x2088]
mov dword [ebp - 0x2068], 0
movups xmmword [ebp - 0x2088], xmm0
movups xmmword [ebp - 0x2078], xmm0
mov dword [ebp - 0x2064], str.PyInstallerOnefileHiddenWindow
mov dword [ebp - 0x2084], 0x408060
mov dword [esp], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
sub esp, 4
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x80000000
mov dword [esp + 0x18], 0x80000000
mov dword [esp + 0x14], 0x80000000
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.PyInstaller_Onefile_Hidden_Window
mov eax, dword [ebp - 0x2064]
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
sub esp, 0x30
mov dword [edi + 0x3030], eax
test eax, eax
je 0x408ca0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
sub esp, 8
mov dword [esp + 4], 0x64
mov eax, dword [edi + 0x3020]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx edx, byte [edi + 0x3034]
sub esp, 8
test eax, eax
je 0x408d28
test dl, dl
jne 0x408f72
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
lea ebx, [ebp - 0x20a4]
lea esi, [esi]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [edi + 0x3030]
mov dword [esp], ebx
mov dword [esp + 4], eax
call esi
sub esp, 0x14
test eax, eax
jle 0x408ca0
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_TranslateMessage]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_DispatchMessageW]
sub esp, 4
jmp 0x408ce0
test dl, dl
jne 0x408f72
movzx eax, byte [edi + 0x3035]
lea ecx, [ebp - 0x20b8]
mov dword [ebp - 0x20d0], ecx
test al, al
je 0x408dff
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea ebx, [ebp - 0x20a4]
jmp 0x408d8b
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], ebx
call esi
sub esp, 0x10
test eax, eax
jg 0x408fa7
movzx eax, byte [edi + 0x3035]
mov edx, dword [edi + 0x3030]
test al, al
jne 0x408d60
test edx, edx
je 0x408daf
mov dword [esp], edx
call dword [sym.imp.USER32.dll_DestroyWindow]
sub esp, 4
mov dword [edi + 0x3030], 0
mov eax, dword [ebp - 0x20d0]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x3020]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [edi + 0x3020]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 8
mov dword [esp], eax
call ebx
mov eax, dword [edi + 0x3024]
sub esp, 4
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x20b8]
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
lea eax, [ebp - 0x20c0]
lea esi, [ebp - 0x20a4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [ebp - 0x20c8]
sub esp, 4
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [ebp - 0x20d4], eax
call eax
mov eax, dword [sym.imp.USER32.dll_PeekMessageW]
sub esp, 4
mov dword [ebp - 0x20cc], eax
lea esi, cs:[esi]
mov dword [esp + 0x10], 0x4ff
mov dword [esp + 0xc], 0x32
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
sub esp, 0x14
jmp 0x408e94
mov dword [esp], esi
call dword [sym.imp.USER32.dll_TranslateMessage]
sub esp, 4
mov dword [esp], esi
call ebx
sub esp, 4
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [edi + 0x3030]
mov dword [esp], esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20cc]
call eax
sub esp, 0x14
test eax, eax
jg 0x408e80
movzx eax, byte [edi + 0x3035]
test al, al
jne 0x408d4b
mov eax, dword [ebp - 0x20d0]
mov dword [esp], eax
mov eax, dword [ebp - 0x20d4]
call eax
mov ecx, dword [ebp - 0x20b8]
mov ebx, dword [ebp - 0x20b4]
sub esp, 4
sub ecx, dword [ebp - 0x20c8]
sbb ebx, dword [ebp - 0x20c4]
mov eax, ecx
mov edx, ebx
shld edx, eax, 5
shl eax, 5
sub eax, ecx
sbb edx, ebx
shld edx, eax, 2
shl eax, 2
add eax, ecx
mov ecx, dword [ebp - 0x20c0]
adc edx, ebx
mov ebx, dword [ebp - 0x20bc]
shld edx, eax, 3
shl eax, 3
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040f310
mov ecx, 0xf9
cmp ecx, eax
mov eax, 0
sbb eax, edx
jge 0x408e40
movzx eax, byte [edi + 0x3035]
test al, al
jne 0x408d4b
mov edx, dword [edi + 0x3030]
jmp 0x408d95
mov dword [esp + 4], 0x1f4
mov eax, dword [edi + 0x3020]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
jne 0x408fcb
lea eax, [ebp - 0x20b8]
mov edx, dword [edi + 0x3030]
mov dword [ebp - 0x20d0], eax
jmp 0x408d95
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_TranslateMessage]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_DispatchMessageW]
movzx eax, byte [edi + 0x3035]
sub esp, 4
jmp 0x408d51
mov dword [esp + 4], 0xffffffff
mov eax, dword [edi + 0x3020]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
sub esp, 8
mov dword [esp + 4], 0xffffffff
mov eax, dword [edi + 0x3020]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
jmp 0x408f90
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 8], str.Failed_to_create_child_process__n
mov dword [esp + 4], eax
mov dword [esp], str.CreateProcessW
call fcn.004027b0
mov eax, 0xffffffff
jmp 0x408df3