Function at 0x408ca0
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x417e01
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x190
mov al, byte [esp + 3]
push ebx
push ebp
push esi
push edi
push 0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3c], al
call fcn.00401d10
mov edi, str.LaunchAppandWait___
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.LaunchAppandWait___
lea ecx, [esp + 0x40]
call fcn.00402330
mov ebp, dword [esp + 0x1b0]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x1a8], 0
push ecx
push ebp
lea ecx, [esp + 0x40]
call fcn.0040f3d0
mov edi, 0x41c2dc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x41c2dc
lea ecx, [esp + 0x40]
call fcn.0040f3d0
mov cl, byte [esp + 0x38]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x24], esp
push 0
mov byte [esi], cl
mov ecx, esi
call fcn.00401d10
mov edx, dword [0x419218]
lea eax, [esp + 0x48]
push edx
push 0
push eax
mov ecx, esi
call fcn.00401b10
call fcn.004051f0
add esp, 0x10
lea ecx, [esp + 0x38]
mov dword [esp + 0x1a8], 0xffffffff
push 1
call fcn.00401d10
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x58]
lea edx, [esp + 0x9c]
rep stosd dword es:[edi], eax
xor ecx, ecx
push edx
mov dword [esp + 0x4c], ecx
push 0x104
mov dword [esp + 0x54], ecx
mov dword [esp + 0x60], 0x44
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov al, byte [esp + 0x13]
push 0
mov byte [esp + 0x2c], al
lea ecx, [esp + 0x2c]
call fcn.00401d10
lea edi, [esp + 0x9c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x2c]
push ebx
call fcn.00402510
test al, al
je 0x408e17
mov edi, dword [esp + 0x2c]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x9c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
call fcn.004024f0
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1ac], 1
mov byte [esp + 0x1c], al
call fcn.00401d10
mov edi, str.current_directory:
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.current_directory:
lea ecx, [esp + 0x20]
call fcn.00402330
mov ecx, dword [0x419218]
lea edx, [esp + 0x28]
push ecx
push 0
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x1b4], 2
call fcn.0040f2f0
mov edi, 0x41c2dc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x41c2dc
lea ecx, [esp + 0x20]
call fcn.0040f3d0
mov al, byte [esp + 0x18]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, esi
mov byte [esi], al
call fcn.00401d10
mov ecx, dword [0x419218]
lea edx, [esp + 0x28]
push ecx
push 0
push edx
mov ecx, esi
call fcn.00401b10
call fcn.004051f0
add esp, 0x10
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a8], 1
push 1
call fcn.00401d10
lea eax, [esp + 0x48]
lea ecx, [esp + 0x58]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x408f81
mov dl, byte [esp + 0x13]
sub esp, 0x10
mov ebp, esp
mov dword [esp + 0x24], esp
push eax
mov ecx, ebp
mov byte [ebp], dl
call fcn.00401d10
mov edi, str.CreateProcess___error__path_too_long__
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.00402510
test al, al
je 0x408f56
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
mov esi, str.CreateProcess___error__path_too_long__
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.004024f0
call fcn.004051f0
add esp, 0x10
call fcn.00408b80
push 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1ac], 0xffffffff
call fcn.00401d10
or eax, 0xffffffff
jmp 0x409082
mov cl, byte [esp + 0x13]
sub esp, 0x10
mov ebp, esp
mov dword [esp + 0x24], esp
push 0
mov byte [ebp], cl
mov ecx, ebp
call fcn.00401d10
mov edi, str.waiting_for_process_to_exit
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.00402510
test al, al
je 0x408fdd
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
mov esi, str.waiting_for_process_to_exit
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 8], ebx
mov ebp, dword [ebp + 4]
add ebp, ebx
mov byte [ebp], 0
call fcn.004051f0
mov eax, dword [esp + 0x58]
add esp, 0x10
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov cl, byte [esp + 0x13]
sub esp, 0x10
mov ebp, esp
mov dword [esp + 0x24], esp
push 0
mov byte [ebp], cl
mov ecx, ebp
call fcn.00401d10
mov edi, str.done_waiting_for_process_to_exit_n
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.00402510
test al, al
je 0x40904e
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
mov esi, str.done_waiting_for_process_to_exit_n
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 8], ebx
mov ebp, dword [ebp + 4]
add ebp, ebx
mov byte [ebp], 0
call fcn.004051f0
mov eax, dword [esp + 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x10
push eax
call esi
mov ecx, dword [esp + 0x4c]
push ecx
call esi
push 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1ac], 0xffffffff
call fcn.00401d10
xor eax, eax
mov ecx, dword [esp + 0x1a0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x19c
ret