Function at 0x4213c5
Capabilities:
Create process on windows

Disassembly:
push ebp
sub esp, 0x7c
lea ebp, [esp - 4]
mov eax, dword [0x491d88]
xor eax, ebp
mov dword [ebp + 0x7c], eax
push 0xe8
mov eax, 0x46d2ab
call fcn.0045736a
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 0x42141e
push ebx
call fcn.00456310
test eax, eax
pop ecx
jbe 0x42141e
xor eax, eax
inc eax
jmp 0x421420
xor eax, eax
xor ecx, ecx
cmp eax, edi
setne cl
mov eax, ecx
cmp eax, edi
jne 0x421452
push edi
call fcn.0042ab09
push eax
push str.Invalid_command_line
push str._s_failed_returning__s_n
push 0x4932a8
call fcn.0041fb18
add esp, 0x14
xor eax, eax
jmp 0x4217f7
push dword [ebp - 0x18]
push esi
push dword [ebp + 0x8c]
mov esi, 0x4932a8
push ebx
push str.LaunchApp__s__d__p__p__n
push esi
call fcn.0041ffa2
xor eax, eax
inc eax
add esp, 0x18
cmp dword [ebp + 0xa0], eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xf4], 0x44
je 0x421540
cmp dword [ebp + 0x8c], edi
jne 0x4214a0
cmp dword [ebp + 0xa0], edi
je 0x421540
push ebx
push str.Using_CreateProcess_cmdline___s__n
push 0x20
push esi
mov dword [ebp - 0x34], edi
call fcn.00401300
add esp, 0x10
lea eax, [ebp - 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push ebx
lea ecx, [ebp - 0xb0]
call fcn.004043b0
lea ecx, [ebp - 0x94]
push ecx
mov ecx, eax
call fcn.00405c00
mov ecx, eax
call fcn.00405790
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.00402f50
cmp dword [ebp - 0x30], edi
jne 0x421601
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.0041fb18
add esp, 0x1c
jmp 0x4217f4
push ebx
lea ecx, [ebp]
mov dword [ebp - 0x34], eax
call fcn.00429d64
cmp dword [ebp + 0x78], 0x10
mov ecx, dword [ebp + 0x64]
mov dword [ebp - 4], edi
jae 0x42155b
lea ecx, [ebp + 0x64]
cmp dword [ebp + 0x5c], 0x10
mov eax, dword [ebp + 0x48]
jae 0x421567
lea eax, [ebp + 0x48]
push ecx
push eax
push str.Using_shellExecute_file___s_and_param__s_n
push 0x20
push esi
call fcn.00401300
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 0x4215a2
lea eax, [ebp + 0x48]
cmp dword [ebp + 0x78], 0x10
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x64]
jae 0x4215b1
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 0x4215f0
push 0x10
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.004530b0
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.004296f9
jmp 0x42150d
cmp dword [ebp - 0x14], edi
je 0x42162f
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.0041ffa2
add esp, 0x18
cmp dword [ebp + 0x8c], edi
je 0x4217eb
cmp dword [ebp + 0x9c], edi
push ebx
je 0x421735
push str.Waiting_for__s__or_any_messages__n
push esi
call fcn.0041ffa2
mov ebx, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
add esp, 0xc
jmp 0x4216af
push dword [ebp - 0x4c]
push dword [ebp - 0x2c]
push str.Received_message_while_waiting_for__s...__0x_x
push 0x80
push esi
call fcn.00401300
add esp, 0x14
cmp dword [ebp - 0x4c], 0x12
jne 0x421688
push dword [ebp - 0x48]
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x42169c
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 0x42165e
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 0x42169c
cmp dword [ebp - 0x14], edi
je 0x4216ec
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.0041ffa2
add esp, 0x18
cmp dword [ebp - 0x10], 0xffffffff
je 0x421721
cmp dword [ebp - 0x10], 0x80
je 0x421721
cmp dword [ebp - 0x10], 0x102
je 0x421721
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 0x4217a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x2c]
push str._s_MsgWaitForMultipleObjects_failed_with__d_n
jmp 0x4217bc
push str.Waiting_for__s_n
push esi
call fcn.0041ffa2
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 0x421776
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.0041ffa2
add esp, 0x18
cmp dword [ebp - 0x10], 0xffffffff
je 0x4217af
cmp dword [ebp - 0x10], 0x80
je 0x4217af
cmp dword [ebp - 0x10], 0x102
je 0x4217af
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.0041ffa2
add esp, 0x10
jmp 0x4217d8
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.0041fb18
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 0x4217eb
cmp dword [ebp - 0x24], edi
je 0x4217eb
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.0045309e
add ebp, 0x80
leave
ret