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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x268
mov ebx, dword [ebp + 8]
lea esi, [ebp - 0x274]
push 0x104
push esi
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
nop word cs:[eax + eax]
cmp word [esi], 0
lea esi, [esi + 2]
jne 0x40a860
movsd xmm0, qword [0x417baa]
movsd qword [esi + 0xc], xmm0
movups xmm0, xmmword [str._start.exe]
movups xmmword [esi - 2], xmm0
lea eax, [ebp - 0x274]
mov edi, dword [sym.imp.ucrtbase.dll_wcslen]
push eax
call edi
add esp, 4
mov esi, eax
push ebx
call edi
add esp, 4
add eax, esi
lea eax, [eax*2 + 0x10]
xor esi, esi
push eax
push 0
call sym._xrealloc
add esp, 8
mov edi, eax
nop word cs:[eax + eax]
movzx eax, word [ebp + esi - 0x274]
mov word [edi + esi], ax
add esi, 2
test ax, ax
jne 0x40a8c0
mov eax, edi
nop word cs:[eax + eax]
cmp word [eax], 0
lea eax, [eax + 2]
jne 0x40a8e0
mov dword [eax - 2], 0x20
mov esi, edi
add esi, 0xfffffffe
nop word cs:[eax + eax]
cmp word [esi + 2], 0
lea esi, [esi + 2]
jne 0x40a900
mov dword [ebp - 0x6c], 0
lea eax, [ebp - 0x6c]
push 0x417bb2
push 0
push 0
push eax
push 0
push ebx
call dbg.WCMD_parameter_with_delims
add esp, 0x18
mov ebx, dword [ebp - 0x6c]
test ebx, ebx
je 0x40aac5
cmp word [ebx], 0x22
jne 0x40aa76
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], eax
test byte [0x41d010], 8
je 0x40a985
mov ecx, dword [ebp - 0x14]
call dbg.wine_dbgstr_wn
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.detected_console_title:__s_n
mov dword [esp + 8], str.WCMD_start
mov dword [esp], 3
call sym._wine_dbg_log_1
add esp, 0x14
mov ebx, dword [ebp - 0x6c]
lea edi, [esi - 2]
mov eax, dword [ebp + 8]
sub ebx, eax
push ebx
push eax
push esi
call sym._memcpy
add esp, 0xc
mov word [esi + ebx], 0
mov eax, esi
cmp word [eax], 0
lea eax, [eax + 2]
jne 0x40a9a0
mov ecx, 0x22005c
lea edx, [ecx + 0x39ffc6]
mov dword [eax - 2], edx
mov dword [eax + 2], 0x22
mov ebx, esi
mov edx, dword [ebp - 0x14]
nop word cs:[eax + eax]
cmp word [ebx], 0
lea ebx, [ebx + 2]
jne 0x40a9d0
xor eax, eax
nop dword [eax + eax]
movzx ecx, word [edx + eax]
mov word [ebx + eax - 2], cx
add eax, 2
test cx, cx
jne 0x40a9e0
nop word cs:[eax + eax]
cmp word [esi], 0
lea esi, [esi + 2]
jne 0x40aa00
mov eax, 0x22005c
mov dword [esi - 2], eax
mov eax, 0x22
mov dword [esi + 2], eax
push 0x417bb2
push 0
push 1
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
call dbg.WCMD_parameter_with_delims
add esp, 0x18
mov ecx, dword [ebp - 0x6c]
add ecx, 0xfffffffe
nop word [eax + eax]
add ecx, 2
cmp word [eax], 0
lea eax, [eax + 2]
jne 0x40aa40
nop dword [eax]
cmp word [edi + 2], 0
lea edi, [edi + 2]
jne 0x40aa50
nop word [eax + eax]
movzx eax, word [ecx]
add ecx, 2
mov word [edi], ax
add edi, 2
test ax, ax
jne 0x40aa60
mov edi, dword [ebp - 0x18]
jmp 0x40aaf1
xor ecx, ecx
nop dword [eax + eax]
cmp ebx, dword [ebp + 8]
je 0x40aac5
cmp word [ebx - 2], 0x2f
jne 0x40aac5
inc ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x6c], 0
push 0x417bb2
push 0
push 0
lea eax, [ebp - 0x6c]
push eax
push ecx
push dword [ebp + 8]
call dbg.WCMD_parameter_with_delims
mov ecx, dword [ebp - 0x10]
add esp, 0x18
mov ebx, dword [ebp - 0x6c]
test ebx, ebx
je 0x40aac5
cmp word [ebx], 0x22
jne 0x40aa80
jmp 0x40a945
mov eax, edi
nop word [eax + eax]
cmp word [eax], 0
lea eax, [eax + 2]
jne 0x40aad0
xor ecx, ecx
mov esi, dword [ebp + 8]
nop
movzx edx, word [esi + ecx]
mov word [eax + ecx - 2], dx
add ecx, 2
test dx, dx
jne 0x40aae0
xorps xmm0, xmm0
movups xmmword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x48], xmm0
movups xmmword [ebp - 0x58], xmm0
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x6c], 0x44
sub esp, 0x28
lea eax, [ebp - 0x28]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x6c]
mov dword [esp + 0x20], eax
movaps xmm0, xmmword [0x416790]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], edi
lea eax, [ebp - 0x274]
mov dword [esp], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.kernel32.dll_CreateProcessW]
test eax, eax
je 0x40ab8a
push 0xffffffffffffffff
push dword [ebp - 0x28]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov esi, dword [0x4162c0]
push esi
push dword [ebp - 0x28]
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
cmp dword [esi], 0x103
jne 0x40ab78
mov dword [esi], 0
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 0x28]
call esi
push dword [ebp - 0x24]
call esi
jmp 0x40aba7
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 2
call dbg.WCMD_print_error
mov eax, dword [0x4162c0]
mov dword [eax], 0x2331
push edi
call dword [sym.imp.ucrtbase.dll_free]
add esp, 0x26c
pop esi
pop edi
pop ebx
pop ebp
ret