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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0x214]
push ebx
sub esp, 0x294
mov edi, dword [ebp + 8]
mov dword [esp], edx
mov dword [esp + 4], 0x104
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
lea edx, [ebp - 0x214]
sub esp, 8
cmp word [ebp - 0x214], 0
mov ecx, edx
je 0x411b59
lea esi, [esi]
nop
add ecx, 2
cmp word [ecx], 0
jne 0x411b50
xor eax, eax
mov ebx, 0x5c
jmp 0x411b69
movzx ebx, word [eax + str._start.exe]
mov word [ecx + eax], bx
add eax, 2
test bx, bx
jne 0x411b62
mov dword [esp], edx
mov ebx, dword [sym.imp.ucrtbase.dll_wcslen]
call ebx
mov dword [esp], edi
mov esi, eax
call ebx
lea eax, [esi + eax + 8]
add eax, eax
mov dword [esp], eax
call dbg.xalloc
lea edx, [ebp - 0x214]
mov esi, eax
xor eax, eax
nop
movzx ecx, word [edx + eax]
mov word [esi + eax], cx
add eax, 2
test cx, cx
jne 0x411ba0
cmp word [esi], 0
mov ecx, esi
je 0x411bc9
lea esi, [esi]
nop
add ecx, 2
cmp word [ecx], 0
jne 0x411bc0
xor eax, eax
mov ebx, 0x20
jmp 0x411bd9
movzx ebx, word [eax + 0x428896]
mov word [ecx + eax], bx
add eax, 2
test bx, bx
jne 0x411bd2
cmp word [esi], 0
mov ebx, esi
je 0x411bf9
lea esi, [esi]
add ebx, 2
cmp word [ebx], 0
jne 0x411bf0
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x270], ebx
lea eax, [ebp - 0x258]
mov dword [esp + 0x14], 0x42889a
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [ebp - 0x258], 0
call dbg.WCMD_parameter_with_delims
mov ecx, dword [ebp - 0x258]
lea edx, [ebp - 0x214]
test ecx, ecx
je 0x411c73
movzx ebx, word [ecx]
cmp bx, 0x22
je 0x411dbc
cmp ecx, edi
je 0x411c73
cmp word [ecx - 2], 0x2f
je 0x411db0
cmp word [esi], 0
mov ecx, esi
je 0x411c89
lea esi, [esi]
nop
add ecx, 2
cmp word [ecx], 0
jne 0x411c80
xor eax, eax
lea esi, [esi]
nop
movzx ebx, word [edi + eax]
mov word [ecx + eax], bx
add eax, 2
test bx, bx
jne 0x411c90
lea ebx, [ebp - 0x254]
xor eax, eax
mov ecx, 0x10
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x268]
mov dword [esp + 4], esi
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x258]
mov dword [ebp - 0x258], 0x44
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x411d81
mov eax, dword [ebp - 0x268]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x268]
sub esp, 8
mov dword [esp + 4], 0x4386f0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
sub esp, 8
cmp dword [0x4386f0], 0x103
jne 0x411d5d
mov dword [0x4386f0], 0
mov eax, dword [ebp - 0x268]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x264]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
jmp 0x411d9d
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 2
call dbg.WCMD_print_error
mov dword [0x4386f0], 0x2331
mov dword [ebp + 8], esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp dword [sym.imp.ucrtbase.dll_free]
add dword [ebp - 0x26c], 1
jmp 0x411c09
mov word [ebp - 0x276], bx
mov ebx, dword [ebp - 0x270]
mov dword [ebp - 0x274], eax
test byte [0x425010], 8
jne 0x411f45
sub ecx, edi
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
mov dword [esp], ebx
mov dword [ebp - 0x270], ecx
call sym._memcpy
mov ecx, dword [ebp - 0x270]
xor eax, eax
mov word [ebx + ecx], ax
cmp word [ebx], 0
mov ecx, ebx
je 0x411e19
lea esi, [esi]
nop
add ecx, 2
cmp word [ecx], 0
jne 0x411e10
mov edx, esi
xor eax, eax
movzx esi, word [ebp - 0x276]
jmp 0x411e37
movzx esi, word [eax + 0x4288be]
mov word [ecx + eax], si
add eax, 2
test si, si
jne 0x411e30
cmp word [ebx], 0
mov esi, edx
mov ecx, ebx
je 0x411e59
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x411e50
mov dword [ebp - 0x270], ebx
mov edx, esi
mov esi, dword [ebp - 0x274]
xor eax, eax
lea esi, [esi]
movzx ebx, word [esi + eax]
mov word [ecx + eax], bx
add eax, 2
test bx, bx
jne 0x411e70
mov ebx, dword [ebp - 0x270]
mov esi, edx
cmp word [ebx], 0
mov ecx, ebx
je 0x411e99
add ecx, 2
cmp word [ecx], 0
jne 0x411e90
mov edx, 0x5c
mov dword [ebp - 0x270], esi
xor eax, eax
mov esi, edx
jmp 0x411eb7
movzx esi, word [eax + 0x4288c6]
mov word [ecx + eax], si
add eax, 2
test si, si
jne 0x411eb0
lea eax, [ebp - 0x258]
mov dword [esp], edi
mov esi, dword [ebp - 0x270]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], 0x42889a
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov dword [esp + 4], eax
call dbg.WCMD_parameter_with_delims
mov edi, dword [ebp - 0x258]
lea edx, [ebp - 0x214]
cmp word [eax], 0
mov ecx, eax
je 0x411f23
add eax, 2
cmp word [eax], 0
jne 0x411f11
sub eax, ecx
add edi, eax
jmp 0x411f23
add ebx, 2
cmp word [ebx], 0
jne 0x411f20
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [edi + eax]
mov word [ebx + eax], cx
add eax, 2
test cx, cx
jne 0x411f30
jmp 0x411ca0
call sym._wine_dbgstr_wn.constprop.5
mov dword [esp + 0xc], str.detected_console_title:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WCMD_start
mov dword [esp + 4], 0x425010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.6
mov ecx, dword [ebp - 0x258]
jmp 0x411ddc