Function at 0x411980
Capabilities:
Create process on windows
Get common file path
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0x220]
push ebx
sub esp, 0x2ac
mov edi, dword [ebp + 8]
mov dword [esp], edx
mov dword [esp + 4], 0x104
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
lea edx, [ebp - 0x220]
sub esp, 8
cmp word [ebp - 0x220], 0
mov ecx, edx
je 0x4119c9
lea esi, [esi]
nop
add ecx, 2
cmp word [ecx], 0
jne 0x4119c0
xor eax, eax
mov ebx, 0x5c
jmp 0x4119d9
movzx ebx, word [eax + str._start.exe]
mov word [ecx + eax], bx
add eax, 2
test bx, bx
jne 0x4119d2
cmp word [ebp - 0x220], 0
je 0x411c70
mov eax, edx
add eax, 2
cmp word [eax], 0
jne 0x4119f5
sub eax, edx
sar eax, 1
cmp word [edi], 0
je 0x411a1f
mov ecx, edi
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x411a10
sub ecx, edi
sar ecx, 1
add eax, ecx
lea eax, [eax + eax + 0x10]
mov dword [esp], eax
call dbg.heap_xalloc
lea edx, [ebp - 0x220]
mov esi, eax
xor eax, eax
movzx ecx, word [edx + eax]
mov word [esi + eax], cx
add eax, 2
test cx, cx
jne 0x411a35
cmp word [esi], 0
mov ecx, esi
je 0x411a59
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x411a50
xor eax, eax
mov ebx, 0x20
jmp 0x411a69
movzx ebx, word [eax + 0x427876]
mov word [ecx + eax], bx
add eax, 2
test bx, bx
jne 0x411a62
cmp word [esi], 0
mov ebx, esi
je 0x411a89
lea esi, [esi]
add ebx, 2
cmp word [ebx], 0
jne 0x411a80
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x280], ebx
lea eax, [ebp - 0x264]
mov dword [esp + 0x14], 0x42787a
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x27c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [ebp - 0x264], 0
call dbg.WCMD_parameter_with_delims
mov ebx, dword [ebp - 0x264]
lea edx, [ebp - 0x220]
test ebx, ebx
je 0x411b03
movzx ecx, word [ebx]
cmp cx, 0x22
je 0x411c77
cmp ebx, edi
je 0x411b03
cmp word [ebx - 2], 0x2f
je 0x411c60
cmp word [esi], 0
mov ecx, esi
je 0x411b19
lea esi, [esi]
nop
add ecx, 2
cmp word [ecx], 0
jne 0x411b10
xor eax, eax
lea esi, [esi]
nop
movzx ebx, word [edi + eax]
mov word [ecx + eax], bx
add eax, 2
test bx, bx
jne 0x411b20
lea ebx, [ebp - 0x260]
xor eax, eax
mov ecx, 0x10
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x274]
mov dword [esp + 4], esi
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x264]
mov dword [ebp - 0x264], 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 0x411c11
mov eax, dword [ebp - 0x274]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x274]
sub esp, 8
mov dword [esp + 4], 0x437470
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
sub esp, 8
cmp dword [0x437470], 0x103
jne 0x411bed
mov dword [0x437470], 0
mov eax, dword [ebp - 0x274]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x270]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
jmp 0x411c2d
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 2
call dbg.WCMD_print_error
mov dword [0x437470], 0x2331
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x27c], 1
jmp 0x411a99
xor eax, eax
jmp 0x411a02
mov dword [ebp - 0x284], eax
mov eax, ebx
mov ebx, dword [ebp - 0x280]
test byte [0x425010], 8
jne 0x411e05
sub eax, edi
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp], ebx
mov dword [ebp - 0x280], ecx
call sym._memcpy
mov eax, dword [ebp - 0x264]
xor edx, edx
mov ecx, dword [ebp - 0x280]
sub eax, edi
mov word [ebx + eax], dx
cmp word [ebx], 0
je 0x411e4f
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x411cd0
mov edx, eax
mov dword [ebp - 0x280], ebx
xor eax, eax
mov ebx, edx
jmp 0x411cf7
movzx ecx, word [eax + 0x42789e]
mov word [ebx + eax], cx
add eax, 2
test cx, cx
jne 0x411cf0
mov ebx, dword [ebp - 0x280]
cmp word [ebx], 0
mov ecx, ebx
je 0x411d1a
add ecx, 2
cmp word [ecx], 0
jne 0x411d11
mov dword [ebp - 0x280], esi
mov esi, dword [ebp - 0x284]
xor eax, eax
mov edx, ebx
lea esi, [esi]
movzx ebx, word [esi + eax]
mov word [ecx + eax], bx
add eax, 2
test bx, bx
jne 0x411d30
cmp word [edx], 0
mov ebx, edx
mov esi, dword [ebp - 0x280]
mov ecx, edx
je 0x411d59
add ecx, 2
cmp word [ecx], 0
jne 0x411d50
mov edx, 0x5c
mov dword [ebp - 0x280], ebx
xor eax, eax
mov ebx, edx
jmp 0x411d77
movzx ebx, word [eax + 0x4278a6]
mov word [ecx + eax], bx
add eax, 2
test bx, bx
jne 0x411d70
lea eax, [ebp - 0x264]
mov dword [esp], edi
mov ebx, dword [ebp - 0x280]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x27c]
mov dword [esp + 0x14], 0x42787a
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 - 0x264]
lea edx, [ebp - 0x220]
cmp word [eax], 0
mov ecx, eax
je 0x411de3
add eax, 2
cmp word [eax], 0
jne 0x411dd1
sub eax, ecx
add edi, eax
jmp 0x411de3
add ebx, 2
cmp word [ebx], 0
jne 0x411de0
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [edi + eax]
mov word [ebx + eax], cx
add eax, 2
test cx, cx
jne 0x411df0
jmp 0x411b30
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x280], ecx
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.9
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x280]
jmp 0x411c92
mov edx, ebx
jmp 0x411cdb