Function at 0x40baea
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
lea eax, [ebp - 8]
push eax
call fcn.0041b0d4
push dword [ebp - 8]
call fcn.00411bc2
pop ecx
test al, al
pop ecx
jne 0x40bb3d
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.004504e0
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x10]
push str.TwpWaiter_Not_Found:
push eax
call fcn.0040673f
lea ecx, [ebp - 4]
call fcn.00401085
push dword [ebp - 0x10]
call fcn.0043d497
pop ecx
lea ecx, [ebp - 0x10]
call fcn.00401085
mov eax, dword [0x4a9450]
push ebx
mov dword [ebp - 0xc], eax
push esi
lea eax, [ebp - 0xc]
push edi
push eax
push dword [ebp - 8]
call fcn.0040bdc6
push dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [0x4a9450]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00410f9c
mov esi, dword [eax]
push dword [ebp - 0x10]
lea eax, [ebp - 0x28]
push eax
call fcn.00411a7d
add esp, 0x18
push eax
push str._Result
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.004504e0
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x1c]
push str.Start_by_CreateProcess:
push eax
call fcn.0040673f
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004066f3
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040665f
push eax
lea ecx, [ebp - 4]
call fcn.004065e8
lea ecx, [ebp - 0x14]
call fcn.00401085
lea ecx, [ebp - 0x18]
call fcn.00401085
lea ecx, [ebp - 0x1c]
call fcn.00401085
lea ecx, [ebp - 0x20]
call fcn.00401085
lea ecx, [ebp - 0x24]
call fcn.00401085
lea ecx, [ebp - 0x28]
call fcn.00401085
mov esi, 0x4aa044
mov eax, esi
test eax, eax
je 0x40bbfc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [ebp - 4]
call fcn.0040678b
push dword [ebp - 0xc]
lea eax, [ebp - 0x24]
push eax
call fcn.004504e0
pop ecx
mov ebx, str.CmdLine:
pop ecx
push eax
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.0040673f
mov eax, dword [eax]
lea ecx, [ebp - 4]
push eax
push dword [eax - 8]
call fcn.0040678b
lea ecx, [ebp - 0x28]
call fcn.00401085
lea ecx, [ebp - 0x24]
call fcn.00401085
mov edi, 0x4a9724
lea ecx, [ebp - 4]
push edi
push esi
call fcn.004091dc
cmp dword [ebp - 0x10], 0
push dword [ebp - 4]
je 0x40bc61
call fcn.0043d98d
jmp 0x40bc66
call fcn.0043d497
pop ecx
lea ecx, [ebp - 4]
call fcn.00401085
xor eax, eax
cmp dword [ebp - 0x10], eax
je 0x40bc7e
push 1
pop esi
jmp 0x40bdaf
push eax
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push str.open
call fcn.0040a08b
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 8]
xor ecx, ecx
mov dword [ebp - 0x28], eax
cmp eax, 0x20
mov eax, dword [0x4a9450]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
setg cl
push eax
mov dword [ebp - 0x30], ecx
call fcn.00410f9c
mov eax, dword [eax]
push dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00411a7d
add esp, 0x10
push eax
push str._Result
push dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push eax
call fcn.004504e0
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x18]
push str.Start_by_ShellExecute:
push eax
call fcn.0040673f
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004066f3
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040665f
push eax
lea ecx, [ebp - 4]
call fcn.004065e8
lea ecx, [ebp - 0x20]
call fcn.00401085
lea ecx, [ebp - 0x1c]
call fcn.00401085
lea ecx, [ebp - 0x18]
call fcn.00401085
lea ecx, [ebp - 0x14]
call fcn.00401085
lea ecx, [ebp - 0x10]
call fcn.00401085
lea ecx, [ebp - 0x2c]
call fcn.00401085
mov eax, esi
test eax, eax
je 0x40bd4a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [ebp - 4]
call fcn.0040678b
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call fcn.004504e0
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.0040673f
push eax
lea ecx, [ebp - 4]
call fcn.0040682e
lea ecx, [ebp - 0x2c]
call fcn.00401085
lea ecx, [ebp - 0x28]
call fcn.00401085
push edi
push esi
lea ecx, [ebp - 4]
call fcn.004091dc
mov esi, dword [ebp - 0x30]
push dword [ebp - 4]
test esi, esi
je 0x40bda1
call fcn.0043d98d
jmp 0x40bda6
call fcn.0043d497
pop ecx
lea ecx, [ebp - 4]
call fcn.00401085
lea ecx, [ebp - 0xc]
call fcn.00401085
lea ecx, [ebp - 8]
call fcn.00401085
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret