Function at 0x40f810
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45224d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x74
push esi
mov eax, dword [0x476040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ax, word [ebx + 0x14]
xorps xmm0, xmm0
mov dword [ebp - 0x80], 0x48
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 1
mov word [ebp - 0x50], ax
movups xmmword [ebp - 0x4e], xmm0
mov word [ebp - 0x3e], 0
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x40f94f
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
push dword [ebp - 0x18]
call fcn.00434cf1
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x40f914
push 1
push ecx
call fcn.00434ce3
add esp, 8
mov byte [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
push 0
push 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
jne 0x40f94c
mov eax, dword [ebx + 4]
push str.Could_not_initialize_the_proc_thread_attribute_list.
push str.C:ReleaseAI_toolsmsix_psfPsfLauncherStartProcessHelper.h
push 0x30
push eax
call fcn.0040f640
add esp, 0x10
mov esi, eax
jmp 0x40fa29
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], eax
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], eax
call fcn.0040fa60
mov byte [ebp - 4], 2
lea eax, [ebp - 0x38]
mov esi, dword [ebx + 8]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebx + 0x10]
push 0
push 0x80000
push 1
push 0
push 0
push dword [ebx + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40f9ad
mov eax, dword [ebx + 4]
push esi
push str.ERROR:_Failed_to_create_a_process_for__ws
push str.C:ReleaseAI_toolsmsix_psfPsfLauncherStartProcessHelper.h
push 0x47
push eax
call fcn.0040f640
add esp, 0x14
mov esi, eax
jmp 0x40fa0b
mov eax, dword [ebp - 0x38]
cmp eax, 0xffffffff
jne 0x40f9cd
push 0x80070006
push ecx
mov ecx, dword [ebx + 4]
call fcn.0040f5e0
add esp, 8
mov esi, 0x80070006
jmp 0x40fa0b
push dword [ebx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40f9f7
mov eax, dword [ebx + 4]
push str.Waiting_operation_failed_unexpectedly.
push str.C:ReleaseAI_toolsmsix_psfPsfLauncherStartProcessHelper.h
push 0x4b
push eax
call fcn.0040f640
add esp, 0x10
mov esi, eax
jmp 0x40fa0b
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov byte [ebp - 4], 0
cmp byte [ebp - 0x24], 0
je 0x40fa29
mov eax, dword [ebp - 0x28]
mov byte [ebp - 0x24], 0
mov eax, dword [eax]
test eax, eax
je 0x40fa29
push eax
call dword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40fa42
push 1
push eax
call fcn.00434ce3
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret