Function at 0x40fbfe
Capabilities:
Create process on windows

Disassembly:
push ebp
sub esp, 0x7c
lea ebp, [esp - 4]
mov eax, dword [0x44bd40]
xor eax, ebp
mov dword [ebp + 0x7c], eax
push pe_nt_image_headers32
mov eax, 0x439c64
call fcn.0042501a
mov ebx, dword [ebp + 0x88]
mov esi, dword [ebp + 0x94]
mov eax, dword [ebp + 0x98]
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0x57
je 0x40fc57
push ebx
call fcn.00423fc0
test eax, eax
pop ecx
jbe 0x40fc57
xor eax, eax
inc eax
jmp 0x40fc59
xor eax, eax
xor ecx, ecx
cmp eax, edi
setne cl
mov eax, ecx
cmp eax, edi
jne 0x40fc8b
push edi
call fcn.0041244b
push eax
push str.Invalid_command_line
push str._s_failed_returning__s_n
push 0x44d160
call fcn.00406a88
add esp, 0x14
xor eax, eax
jmp 0x410030
push dword [ebp - 0x18]
push esi
push dword [ebp + 0x8c]
mov esi, 0x44d160
push ebx
push str.LaunchApp__s__d__p__p__n
push esi
call fcn.00406f12
xor eax, eax
inc eax
add esp, 0x18
cmp dword [ebp + 0xa0], eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xf4], 0x44
je 0x40fd79
cmp dword [ebp + 0x8c], edi
jne 0x40fcd9
cmp dword [ebp + 0xa0], edi
je 0x40fd79
push ebx
push str.Using_CreateProcess_cmdline___s__n
push 0x20
push esi
mov dword [ebp - 0x34], edi
call fcn.00401110
add esp, 0x10
lea eax, [ebp - 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push ebx
lea ecx, [ebp - 0xb0]
call fcn.004033c0
lea ecx, [ebp - 0x94]
push ecx
mov ecx, eax
call fcn.00401e60
mov ecx, eax
call fcn.00401230
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0xf4]
push ecx
push edi
push edi
push 0x20
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push edi
push 1
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x30], eax
call fcn.00401ec0
cmp dword [ebp - 0x30], edi
jne 0x40fe3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x14]
push dword [ebp + 0x8c]
push ebx
push str.LaunchApp__s__d__p__p__failed_with__d_n
push esi
call fcn.00406a88
add esp, 0x1c
jmp 0x41002d
push ebx
lea ecx, [ebp]
mov dword [ebp - 0x34], eax
call fcn.00411655
cmp dword [ebp + 0x78], 0x10
mov ecx, dword [ebp + 0x64]
mov dword [ebp - 4], edi
jae 0x40fd94
lea ecx, [ebp + 0x64]
cmp dword [ebp + 0x5c], 0x10
mov eax, dword [ebp + 0x48]
jae 0x40fda0
lea eax, [ebp + 0x48]
push ecx
push eax
push str.Using_shellExecute_file___s_and_param__s_n
push 0x20
push esi
call fcn.00401110
mov eax, dword [ebp + 0x48]
add esp, 0x14
cmp dword [ebp + 0x5c], 0x10
mov dword [ebp - 0x8c], 0x3c
mov dword [ebp - 0x88], 0x440
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x80], edi
jae 0x40fddb
lea eax, [ebp + 0x48]
cmp dword [ebp + 0x78], 0x10
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x64]
jae 0x40fdea
lea eax, [ebp + 0x64]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], 1
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x54], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp eax, edi
mov dword [ebp - 0x30], eax
je 0x40fe29
push 0x10
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.00421e30
mov eax, dword [ebp - 0x54]
add esp, 0xc
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00410fea
jmp 0x40fd46
cmp dword [ebp - 0x14], edi
je 0x40fe68
push 0xbb8
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x28]
call dword [ebp - 0x14]
push dword [ebp - 0x14]
push str.Called__p_callback_before_waiting_n
push esi
call fcn.00406f12
add esp, 0x18
cmp dword [ebp + 0x8c], edi
je 0x410024
cmp dword [ebp + 0x9c], edi
push ebx
je 0x40ff6e
push str.Waiting_for__s__or_any_messages__n
push esi
call fcn.00406f12
mov ebx, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
add esp, 0xc
jmp 0x40fee8
push dword [ebp - 0x4c]
push dword [ebp - 0x2c]
push str.Received_message_while_waiting_for__s...__0x_x
push 0x80
push esi
call fcn.00401110
add esp, 0x14
cmp dword [ebp - 0x4c], 0x12
jne 0x40fec1
push dword [ebp - 0x48]
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x40fed5
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push edi
push edi
push edi
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x40fe97
push 0x4ff
push dword [ebp + 0x90]
lea eax, [ebp - 0x28]
push edi
push eax
push 1
call ebx
cmp eax, 1
mov dword [ebp - 0x10], eax
je 0x40fed5
cmp dword [ebp - 0x14], edi
je 0x40ff25
push 1
push dword [ebp - 0x18]
push dword [ebp - 0x28]
call dword [ebp - 0x14]
push dword [ebp - 0x14]
push str.Called__p_callback_after_waiting_n
push esi
call fcn.00406f12
add esp, 0x18
cmp dword [ebp - 0x10], 0xffffffff
je 0x40ff5a
cmp dword [ebp - 0x10], 0x80
je 0x40ff5a
cmp dword [ebp - 0x10], 0x102
je 0x40ff5a
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x10]
push dword [ebp - 0x2c]
push str._s_finished_with__d_n
jmp 0x40ffdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x2c]
push str._s_MsgWaitForMultipleObjects_failed_with__d_n
jmp 0x40fff5
push str.Waiting_for__s_n
push esi
call fcn.00406f12
add esp, 0xc
push dword [ebp + 0x90]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
je 0x40ffaf
push 1
push dword [ebp - 0x18]
push dword [ebp - 0x28]
call dword [ebp - 0x14]
push dword [ebp - 0x14]
push str.Called__p_callback_after_waiting_n
push esi
call fcn.00406f12
add esp, 0x18
cmp dword [ebp - 0x10], 0xffffffff
je 0x40ffe8
cmp dword [ebp - 0x10], 0x80
je 0x40ffe8
cmp dword [ebp - 0x10], 0x102
je 0x40ffe8
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x10]
push ebx
push str._s_finsihed_with__d_n
push esi
call fcn.00406f12
add esp, 0x10
jmp 0x410011
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str._s_WaitForSingleObject_failed_with__d_n
push esi
mov dword [ebp - 0x10], eax
call fcn.00406a88
mov eax, dword [ebp - 0x10]
sub eax, 0x7e
add esp, 0x10
neg eax
sbb eax, eax
and eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x34], edi
jne 0x410024
cmp dword [ebp - 0x24], edi
je 0x410024
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x7c]
xor ecx, ebp
call fcn.00421e14
add ebp, 0x80
leave
ret