Function at 0x4010e0
Capabilities:
Create process on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
xor eax, eax
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x258]
push ebx
push ecx
sub esp, 0x2b8
mov ebx, dword [ecx + 8]
mov ecx, 0x10
mov dword [ebp - 0x25c], 0x44
rep stosd dword es:[edi], eax
call dword [sym.imp.kernel32.dll_FreeConsole]
call dword [sym.imp.kernel32.dll_AllocConsole]
test eax, eax
je 0x4013c8
cmp word [ebx], 0
mov eax, global_default_cmd
mov dword [ebp - 0x230], 0x100
cmove ebx, eax
mov esi, dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov dword [esp], str.CONIN_
call esi
sub esp, 0x1c
mov dword [ebp - 0x224], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov dword [esp], str.CONOUT_
call esi
mov dword [ebp - 0x220], eax
sub esp, 0x1c
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x280]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x25c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
jne 0x401360
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x288], eax
test byte [0x403008], 4
jne 0x401420
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
lea edx, [ebp - 0x218]
sub esp, 4
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0x100
mov dword [esp + 4], 0x304
mov dword [esp], eax
call sym._LoadStringW_16
lea edx, [ebp - 0x218]
mov edi, dword [sym.imp.ucrtbase.dll_wcslen]
sub esp, 0x10
mov dword [esp], edx
call edi
mov dword [esp], ebx
mov esi, eax
call edi
lea ecx, [esi + eax]
lea eax, [ecx + ecx]
mov dword [ebp - 0x284], ecx
mov dword [ebp - 0x28c], ecx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x40134c
lea edx, [ebp - 0x218]
mov dword [esp + 0xc], ebx
lea ebx, [ebp - 0x284]
mov dword [esp + 8], edx
mov ecx, dword [ebp - 0x28c]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dbg.swprintf
mov dword [esp], esi
call edi
mov dword [esp + 4], esi
lea edi, [ebp - 0x270]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x220]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteConsoleW]
mov esi, dword [sym.imp.kernel32.dll_ReadConsoleInputW]
sub esp, 0x14
jmp 0x40132a
cmp word [ebp - 0x270], 2
jne 0x40134c
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x224]
mov dword [esp], eax
call esi
sub esp, 0x10
test eax, eax
jne 0x401320
mov eax, dword [ebp - 0x288]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, dword [ebp - 0x27c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x280]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [ebp - 0x288]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x280]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
sub esp, 8
test eax, eax
jne 0x40134c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
test byte [0x403008], 2
jne 0x4013e8
lea esp, [ebp - 0x10]
mov eax, 1
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_allocate_console:__lu_n
mov dword [esp + 8], global___FUNCTION__
mov dword [esp + 0x10], eax
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4013d1
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.CreateProcess_failed:__lu_n
mov dword [esp + 8], global___FUNCTION__
mov dword [esp + 4], global___dbch
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x401249