Function at 0x405850
Capabilities:
Create process on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x458
mov eax, 0x64
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, 5
push ebp
mov ebp, dword [esp + 0x468]
push esi
mov word [esp + 0x50], ax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x468]
push edi
push ebp
push eax
lea ecx, [esp + 0x70]
xor ebx, ebx
push str.LaunchConfigAndWaitWithFocus__s___s_
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x80000000
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov word [esp + 0x66], bx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
call fcn.00406f8b
lea edx, [esp + 0x78]
push edx
call fcn.00406080
add esp, 0x14
cmp ebp, ebx
je 0x405945
mov edi, 0x40fe68
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x46c]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x46c]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x14]
mov edx, dword [esp + 0x46c]
lea ecx, [esp + 0x24]
push eax
push ecx
push ebx
push ebx
push 0x28
push ebx
push ebx
push ebx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x405999
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x6c]
push str.LaunchConfigAndWaitWithFocus_ERROR:__u
push eax
call fcn.00406f8b
lea ecx, [esp + 0x74]
push ecx
call fcn.00406080
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x458
ret
mov edx, dword [esp + 0x14]
push 0x1388
push edx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [esp + 0x20]
push eax
call fcn.00405ab0
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 4
mov ebp, eax
push 0x3e8
push ecx
call edi
mov esi, eax
lea edx, [esp + 0x68]
push esi
push str.Exit_Code:__u
push edx
call fcn.00406f8b
lea eax, [esp + 0x74]
push eax
call fcn.00406080
add esp, 0x10
cmp esi, 0xffffffff
je 0x405a47
cmp esi, ebx
je 0x405a47
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
cmp edx, eax
je 0x405a17
push ebp
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x14]
push 0x3e8
push eax
call edi
mov esi, eax
lea ecx, [esp + 0x68]
push esi
push str.Exit_Code:__u
push ecx
call fcn.00406f8b
lea edx, [esp + 0x74]
push edx
call fcn.00406080
add esp, 0x10
cmp esi, 0xffffffff
jne 0x4059ee
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x405a59
push eax
call esi
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x405a65
push eax
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x458
ret