Function at 0x4109f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x8064
call sym.__alloca
mov esi, dword [ebp + 0xc]
mov dword [esi], 0
mov eax, dword [global_extraSpace]
test eax, eax
jne 0x410a2c
push 0x4002
call sym._malloc
add esp, 4
test eax, eax
je 0x411d10
mov dword [global_extraSpace], eax
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [esi], 0
test ecx, ecx
je 0x410cbc
xor edx, edx
nop word cs:[eax + eax]
movzx esi, word [ecx + edx]
mov word [eax + edx], si
add edx, 2
test si, si
jne 0x410a50
xor eax, eax
mov esi, dword [global_extraSpace]
nop dword [eax + eax]
cmp word [esi + eax], 0
lea eax, [eax + 2]
jne 0x410a70
cmp eax, 0x4000
jne 0x410b1b
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push 0x800
push 0x42d48e
push 0x3f0
push eax
call dword [sym.imp.user32.dll_LoadStringW]
test eax, eax
jne 0x410aed
test byte [0x41d038], 1
je 0x410adf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.LoadString_failed_with__ld_n
mov dword [esp + 8], str.WCMD_LoadMessage
mov dword [esp], 0
call dbg.wine_dbg_log
add esp, 0x14
movups xmm0, xmmword [str.Failed_]
movups xmmword [0x42d48e], xmm0
mov ecx, 0xfffffff4
mov edx, 0x42d48e
call dbg.WCMD_output_asis_handle
mov edx, dword [global_extraSpace]
mov ecx, 0xfffffff4
call dbg.WCMD_output_asis_handle
mov ecx, 0xfffffff4
mov edx, 0x41968e
call dbg.WCMD_output_asis_handle
cmp dword [0x421394], 0
je 0x410b36
mov ecx, dword [global_extraSpace]
xor edx, edx
push 0
call dbg.handleExpansion
add esp, 4
lea ebx, [esi - 2]
jmp 0x410b46
add esi, 2
add ebx, 2
movzx eax, word [esi]
cmp eax, 0x20
je 0x410b40
cmp eax, 9
je 0x410b40
cmp dword [0x421394], 0
sete cl
cmp dword [0x41d034], 0
sete dl
or dl, cl
jne 0x410c20
test eax, 0xffbf
je 0x410c20
mov eax, 0xfffffffe
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x410b80
sar eax, 1
cmp eax, 5
mov edi, 5
cmovb edi, eax
mov ecx, 1
call dbg.WCMD_show_prompt
mov ecx, 0xfffffff5
mov edx, esi
call dbg.WCMD_output_asis_handle
push 5
push str.echo.
push edi
push esi
push 1
push 0x800
call dword [sym.imp.kernel32.dll_CompareStringW]
cmp eax, 2
je 0x410c0e
push 5
push str.echo:
push edi
push esi
push 1
push 0x800
call dword [sym.imp.kernel32.dll_CompareStringW]
cmp eax, 2
je 0x410c0e
push 5
push str.echo_
push edi
push esi
push 1
push 0x800
call dword [sym.imp.kernel32.dll_CompareStringW]
cmp eax, 2
je 0x410c0e
mov ecx, 0xfffffff5
mov edx, 0x4199a2
call dbg.WCMD_output_asis_handle
mov ecx, 0xfffffff5
mov edx, 0x41968e
call dbg.WCMD_output_asis_handle
nop dword [eax]
cmp word [ebx + 2], 0x40
lea ebx, [ebx + 2]
je 0x410c20
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x48], 0
lea eax, [ebp - 0x4070]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], eax
cmp word [ebx], 0
je 0x410ce3
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x3c], 1
mov esi, 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x28], 0
xor edi, edi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x38], 0
jmp 0x410d3a
cmp edx, 0xffffffff
je 0x411cdc
push edx
push 0x2000
push eax
call dbg.WCMD_fgets
add esp, 0xc
test eax, eax
jne 0x410a60
xor eax, eax
jmp 0x411cd1
movzx eax, byte [0x41d038]
mov esi, dword [ebp + 0xc]
jmp 0x411be4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
movzx edi, word [ebx + 4]
mov word [eax + edx*2 + 4], di
mov edi, dword [ebx]
mov dword [eax + edx*2], edi
add dword [ecx], 3
add ebx, 6
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x34], 1
mov edi, dword [ebp - 0x1c]
nop dword [eax]
cmp word [ebx], 0
je 0x411b8d
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0x2000
jge 0x411b55
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x4070]
cmp eax, ecx
sete cl
cmp dword [ebp - 0x2c], 0
jne 0x410da0
test cl, cl
je 0x410da0
push 3
push 0x4199c4
push 3
push ebx
push 0x1001
push 0x400
call dword [sym.imp.kernel32.dll_CompareStringW]
cmp eax, 2
jne 0x410dd0
movzx ecx, word [ebx + 6]
cmp ecx, 9
je 0x410d8e
cmp ecx, 0x20
jne 0x410dd0
mov ax, 0x58
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], 1
jmp 0x410de8
lea ecx, [ebp - 0x4070]
cmp eax, ecx
je 0x410e79
mov eax, dword [ebp - 0x10]
test esi, esi
je 0x410e30
mov ax, 0x58
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], esi
jmp 0x410de8
cmp word [ebx], 0x3a
jne 0x410f39
mov dword [ebp - 0x28], 1
mov ax, 0x58
mov dword [ebp - 0x20], eax
movzx ecx, word [ebx]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov eax, dword [edi]
lea edx, [eax + 1]
mov dword [edi], edx
mov word [esi + eax*2], cx
mov cl, 1
xor edi, edi
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x28], 0
add ebx, 2
movzx eax, word [ebp - 0x20]
add eax, 0xfffffff7
cmp eax, 0x17
ja 0x410e5e
mov edx, 0x800003
bt edx, eax
jae 0x410e5e
xor eax, eax
jmp 0x410e67
movzx edx, word [ebx]
mov ecx, edx
add ecx, 0xfffffff7
cmp ecx, 0x73
ja case.0x410e41.10
jmp dword [ecx*4 + 0x418fa0]
mov ecx, dword [ebp - 0x24]
or ecx, edi
mov dword [ebp - 0x20], edx
je 0x411292
mov ecx, dword [ebp - 0x14]
jmp 0x4112c0
xor eax, eax
mov dword [ebp - 0x30], 0
mov edx, 0
test cl, cl
jne 0x411719
jmp 0x411729
cmp dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x10]
je 0x410db1
cmp dword [ebp - 0x28], 0
je 0x410db1
test byte [0x41d038], 8
je 0x410ec6
mov ecx, ebx
call dbg.wine_dbgstr_w
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Found_FOR___comparing_next_parm:__s_n
mov dword [esp + 8], str.WCMD_ReadAndParseLine
mov dword [esp], 3
call dbg.wine_dbg_log
add esp, 0x14
push 2
push 0x419aa0
push 2
push ebx
push 0x1001
push 0x400
call dword [sym.imp.kernel32.dll_CompareStringW]
mov dword [ebp - 0x34], 1
cmp eax, 2
jne 0x410dae
movzx eax, word [ebx + 4]
cmp eax, 0x20
je 0x410f02
cmp eax, 9
jne 0x410dae
mov dword [ebp - 0x1c], edi
test byte [0x41d038], 8
je 0x410cf2
sub esp, 0x10
mov dword [esp + 0xc], str.Found_IN__n
mov dword [esp + 8], str.WCMD_ReadAndParseLine
mov dword [esp], 3
call dbg.wine_dbg_log
add esp, 0x10
jmp 0x410cf2
push 3
push 0x4199cc
push 3
push ebx
push 0x1001
push 0x400
call dword [sym.imp.kernel32.dll_CompareStringW]
cmp eax, 2
jne 0x410f6e
movzx eax, word [ebx + 6]
cmp eax, 9
je 0x4111dc
cmp eax, 0x20
je 0x4111dc
push 2
push 0x4199d4
push 2
push ebx
push 0x1001
push 0x400
call dword [sym.imp.kernel32.dll_CompareStringW]
cmp eax, 2
jne 0x4110ef
movzx eax, word [ebx + 4]
cmp eax, 0x20
je 0x410fa3
cmp eax, 9
jne 0x4110ef
mov dword [ebp - 0x1c], edi
lea edi, [ebx + 4]
jmp 0x410fb7
movzx eax, word [edi + 2]
add edi, 2
cmp ax, 0x20
je 0x410fb0
movzx eax, ax
cmp eax, 9
je 0x410fb0
mov ecx, edi
call dbg.WCMD_parse
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x60]
push eax
push edi
call dbg.evaluate_if_condition
add esp, 0x10
cmp eax, 0xffffffff
je 0x4110a4
mov ecx, dword [ebp - 0x60]
sub ecx, ebx
mov eax, ecx
sar eax, 1
mov dword [ebp - 0x20], eax
test byte [0x41d038], 8
je 0x411087
mov dword [ebp - 0x28], ecx
mov ecx, edi
call dbg.wine_dbgstr_w
mov dword [ebp - 0x44], eax
mov ecx, 0x42148e
call dbg.wine_dbgstr_w
mov dword [ebp - 0x68], eax
mov ecx, 0x42548e
call dbg.wine_dbgstr_w
mov dword [ebp - 0x64], eax
mov ecx, 0x42948e
call dbg.wine_dbgstr_w
mov edi, eax
mov ecx, dword [ebp - 0x60]
call dbg.wine_dbgstr_w
sub esp, 0x28
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edi
mov eax, dword [ebp - 0x64]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x68]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], str.p:__s__quals:__s__param1:__s__param2:__s__command:__s__if_condition_len:__d_n
mov dword [esp + 8], str.WCMD_ReadAndParseLine
mov dword [esp], 3
call dbg.wine_dbg_log
mov ecx, dword [ebp - 0x28]
add esp, 0x28
mov edi, dword [ebp - 0x14]
mov eax, dword [edi]
add eax, eax
add eax, dword [ebp - 0x18]
push ecx
push ebx
push eax
call sym._memcpy
add esp, 0xc
mov eax, dword [ebp - 0x20]
add dword [edi], eax
lea ebx, [ebx + eax*2]
push 3
push 0x419a28
push 3
push ebx
push 0x1001
push 0x400
call dword [sym.imp.kernel32.dll_CompareStringW]
cmp eax, 2
mov edi, dword [ebp - 0x1c]
jne 0x4110dd
movzx ecx, word [ebx + 6]
mov eax, 1
cmp cx, 9
je 0x4110e0
movzx ecx, cx
cmp ecx, 0x20
je 0x4110e0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x54], eax
jmp 0x410dae
push 4
push str.else
push 4
push ebx
push 0x1001
push 0x400
call dword [sym.imp.kernel32.dll_CompareStringW]
cmp eax, 2
jne 0x41116a
movzx eax, word [ebx + 8]
cmp eax, 0x20
je 0x41111c
cmp eax, 9
jne 0x41116a
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
movzx edi, word [ebx + 8]
mov word [eax + edx*2 + 8], di
movsd xmm0, qword [ebx]
movsd qword [eax + edx*2], xmm0
add dword [ecx], 5
add ebx, 0xa
mov dword [ebp - 0x5c], 1
cmp dword [ebp - 0x38], 0
jne 0x411550
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x40], 1
jmp 0x410d2a
cmp dword [ebp - 0x34], 0
je 0x4112f1
push ebx
push 0x419a64
call sym._WCMD_keyword_ws_found
add esp, 8
test eax, eax
je 0x4111dc
mov dword [ebp - 0x1c], edi
test byte [0x41d038], 8
je 0x4111b4
sub esp, 0x10
mov dword [esp + 0xc], str.Found_DO__n
mov dword [esp + 8], str.WCMD_ReadAndParseLine
mov dword [esp], 3
call dbg.wine_dbg_log
add esp, 0x10
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
movzx edi, word [ebx + 4]
mov word [eax + edx*2 + 4], di
mov edi, dword [ebx]
mov dword [eax + edx*2], edi
add dword [ecx], 3
add ebx, 6
mov dword [ebp - 0x58], 1
jmp 0x410d1c
mov dword [ebp - 0x34], 1
jmp 0x410dae
cmp dword [ebp - 0x24], 0
jne 0x411202
lea eax, [ebp - 0x8070]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x14], eax
mov edi, 1
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edx
movzx ecx, word [ebx - 2]
add ecx, 0xffffffcf
cmp cx, 8
ja 0x411250
mov ecx, dword [ebp - 0x2c]
cmp ecx, 1
je 0x41122b
movzx edx, word [ebx - 4]
cmp edx, 0x20
je 0x41122b
cmp edx, 9
jne 0x411250
lea edx, [ecx - 1]
mov dword [ebp - 0x2c], edx
mov word [ebp + ecx*2 - 0x4072], 0
movzx eax, word [ebx - 2]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov edi, dword [esi]
lea ecx, [edi + 1]
mov dword [esi], ecx
mov word [edx + edi*2], ax
movzx eax, word [ebx]
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov edi, dword [edx]
lea ecx, [edi + 1]
mov dword [edx], ecx
mov word [esi + edi*2], ax
cmp word [ebp - 0x20], 0x3e
jne 0x411313
cmp word [ebx + 2], 0x26
mov edi, dword [ebp - 0x1c]
jne 0x411536
add ebx, 2
mov eax, dword [edx]
lea ecx, [eax + 1]
mov dword [edx], ecx
mov word [esi + eax*2], 0x26
jmp 0x411536
lea eax, [ebp - 0x8070]
cmp dword [ebp - 0x18], eax
jne 0x4112b1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
lea esi, [edx + 1]
mov dword [ecx], esi
mov word [ebp + edx*2 - 0x8070], 0x20
lea eax, [ebp - 0x4070]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], ecx
mov edx, dword [ecx]
mov dword [ebp - 0x28], 1
test edx, edx
jle 0x4112e8
movzx eax, word [ebx]
mov word [ebp - 0x1c], ax
mov eax, edi
mov edi, dword [ebp - 0x18]
lea esi, [edx + 1]
mov dword [ecx], esi
movzx ecx, word [ebp - 0x1c]
mov word [edi + edx*2], cx
mov edi, eax
xor esi, esi
xor ecx, ecx
jmp 0x410e0a
mov dword [ebp - 0x34], 0
jmp 0x410dae
mov ax, 0x5e
cmp dword [ebp - 0x24], 0
je 0x4115a7
mov dword [ebp - 0x1c], edi
jmp 0x4115ba
mov cl, 1
xor esi, esi
mov dword [ebp - 0x28], 0
mov edi, dword [ebp - 0x1c]
jmp 0x410e0a
cmp dword [ebp - 0x24], 0
je 0x4115d5
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
lea esi, [edx + 1]
mov dword [ecx], esi
mov word [eax + edx*2], 0x7c
jmp 0x411536
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x411652
lea ecx, [ebx + 2]
mov dx, 0x22
mov eax, edi
jmp 0x411367
inc eax
movzx edx, word [ecx]
add ecx, 2
cmp dx, 0x22
je 0x411360
movzx edx, dx
test edx, edx
je 0x411392
test al, 1
jne 0x411361
lea esi, [edx - 0x20]
cmp esi, 0x1e
ja 0x41138d
mov edi, 0x50000041
bt edi, esi
mov edi, dword [ebp - 0x24]
jb 0x411392
cmp edx, 0x7c
jne 0x411361
mov ecx, eax
shr ecx, 0x1f
add ecx, eax
sar ecx, 1
xor eax, eax
cmp ecx, edi
setg al
and eax, 1
dec eax
or eax, 1
add eax, edi
jmp 0x411657
cmp dword [ebp - 0x24], 0
je 0x411680
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
lea esi, [edx + 1]
mov dword [ecx], esi
mov word [eax + edx*2], 0x26
jmp 0x411536
test byte [0x41d038], 8
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x24]
je 0x41143e
mov eax, dword [esi]
sub esp, 0x34
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0x30], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x58]
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], str.Found___conditions:_curLen__d___inQ__d___onlyWS__d___for__d__In:_d__Do:_d___if__d__else:_d__lwe:_d__n
mov dword [esp + 8], str.WCMD_ReadAndParseLine
mov dword [esp], 3
call dbg.wine_dbg_log
add esp, 0x34
mov eax, dword [esi]
mov ecx, eax
or ecx, dword [ebp - 0x50]
je 0x41153d
test edi, edi
je 0x411a21
movzx ecx, word [ebx]
mov edx, dword [ebp - 0x18]
lea edi, [eax + 1]
mov dword [esi], edi
mov word [edx + eax*2], cx
xor eax, eax
xor edi, edi
jmp 0x411706
cmp dword [ebp - 0x24], 0
jne 0x411523
test eax, eax
jle 0x411523
cmp dword [ebp - 0x2c], 0
mov esi, dword [ebp + 0xc]
je 0x4114bb
lea ecx, [ebp - 0x4070]
lea edx, [ebp - 0x2c]
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x8070]
push eax
call sym._WCMD_createCommand
add esp, 0x14
mov ecx, dword [ebp - 0x3c]
mov edx, eax
push esi
call dbg.WCMD_appendCommand
add esp, 4
push 0x214
call sym._malloc
add esp, 4
test eax, eax
je 0x411d10
mov dword [eax], 0
mov dword [eax + 4], 0
mov word [eax + 0xc], 0
mov edi, dword [ebp - 0x10]
mov dword [eax + 8], edi
mov dword [ebp - 0x3c], 1
mov ecx, 1
mov edx, eax
push esi
call dbg.WCMD_appendCommand
add esp, 4
dec edi
mov dword [ebp - 0x10], edi
xor eax, eax
xor edi, edi
mov dword [ebp - 0x50], 0
jmp 0x4116ff
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], 0
jmp 0x410de8
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
lea esi, [edx + 1]
mov dword [ecx], esi
mov word [eax + edx*2], 0x29
xor eax, eax
jmp 0x411706
inc dword [ebp - 0x10]
xor eax, eax
xor edi, edi
mov dword [ebp - 0x50], 0
jmp 0x411706
mov dword [ebp - 0x38], 0
test byte [0x41d038], 8
mov edi, dword [ebp - 0x1c]
je 0x41158d
sub esp, 0x14
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], str.Resetting_curdepth_at_end_of_line_to__d_n
mov dword [esp + 8], str.WCMD_ReadAndParseLine
mov dword [esp], 3
call dbg.wine_dbg_log
add esp, 0x14
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x10], 0
jmp 0x410d30
movzx eax, word [ebx + 2]
test ax, ax
je 0x411abe
mov dword [ebp - 0x1c], edi
add ebx, 2
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, dword [edx]
lea edi, [esi + 1]
mov dword [edx], edi
mov word [ecx + esi*2], ax
xor eax, eax
mov edi, dword [ebp - 0x1c]
jmp 0x411706
cmp dword [ebp - 0x2c], 0
mov esi, eax
jle 0x411612
lea ecx, [ebp - 0x4070]
lea edx, [ebp - 0x2c]
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x8070]
push eax
call sym._WCMD_createCommand
add esp, 0x14
mov ecx, dword [ebp - 0x3c]
mov edx, eax
push dword [ebp + 0xc]
call dbg.WCMD_appendCommand
add esp, 4
lea ecx, [ebx + 2]
xor eax, eax
cmp word [ebx + 2], 0x7c
setne al
cmove ebx, ecx
mov ecx, dword [ebp - 0x44]
or ecx, dword [ebp - 0x40]
setne cl
test esi, esi
sete dl
test cl, dl
mov ecx, 1
mov edx, dword [ebp - 0x38]
cmovne edx, ecx
mov dword [ebp - 0x38], edx
cmovne esi, ecx
mov dword [ebp - 0x10], esi
lea eax, [eax*2 + 2]
jmp 0x4116f8
mov eax, 1
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, dword [edx]
lea edi, [esi + 1]
mov dword [edx], edi
mov word [ecx + esi*2], 0x22
add ebx, 2
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], eax
xor edi, edi
xor eax, eax
jmp 0x411710
cmp dword [ebp - 0x2c], 0
mov esi, eax
jle 0x4116bd
lea ecx, [ebp - 0x4070]
lea edx, [ebp - 0x2c]
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x8070]
push eax
call sym._WCMD_createCommand
add esp, 0x14
mov ecx, dword [ebp - 0x3c]
mov edx, eax
push dword [ebp + 0xc]
call dbg.WCMD_appendCommand
add esp, 4
lea ecx, [ebx + 2]
xor eax, eax
cmp word [ebx + 2], 0x26
sete al
cmove ebx, ecx
mov ecx, dword [ebp - 0x44]
or ecx, dword [ebp - 0x40]
setne cl
test esi, esi
sete dl
test cl, dl
mov ecx, 1
mov edx, dword [ebp - 0x38]
cmovne edx, ecx
mov dword [ebp - 0x38], edx
cmovne esi, ecx
mov dword [ebp - 0x10], esi
lea eax, [eax*2 + 1]
mov dword [ebp - 0x3c], eax
xor eax, eax
xor edi, edi
mov dword [ebp - 0x24], 0
add ebx, 2
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x4c], 0
mov edx, eax
mov dword [ebp - 0x58], 0
movzx eax, word [ebx]
test dl, dl
jne 0x4117da
test ax, ax
jne 0x4117da
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
jle 0x4117d7
lea ecx, [ebp - 0x4070]
mov dword [ebp - 0x20], edx
lea edx, [ebp - 0x2c]
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x8070]
push eax
call sym._WCMD_createCommand
add esp, 0x14
mov ecx, dword [ebp - 0x3c]
mov edx, eax
push dword [ebp + 0xc]
call dbg.WCMD_appendCommand
mov edx, dword [ebp - 0x20]
add esp, 4
cmp dword [ebp - 0x38], 0
mov dword [ebp - 0x38], 0
je 0x4117d7
mov dword [ebp - 0x38], 0
test byte [0x41d038], 8
je 0x4117d0
sub esp, 0x14
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], str.Resetting_curdepth_at_end_of_line_to__d_n
mov dword [esp + 8], str.WCMD_ReadAndParseLine
mov dword [esp], 3
call dbg.wine_dbg_log
mov edx, dword [ebp - 0x20]
add esp, 0x14
mov dword [ebp - 0x10], 0
movzx eax, word [ebx]
test ax, ax
jne 0x410d30
cmp dword [ebp - 0x10], 0
setg al
cmp dword [ebp + 0x10], 0xffffffff
je 0x410d30
or al, dl
je 0x410d30
mov ebx, edx
mov dword [ebp - 0x1c], edi
test byte [0x41d038], 8
je 0x41182c
sub esp, 0x10
mov dword [esp + 0xc], str.Need_to_read_more_data_as_outstanding_brackets_or_carets_n
mov dword [esp + 8], str.WCMD_ReadAndParseLine
mov dword [esp], 3
call dbg.wine_dbg_log
add esp, 0x10
mov esi, dword [global_extraSpace]
push 0x4002
push 0
push esi
call sym._memset
add esp, 0xc
mov edi, dword [ebp + 0x10]
test byte [0x41d038], 8
je 0x411870
sub esp, 0x10
mov dword [esp + 0xc], str.Read_more_input_n
mov dword [esp + 8], str.WCMD_ReadAndParseLine
mov dword [esp], 3
call dbg.wine_dbg_log
add esp, 0x10
cmp dword [0x421394], 0
jne 0x4118f0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push 0x800
push 0x42d48e
push 0x40a
push eax
call dword [sym.imp.user32.dll_LoadStringW]
test eax, eax
jne 0x4118e1
test byte [0x41d038], 1
je 0x4118d3
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.LoadString_failed_with__ld_n
mov dword [esp + 8], str.WCMD_LoadMessage
mov dword [esp], 0
call dbg.wine_dbg_log
add esp, 0x14
movups xmm0, xmmword [str.Failed_]
movups xmmword [0x42d48e], xmm0
mov ecx, 0xfffffff5
mov edx, 0x42d48e
call dbg.WCMD_output_asis_handle
push edi
push 0x2000
push esi
call dbg.WCMD_fgets
add esp, 0xc
test eax, eax
je 0x411968
mov eax, ebx
test al, al
je 0x411953
mov eax, dword [global_extraSpace]
cmp word [eax], 0
jne 0x411968
test byte [0x41d038], 8
je 0x41193f
sub esp, 0x10
mov dword [esp + 0xc], str.Read_nothing__so_appending_LF_char_and_will_try_again_n
mov dword [esp + 8], str.WCMD_ReadAndParseLine
mov dword [esp], 3
call dbg.wine_dbg_log
add esp, 0x10
mov dword [esi], 0xd
nop word cs:[eax + eax]
add esi, 2
movzx eax, word [esi]
cmp eax, 9
je 0x411950
cmp eax, 0x20
je 0x411950
test eax, eax
je 0x411845
mov ebx, dword [global_extraSpace]
mov edi, dword [ebp - 0x1c]
jmp 0x411983
add ebx, 2
movzx eax, word [ebx]
cmp eax, 0x20
je 0x411980
cmp eax, 9
je 0x411980
cmp dword [0x421394], 0
je 0x4119f3
mov ecx, ebx
xor edx, edx
push 0
call dbg.handleExpansion
add esp, 4
cmp dword [0x421394], 0
je 0x4119f3
cmp dword [0x41d034], 0
je 0x4119f3
movzx eax, word [ebx]
test eax, 0xffbf
je 0x4119f3
mov edx, dword [global_extraSpace]
mov ecx, 0xfffffff5
call dbg.WCMD_output_asis_handle
mov ecx, 0xfffffff5
mov edx, 0x41968e
call dbg.WCMD_output_asis_handle
jmp 0x4119f3
add ebx, 2
movzx eax, word [ebx]
cmp eax, 9
je 0x4119f0
cmp eax, 0x40
je 0x4119f0
cmp eax, 0x20
je 0x4119f0
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x54], 0
xor esi, esi
mov dword [ebp - 0x24], 0
jmp 0x410d30
cmp dword [ebp - 0x44], 0
je 0x411a2d
cmp dword [ebp - 0x54], 0
je 0x411a5f
cmp dword [ebp - 0x40], 0
je 0x411a3f
cmp dword [ebp - 0x5c], 0
je 0x411a3f
cmp dword [ebp - 0x30], 0
jne 0x411a5f
cmp dword [ebp - 0x34], 0
je 0x411afd
mov ecx, dword [ebp - 0x58]
or ecx, dword [ebp - 0x4c]
je 0x411afd
cmp dword [ebp - 0x30], 0
je 0x411afd
cmp dword [ebp - 0x34], 0
je 0x411b11
cmp dword [ebp - 0x4c], 0
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
je 0x411b17
cmp dword [ebp - 0x30], 0
je 0x411b17
mov dword [ebp - 0x50], 1
test byte [0x41d038], 8
je 0x411b17
sub esp, 0x10
mov dword [esp + 0xc], str.Inside_an_IN_n
mov dword [esp + 8], str.WCMD_ReadAndParseLine
mov dword [esp], 3
call dbg.wine_dbg_log
mov eax, dword [ebp - 0x10]
add esp, 0x10
jmp 0x411b17
mov dword [ebp - 0x24], 0
mov al, 1
test byte [0x41d038], 8
je 0x411706
sub esp, 0x10
mov dword [esp + 0xc], str.Caret_found_at_end_of_line_n
mov dword [esp + 8], str.WCMD_ReadAndParseLine
mov dword [esp], 3
call dbg.wine_dbg_log
mov al, 1
add esp, 0x10
jmp 0x411706
movzx ecx, word [ebx]
mov edx, dword [ebp - 0x18]
lea edi, [eax + 1]
mov dword [esi], edi
mov word [edx + eax*2], cx
jmp 0x4116fb
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x4070]
lea edx, [ebp - 0x2c]
push eax
mov edi, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x8070]
push eax
call sym._WCMD_createCommand
add esp, 0x14
mov ecx, dword [ebp - 0x3c]
mov edx, eax
push esi
call dbg.WCMD_appendCommand
add esp, 4
inc edi
mov dword [ebp - 0x10], edi
jmp 0x4116fb
xor eax, eax
test byte [0x41d038], 2
je 0x411cd1
sub esp, 0x10
mov dword [esp + 0xc], str.Overflow_detected_in_command_n
mov dword [esp + 8], str.WCMD_ReadAndParseLine
mov dword [esp], 1
call dbg.wine_dbg_log
xor eax, eax
add esp, 0x10
jmp 0x411cd1
movzx eax, byte [0x41d038]
cmp dword [ebp - 0x10], 0
mov esi, dword [ebp + 0xc]
jle 0x411be4
test al, 8
je 0x411bc3
sub esp, 0x10
mov dword [esp + 0xc], str.Brackets_do_not_match__error_out_without_executing._n
mov dword [esp + 8], str.WCMD_ReadAndParseLine
mov dword [esp], 3
call dbg.wine_dbg_log
add esp, 0x10
push dword [esi]
call dbg.WCMD_free_commands
add esp, 4
mov dword [esi], 0
mov dword [0x42147c], 0xff
movzx eax, byte [0x41d038]
mov edi, dword [esi]
test al, 8
je 0x411c0c
sub esp, 0x10
mov dword [esp + 0xc], str.Parsed_line:_n
mov dword [esp + 8], str.WCMD_DumpCommands
mov dword [esp], 3
call dbg.wine_dbg_log
add esp, 0x10
test edi, edi
je 0x411ccc
movzx eax, byte [0x41d038]
nop dword [eax + eax]
test al, 8
je 0x411cbc
cmp dword [edi], 0
je 0x411c38
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov dword [ebp - 0x20], ecx
jmp 0x411c41
mov dword [ebp - 0x20], 0
mov eax, edi
mov eax, dword [eax + 4]
mov ecx, dword [eax]
mov ebx, dword [eax + 8]
call dbg.wine_dbgstr_w
mov esi, eax
cmp dword [edi], 0
mov eax, edi
je 0x411c5a
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 4]
call dbg.wine_dbgstr_w
mov edx, dword [edi]
mov ecx, str.op_unk
cmp edx, 4
ja 0x411c78
mov ecx, dword [edx*4 + 0x419f58]
sub esp, 0x28
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], esi
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str._p__2.2d__p__s_Redir:_s__s_n
mov dword [esp + 8], str.WCMD_DumpCommands
mov dword [esp], 3
call dbg.wine_dbg_log
add esp, 0x28
movzx eax, byte [0x41d038]
cmp dword [edi], 0
je 0x411ccc
mov edi, dword [edi + 8]
test edi, edi
jne 0x411c20
mov eax, dword [global_extraSpace]
add esp, 0x8064
pop esi
pop edi
pop ebx
pop ebp
ret
test byte [0x41d038], 1
je 0x410a60
sub esp, 0x10
mov dword [esp + 0xc], str.No_command_nor_handle_supplied_n
mov dword [esp + 8], str.WCMD_ReadAndParseLine
mov dword [esp], 0
call dbg.wine_dbg_log
add esp, 0x10
jmp 0x410a60
test byte [0x41d038], 2
je 0x411d3b
sub esp, 0x10
mov dword [esp + 0xc], str.Out_of_memory_n
mov dword [esp + 8], str.xrealloc
mov dword [esp], 1
call dbg.wine_dbg_log
add esp, 0x10
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]