Function at 0x403730
Capabilities:
Terminate process

Disassembly:
push ebp
mov eax, 0x80a0
mov ebp, esp
push edi
push esi
push ebx
call fcn.00401050
sub esp, eax
mov esi, dword [0x423348]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x802c], 0
mov dword [ebp - 0x8028], 0
mov dword [ebp - 0x801c], 0
test esi, esi
je 0x404828
xor eax, eax
test ebx, ebx
je 0x404480
lea esi, [esi]
nop
movzx edx, word [ebx + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x403780
cmp word [esi], 0
je 0x404a6d
mov eax, esi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4037a0
sub eax, esi
cmp eax, 0x3ffe
je 0x4047e8
mov edx, dword [0x4231c8]
test edx, edx
je 0x403a30
mov eax, dword [0x423348]
xor edx, edx
xor ecx, ecx
call sym._handleExpansion
movzx eax, word [esi]
mov edx, dword [0x4231c8]
cmp ax, 9
je 0x4037f0
cmp ax, 0x20
jne 0x403803
lea esi, [esi]
nop
movzx eax, word [esi + 2]
add esi, 2
cmp ax, 0x20
je 0x4037f0
cmp ax, 9
je 0x4037f0
test edx, edx
je 0x40381b
test ax, 0xffbf
je 0x40381b
mov ecx, dword [0x42333c]
test ecx, ecx
jne 0x404945
cmp ax, 0x40
jne 0x403831
lea esi, [esi]
add esi, 2
cmp word [esi], 0x40
je 0x403828
mov dword [ebp - 0x802c], 0
lea eax, [ebp - 0x800c]
mov dword [ebp - 0x8024], eax
lea eax, [ebp - 0x802c]
mov dword [ebp - 0x8028], 0
mov dword [ebp - 0x8020], eax
cmp word [esi], 0
je 0x403f70
mov dword [ebp - 0x805c], 0
xor edi, edi
mov dword [ebp - 0x8050], 0
mov dword [ebp - 0x804c], 0
mov dword [ebp - 0x803c], 0
mov dword [ebp - 0x8060], 0
mov dword [ebp - 0x8054], 0
mov dword [ebp - 0x8040], 0
mov dword [ebp - 0x8048], 0
mov dword [ebp - 0x806c], 0
mov dword [ebp - 0x8044], 0
mov dword [ebp - 0x8068], 0
mov dword [ebp - 0x8058], 0
mov dword [ebp - 0x8034], 0
mov dword [ebp - 0x8064], 0
lea esi, [esi]
mov edx, dword [ebp - 0x802c]
mov eax, dword [ebp - 0x8024]
lea ecx, [ebp - 0x800c]
test edx, edx
jne 0x403e98
cmp eax, ecx
je 0x404398
mov edi, dword [ebp - 0x8034]
test edi, edi
jne 0x404268
movzx ecx, word [esi]
lea edx, [esi + 2]
mov ebx, edx
cmp cx, 0x5e
ja 0x403ff8
cmp cx, 8
jbe case.0x40394c.1
lea eax, [ecx - 9]
cmp ax, 0x55
ja case.0x40394c.1
movzx eax, ax
jmp dword [eax*4 + 0x437578]
cmp cx, 0x20
setne bl
cmp cx, 9
setne al
and ebx, eax
mov byte [ebp - 0x8038], bl
nop
mov eax, dword [ebp - 0x8020]
mov ebx, dword [ebp - 0x8024]
mov dword [ebp - 0x803c], 0
mov eax, dword [eax]
mov dword [ebp - 0x8030], ebx
mov ebx, dword [ebp - 0x8020]
lea edi, [eax + 1]
mov dword [ebx], edi
mov ebx, dword [ebp - 0x8030]
movzx edi, word [esi]
mov word [ebx + eax*2], di
mov ebx, esi
xor edi, edi
mov dword [ebp - 0x8030], 0
movzx eax, word [ebx + 2]
mov esi, edx
test ax, ax
sete dl
cmp byte [ebp - 0x8038], 0
jne 0x404330
test edi, edi
jne 0x4039e5
mov dword [ebp - 0x804c], 0
mov dword [ebp - 0x8050], 0
test dl, dl
jne 0x404280
test ax, ax
je 0x404098
movzx eax, word [esi]
test ax, ax
je 0x403f70
mov eax, dword [ebp - 0x8020]
cmp dword [eax], 0x1fff
jle 0x4038f8
test byte [0x423030], 2
jne 0x40456e
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, word [esi]
cmp ax, 9
je 0x4037f0
cmp ax, 0x20
je 0x4037f0
jmp 0x40381b
mov eax, dword [ebp - 0x803c]
or eax, dword [ebp - 0x8048]
je 0x4044c8
mov edi, dword [ebp - 0x8020]
cmp cx, 0x20
mov ebx, dword [edi]
setne byte [ebp - 0x8030]
cmp cx, 9
setne al
and al, byte [ebp - 0x8030]
mov byte [ebp - 0x8038], al
test ebx, ebx
jle 0x404860
mov eax, dword [ebp - 0x8024]
mov dword [ebp - 0x8030], eax
lea eax, [ebx + 1]
mov dword [edi], eax
mov eax, dword [ebp - 0x8030]
movzx edi, word [esi]
mov word [eax + ebx*2], di
mov ebx, esi
mov edi, 1
jmp 0x4039aa
mov edi, dword [ebp - 0x8048]
test edi, edi
je 0x404500
mov eax, dword [ebp - 0x8024]
mov edi, dword [ebp - 0x8020]
mov dword [ebp - 0x8030], eax
movzx eax, word [esi - 2]
sub eax, 0x31
cmp ax, 8
ja 0x403b10
mov eax, dword [ebp - 0x802c]
cmp eax, 1
je 0x40468f
movzx edx, word [esi - 4]
cmp dx, 0x20
je 0x40468f
cmp dx, 9
je 0x40468f
nop
mov eax, dword [edi]
lea edx, [eax + 1]
mov dword [edi], edx
mov edi, dword [ebp - 0x8030]
movzx edx, word [esi]
mov word [edi + eax*2], dx
movzx eax, word [esi + 2]
cmp cx, 0x3e
jne 0x40436e
cmp ax, 0x26
jne 0x40436e
mov edx, dword [ebp - 0x8020]
mov ecx, dword [ebp - 0x8024]
mov dword [ebp - 0x8030], 0
mov eax, dword [edx]
lea edi, [eax + 1]
mov dword [edx], edi
movzx edx, word [esi + 2]
mov word [ecx + eax*2], dx
movzx eax, word [esi + 4]
test ax, ax
sete dl
jmp 0x404380
mov edi, dword [ebp - 0x8048]
test edi, edi
je 0x403bdd
mov eax, edx
mov edx, edi
jmp 0x403bb2
test dl, 1
jne 0x403ba7
cmp cx, 0x7c
sete bl
sub ecx, 0x20
cmp cx, 0x1e
ja 0x403ba3
mov edi, 0x50000041
shr edi, cl
mov ecx, edi
and ecx, 1
or ebx, ecx
test bl, bl
jne 0x403bc8
movzx ecx, word [eax]
add eax, 2
test cx, cx
je 0x403bc8
cmp cx, 0x22
jne 0x403b80
movzx ecx, word [eax]
add eax, 2
inc edx
test cx, cx
jne 0x403bb2
lea esi, [esi]
mov eax, edx
shr eax, 0x1f
add edx, eax
sar edx, 1
cmp edx, dword [ebp - 0x8048]
jle 0x4044b8
inc dword [ebp - 0x8048]
mov edx, dword [ebp - 0x8020]
mov ecx, dword [ebp - 0x8024]
mov eax, dword [edx]
lea ebx, [eax + 1]
mov dword [edx], ebx
movzx edx, word [esi]
mov word [ecx + eax*2], dx
mov dword [ebp - 0x8030], 0
movzx eax, word [esi + 2]
mov ebx, esi
mov dword [ebp - 0x803c], 0
test ax, ax
sete dl
jmp 0x404380
mov eax, dword [ebp - 0x8048]
test eax, eax
jne 0x404350
movzx eax, word [esi + 2]
test ax, ax
jne 0x40434c
test byte [0x423030], 8
jne 0x404d4a
mov dword [ebp - 0x8030], 1
mov ebx, esi
xor edx, edx
jmp 0x404380
mov ebx, dword [ebp - 0x8048]
test ebx, ebx
jne 0x404350
mov ecx, dword [ebp - 0x8040]
test ecx, ecx
jle 0x404350
mov edx, dword [ebp - 0x802c]
test edx, edx
jne 0x4046f2
lea eax, [ebp - 0x400c]
mov dword [ebp - 0x803c], eax
lea eax, [ebp - 0x8028]
mov ebx, eax
lea eax, [ebp - 0x801c]
mov edi, eax
lea eax, [ebp - 0x8020]
mov dword [ebp - 0x8038], eax
lea eax, [ebp - 0x8024]
mov dword [ebp - 0x8030], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], edi
lea edx, [ebp - 0x802c]
mov edi, dword [ebp - 0x8040]
mov ecx, dword [ebp - 0x803c]
mov dword [esp], ebx
mov ebx, esi
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x8038]
mov dword [esp + 0x10], edi
dec edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x8030]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
xor eax, eax
call sym._WCMD_addCommand
movzx eax, word [esi + 2]
mov dword [ebp - 0x8040], edi
mov dword [ebp - 0x8030], 0
mov dword [ebp - 0x803c], 0
test ax, ax
mov dword [ebp - 0x8068], 0
sete dl
mov dword [ebp - 0x8048], 0
mov dword [ebp - 0x8058], 0
jmp 0x404380
test byte [0x423030], 8
jne 0x404895
mov edx, dword [ebp - 0x8020]
mov edi, dword [ebp - 0x8068]
mov eax, dword [edx]
or edi, eax
mov dword [ebp - 0x803c], edi
je 0x404a29
mov edi, dword [ebp - 0x8048]
test edi, edi
jne 0x404557
mov edi, dword [ebp - 0x8044]
mov ebx, dword [ebp - 0x8060]
mov ecx, edi
xor ebx, 1
and ecx, 1
and ebx, dword [ebp - 0x8064]
mov dword [ebp - 0x803c], ebx
jne 0x404a7f
and edi, dword [ebp - 0x806c]
mov ebx, edi
and ebx, 1
jne 0x403dde
mov ebx, dword [ebp - 0x8054]
test ebx, ebx
je 0x404785
mov edi, dword [ebp - 0x8050]
or edi, dword [ebp - 0x804c]
je 0x404785
test cl, cl
je 0x404785
mov edx, dword [ebp - 0x804c]
test edx, edx
je 0x403df5
test byte [ebp - 0x8054], 1
jne 0x404bc9
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 0x8040]
lea ecx, [ebp - 0x400c]
lea edx, [ebp - 0x802c]
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x801c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x8058]
mov dword [esp + 0x10], edi
inc edi
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x8020]
mov dword [esp + 8], eax
lea eax, [ebp - 0x8024]
mov dword [esp + 4], eax
lea eax, [ebp - 0x8028]
mov dword [esp], eax
lea eax, [ebp - 0x800c]
call sym._WCMD_addCommand
mov dword [ebp - 0x8040], edi
jmp 0x403bfd
mov eax, dword [ebp - 0x8048]
test eax, eax
jne 0x404350
mov edi, dword [ebp - 0x802c]
test edi, edi
jg 0x4045d3
movzx eax, word [esi + 2]
cmp ax, 0x26
je 0x4046df
mov dword [ebp - 0x8058], 0
mov ebx, esi
jmp 0x404038
cmp eax, ecx
jne 0x40391a
and edi, dword [ebp - 0x8054]
je 0x40391a
test byte [0x423030], 8
jne 0x404418
mov dword [esp + 4], esi
mov dword [esp], 0x4372f8
call sym._WCMD_keyword_ws_found
mov dword [ebp - 0x8054], edi
test eax, eax
je 0x40391a
mov edx, 0x6e
mov eax, 0x4372f8
jmp 0x403eec
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x403ee8
sub eax, 0x4372f8
mov ebx, eax
sar eax, 1
mov dword [ebp - 0x8030], eax
test byte [0x423030], 8
jne 0x404ba0
mov eax, dword [ebp - 0x8020]
add ebx, 2
mov edx, dword [eax]
mov eax, dword [ebp - 0x8024]
mov dword [esp + 4], esi
add esi, ebx
mov dword [esp + 8], ebx
lea eax, [eax + edx*2]
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0x8020]
mov ecx, dword [ebp - 0x8030]
mov dword [ebp - 0x804c], edi
mov dword [ebp - 0x8044], edi
mov edx, dword [eax]
mov dword [ebp - 0x8054], edi
lea edx, [ecx + edx + 1]
mov dword [eax], edx
movzx eax, word [esi]
test ax, ax
jne 0x403a02
lea esi, [esi]
nop
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
test byte [0x423030], 8
je 0x403f8b
jmp 0x40486c
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4043d8
test byte [0x423030], 8
je 0x403f88
mov eax, dword [ebx + 4]
call sym._wine_dbgstr_wn.constprop.0_2
mov esi, eax
mov eax, dword [ebx]
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str._p__d__2.2d__p__s_Redir:_s_n
mov dword [esp + 8], str.WCMD_DumpCommands
mov dword [esp + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x403f88
cmp cx, 0x7c
jne case.0x40394c.1
mov eax, dword [ebp - 0x8048]
test eax, eax
jne 0x404350
mov eax, dword [ebp - 0x802c]
test eax, eax
jg 0x404631
movzx eax, word [esi + 2]
cmp ax, 0x7c
je 0x4046cc
mov dword [ebp - 0x8058], 3
mov ebx, esi
test ax, ax
mov edi, dword [ebp - 0x8064]
sete dl
or edi, dword [ebp - 0x806c]
mov dword [ebp - 0x803c], edi
je 0x4047c0
mov esi, dword [ebp - 0x8040]
test esi, esi
jne 0x404a54
mov dword [ebp - 0x805c], edi
mov dword [ebp - 0x8030], 0
mov dword [ebp - 0x8048], 0
mov dword [ebp - 0x8040], edi
mov dword [ebp - 0x803c], 0
jmp 0x404380
mov eax, dword [ebp - 0x8040]
test eax, eax
setg al
or al, byte [ebp - 0x8030]
je 0x4039f6
cmp dword [ebp + 0x10], 0xffffffff
je 0x4039f6
test byte [0x423030], 8
jne 0x404450
mov ebx, dword [0x423348]
mov dword [esp + 8], 0x4002
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym._memset
mov esi, dword [ebp - 0x8030]
test byte [0x423030], 8
jne 0x404215
mov eax, dword [0x4231c8]
test eax, eax
je 0x404246
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 0x2000
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._WCMD_fgets
test eax, eax
je 0x40412d
test esi, esi
jne 0x4041e0
cmp word [ebx], 0
je 0x4040ea
mov esi, dword [0x423348]
movzx eax, word [esi]
cmp ax, 9
je 0x404148
cmp ax, 0x20
jne 0x40415b
lea esi, [esi]
movzx eax, word [esi + 2]
add esi, 2
cmp ax, 0x20
je 0x404148
cmp ax, 9
je 0x404148
mov eax, dword [0x4231c8]
test eax, eax
je 0x40419b
mov eax, esi
xor ecx, ecx
xor edx, edx
call sym._handleExpansion
mov ebx, dword [0x4231c8]
movzx eax, word [esi]
test ebx, ebx
je 0x40419e
mov ecx, dword [0x42333c]
test ecx, ecx
je 0x40419e
test ax, 0xffbf
je 0x40419e
jmp 0x404a97
add esi, 2
movzx eax, word [esi]
lea edx, [eax - 0x20]
test dx, 0xffdf
je 0x404198
cmp ax, 9
je 0x404198
mov dword [ebp - 0x8060], 0
mov dword [ebp - 0x8034], 0
mov dword [ebp - 0x8058], 0
mov dword [ebp - 0x8048], 0
jmp 0x4039f9
mov edx, dword [0x423348]
movzx eax, word [edx]
test ax, ax
jne 0x404850
test byte [0x423030], 8
jne 0x404300
mov dword [ebx], 0xd
add ebx, 2
test byte [0x423030], 8
je 0x4040f7
mov dword [esp + 0xc], str.Read_more_input_n
mov dword [esp + 8], str.WCMD_ReadAndParseLine
mov dword [esp + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
mov eax, dword [0x4231c8]
test eax, eax
jne 0x404104
mov dword [esp], 0x40a
call sym._WCMD_LoadMessage
mov edx, eax
mov eax, 0xfffffff5
call sym._WCMD_output_asis_handle
jmp 0x404104
mov byte [ebp - 0x8038], 1
mov ecx, 0x58
lea edx, [esi + 2]
jmp 0x403970
mov eax, dword [ebp - 0x8020]
mov eax, dword [eax]
test eax, eax
jle 0x404098
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x400c]
lea edx, [ebp - 0x802c]
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x801c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x8040]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x8058]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x8020]
mov dword [esp + 8], eax
lea eax, [ebp - 0x8024]
mov dword [esp + 4], eax
lea eax, [ebp - 0x8028]
mov dword [esp], eax
lea eax, [ebp - 0x800c]
call sym._WCMD_addCommand
mov eax, dword [ebp - 0x805c]
test eax, eax
jne 0x4043e8
movzx eax, word [ebx + 2]
jmp 0x4039ed
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 + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x4041ff
cmp cx, 0xa
mov ecx, dword [ebp - 0x8044]
cmovne ecx, dword [ebp - 0x8030]
mov dword [ebp - 0x8044], ecx
jmp 0x4039cd
mov esi, edx
nop
mov edx, dword [ebp - 0x8020]
mov ecx, dword [ebp - 0x8024]
mov eax, dword [edx]
lea ebx, [eax + 1]
mov dword [edx], ebx
movzx edx, word [esi]
mov word [ecx + eax*2], dx
movzx eax, word [esi + 2]
mov dword [ebp - 0x8030], 0
test ax, ax
mov ebx, esi
sete dl
mov dword [ebp - 0x8044], 0
lea esi, [ebx + 2]
xor edi, edi
jmp 0x4039d1
mov dword [esp + 4], esi
mov dword [esp], 0x43735a
call sym._WCMD_keyword_ws_found
test eax, eax
jne 0x4043b6
cmp word [esi], 0x3a
jne 0x404530
mov byte [ebp - 0x8038], 1
mov ecx, 0x58
lea edx, [esi + 2]
mov dword [ebp - 0x8034], 1
jmp 0x403970
mov eax, dword [0x423348]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x423030], 8
jne 0x404914
mov dword [ebp - 0x805c], 0
movzx eax, word [esi]
mov dword [ebp - 0x8040], 0
jmp 0x4039f9
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [esp + 0xc], str.Found_FOR___comparing_next_parm:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WCMD_ReadAndParseLine
mov dword [esp + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x403eb9
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 + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x4040c6
cmp dword [ebp + 0x10], 0xffffffff
je 0x404597
mov eax, dword [ebp + 0x10]
mov dword [esp], esi
mov dword [esp + 4], 0x2000
mov dword [esp + 8], eax
call sym._WCMD_fgets
mov esi, dword [0x423348]
test eax, eax
jne 0x403790
jmp 0x403a21
dec dword [ebp - 0x8048]
jmp 0x403be3
lea eax, [ebp - 0x400c]
cmp dword [ebp - 0x8024], eax
je 0x404766
lea eax, [ebp - 0x800c]
mov dword [ebp - 0x8024], eax
lea eax, [ebp - 0x802c]
mov dword [ebp - 0x8020], eax
mov edi, eax
jmp 0x403a68
lea eax, [ebp - 0x400c]
lea edi, [ebp - 0x8028]
mov dword [ebp - 0x803c], 1
mov dword [ebp - 0x8024], eax
mov dword [ebp - 0x8020], edi
mov dword [ebp - 0x8030], eax
jmp 0x403ada
mov dword [esp + 4], esi
mov dword [esp], 0x437362
call sym._WCMD_keyword_ws_found
test eax, eax
je 0x404abb
mov dword [ebp - 0x8054], 1
jmp 0x40391a
lea ebx, [eax + 1]
mov ecx, dword [ebp - 0x8024]
mov dword [edx], ebx
movzx edx, word [esi]
mov word [ecx + eax*2], dx
jmp 0x403bfd
mov dword [esp + 0xc], str.Overflow_detected_in_command_n
mov dword [esp + 8], str.WCMD_ReadAndParseLine
mov dword [esp + 4], 0x423030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_3
jmp 0x403a21
test byte [0x423030], 1
je 0x403790
mov dword [esp + 0xc], str.No_command_nor_handle_supplied_n
mov dword [esp + 8], str.WCMD_ReadAndParseLine
mov dword [esp + 4], 0x423030
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_3
mov esi, dword [0x423348]
jmp 0x403790
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x400c]
lea edx, [ebp - 0x802c]
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x801c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x8040]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x8058]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x8020]
mov dword [esp + 8], eax
lea eax, [ebp - 0x8024]
mov dword [esp + 4], eax
lea eax, [ebp - 0x8028]
mov dword [esp], eax
lea eax, [ebp - 0x800c]
call sym._WCMD_addCommand
jmp 0x403e76
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x400c]
lea edx, [ebp - 0x802c]
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x801c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x8040]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x8058]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x8020]
mov dword [esp + 8], eax
lea eax, [ebp - 0x8024]
mov dword [esp + 4], eax
lea eax, [ebp - 0x8028]
mov dword [esp], eax
lea eax, [ebp - 0x800c]
call sym._WCMD_addCommand
jmp 0x40401e
dec eax
xor edx, edx
mov word [ebp + eax*2 - 0x800c], dx
mov dword [ebp - 0x802c], eax
mov eax, dword [edi]
lea edx, [eax + 1]
mov dword [edi], edx
mov edi, dword [ebp - 0x8030]
movzx edx, word [esi - 2]
mov word [edi + eax*2], dx
mov eax, dword [ebp - 0x8024]
mov edi, dword [ebp - 0x8020]
mov dword [ebp - 0x8030], eax
jmp 0x403b10
mov dword [ebp - 0x8058], 1
movzx eax, word [esi + 4]
jmp 0x404038
mov dword [ebp - 0x8058], 2
movzx eax, word [esi + 4]
jmp 0x404038
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x400c]
lea edx, [ebp - 0x802c]
mov dword [ebp - 0x803c], ecx
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x801c]
mov dword [esp + 0x14], eax
mov edi, eax
mov eax, dword [ebp - 0x8040]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x8058]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x8020]
mov dword [ebp - 0x8038], eax
mov dword [esp + 8], eax
lea eax, [ebp - 0x8024]
mov dword [ebp - 0x8030], eax
mov dword [esp + 4], eax
lea eax, [ebp - 0x8028]
mov dword [esp], eax
mov ebx, eax
lea eax, [ebp - 0x800c]
call sym._WCMD_addCommand
jmp 0x403cbb
mov edi, dword [ebp - 0x8020]
mov eax, dword [edi]
lea ebx, [eax + 1]
mov dword [edi], ebx
mov ebx, 0x20
mov word [ebp + eax*2 - 0x400c], bx
jmp 0x4044da
lea ebx, [eax + 1]
mov ecx, dword [ebp - 0x8024]
mov dword [ebp - 0x8030], 0
mov dword [edx], ebx
movzx edx, word [esi]
mov ebx, esi
mov dword [ebp - 0x8048], 0
mov word [ecx + eax*2], dx
movzx eax, word [esi + 2]
test ax, ax
sete dl
jmp 0x404380
mov dword [ebp - 0x8064], 0
mov dword [ebp - 0x8030], 0
mov dword [ebp - 0x8048], 0
jmp 0x404380
mov dword [esp], 0x3f0
call sym._WCMD_LoadMessage
mov edx, eax
mov eax, 0xfffffff4
call sym._WCMD_output_asis_handle
mov edx, dword [0x423348]
mov eax, 0xfffffff4
call sym._WCMD_output_asis_handle
mov edx, 0x4371b0
mov eax, 0xfffffff4
call sym._WCMD_output_asis_handle
jmp 0x4037b6
mov dword [esp], 0x4002
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x404f4c
mov dword [0x423348], eax
jmp 0x403771
mov esi, edx
jmp 0x404136
mov ebx, esi
mov edi, 1
jmp 0x4039aa
mov dword [esp + 0xc], str.Parsed_line:_n
mov dword [esp + 8], str.WCMD_DumpCommands
mov dword [esp + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x403f8b
mov eax, dword [ebp - 0x806c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebp - 0x8064]
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x8050]
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x804c]
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x8054]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x8044]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x8048]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x8020]
mov eax, dword [eax]
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 + 0x10], eax
mov dword [esp + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x403d59
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 + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x4043f5
mov eax, 0x63
mov edx, str.echo.
jmp 0x40495c
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x404958
mov eax, edx
sub eax, str.echo.
sar eax, 1
mov ebx, eax
mov eax, esi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x404978
sub eax, esi
sar eax, 1
cmp eax, ebx
cmova eax, ebx
mov edi, eax
mov eax, 1
call sym._WCMD_show_prompt
mov edx, esi
mov eax, 0xfffffff5
call sym._WCMD_output_asis_handle
mov dword [ebp - 0x8030], edi
mov dword [esp + 0xc], edi
mov edi, dword [sym.imp.kernel32.dll_CompareStringW]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], str.echo.
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], 0x800
call edi
sub esp, 0x18
cmp eax, 2
je 0x404a12
mov eax, dword [ebp - 0x8030]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], str.echo:
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], 0x800
call edi
sub esp, 0x18
cmp eax, 2
jne 0x404c09
mov eax, 0xfffffff5
mov edx, 0x4371b0
call sym._WCMD_output_asis_handle
movzx eax, word [esi]
jmp 0x40381b
movzx eax, word [esi + 2]
inc dword [ebp - 0x8040]
mov ebx, esi
mov dword [ebp - 0x8030], 0
mov dword [ebp - 0x8068], 0
test ax, ax
sete dl
jmp 0x404380
mov dword [ebp - 0x8030], 0
mov dword [ebp - 0x803c], 0
jmp 0x404380
mov eax, dword [0x4231c8]
test eax, eax
jne 0x4037c4
jmp 0x403831
mov eax, dword [ebp - 0x804c]
test eax, eax
setne al
test al, cl
jne 0x403de8
jmp 0x403df5
mov edx, dword [0x423348]
mov eax, 0xfffffff5
call sym._WCMD_output_asis_handle
mov edx, 0x4371b0
mov eax, 0xfffffff5
call sym._WCMD_output_asis_handle
jmp 0x40419b
mov dword [esp + 4], esi
mov dword [esp], 0x4372e2
call sym._WCMD_keyword_ws_found
test eax, eax
jne 0x404c54
mov dword [esp + 4], esi
mov dword [esp], 0x4372e8
call sym._WCMD_keyword_ws_found
test eax, eax
jne 0x404e34
mov eax, dword [ebp - 0x8054]
test eax, eax
je 0x40391a
mov dword [esp + 4], esi
mov dword [esp], 0x4372f2
call sym._WCMD_keyword_ws_found
test eax, eax
je 0x40391a
mov edx, 0x6f
mov eax, 0x4372f2
jmp 0x404b21
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x404b1d
sub eax, 0x4372f2
mov ebx, eax
sar eax, 1
mov dword [ebp - 0x8030], eax
test byte [0x423030], 8
jne 0x404f62
mov eax, dword [ebp - 0x8020]
add ebx, 2
mov edx, dword [eax]
mov eax, dword [ebp - 0x8024]
mov dword [esp + 4], esi
add esi, ebx
mov dword [esp + 8], ebx
lea eax, [eax + edx*2]
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0x8020]
mov ecx, dword [ebp - 0x8030]
mov edx, dword [eax]
lea edx, [ecx + edx + 1]
mov ecx, dword [ebp - 0x8054]
mov dword [eax], edx
movzx eax, word [esi]
mov dword [ebp - 0x8050], ecx
mov dword [ebp - 0x8044], ecx
jmp 0x4039f9
mov dword [esp + 0xc], str.Found_IN__n
mov dword [esp + 8], str.WCMD_ReadAndParseLine
mov dword [esp + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x403f10
mov dword [ebp - 0x8068], 1
test byte [0x423030], 8
je 0x403df5
mov dword [esp + 0xc], str.Inside_an_IN_n
mov dword [esp + 8], str.WCMD_ReadAndParseLine
mov dword [esp + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x403df5
mov eax, dword [ebp - 0x8030]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], str.echo_
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], 0x800
call edi
sub esp, 0x18
cmp eax, 2
je 0x404a12
mov edx, 0x437338
mov eax, 0xfffffff5
call sym._WCMD_output_asis_handle
jmp 0x404a12
mov edx, 0x66
mov eax, 0x4372e2
jmp 0x404c64
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x404c60
sub eax, 0x4372e2
lea edi, [esi + eax]
movzx eax, word [edi]
cmp ax, 0x20
jne 0x404c8d
lea esi, [esi]
movzx eax, word [edi + 2]
add edi, 2
cmp ax, 0x20
je 0x404c80
cmp ax, 9
je 0x404c80
mov eax, edi
call sym._WCMD_parse.constprop.0
lea eax, [ebp - 0x8018]
mov dword [esp], edi
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x8014]
mov dword [esp + 8], eax
lea eax, [ebp - 0x8010]
mov dword [esp + 4], eax
call sym._evaluate_if_condition
cmp eax, 0xffffffff
je 0x404d17
mov ebx, dword [ebp - 0x8010]
mov ecx, ebx
sub ecx, esi
mov eax, ecx
sar eax, 1
mov dword [ebp - 0x8030], eax
test byte [0x423030], 8
jne 0x404d85
mov eax, dword [ebp - 0x8020]
mov edx, dword [eax]
mov eax, dword [ebp - 0x8024]
mov dword [esp + 4], esi
mov esi, ebx
mov dword [esp + 8], ecx
lea eax, [eax + edx*2]
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0x8020]
mov edi, dword [ebp - 0x8030]
add dword [eax], edi
mov dword [esp + 4], esi
mov dword [esp], 0x4373ba
call sym._WCMD_keyword_ws_found
mov dword [ebp - 0x8064], 1
test eax, eax
mov eax, 1
cmove eax, dword [ebp - 0x8060]
mov dword [ebp - 0x8060], eax
jmp 0x40391a
mov dword [esp + 0xc], str.Caret_found_at_end_of_line_n
mov ebx, esi
mov dword [esp + 8], str.WCMD_ReadAndParseLine
mov dword [esp + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
movzx eax, word [esi + 2]
xor edx, edx
mov dword [ebp - 0x8030], 1
jmp 0x404380
mov eax, ebx
mov dword [ebp - 0x8078], ecx
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [ebp - 0x8074], eax
mov eax, 0x42c560
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [ebp - 0x8070], eax
mov eax, 0x428560
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [ebp - 0x8064], eax
mov eax, 0x430580
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [ebp - 0x8038], eax
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0_2
mov edi, dword [ebp - 0x8030]
mov dword [esp + 0xc], str.p:__s__quals:__s__param1:__s__param2:__s__command:__s__if_condition_len:__d_n
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edi
mov edi, dword [ebp - 0x8074]
mov dword [esp + 8], str.WCMD_ReadAndParseLine
mov dword [esp + 0x20], edi
mov edi, dword [ebp - 0x8070]
mov dword [esp + 4], 0x423030
mov dword [esp + 0x1c], edi
mov edi, dword [ebp - 0x8064]
mov dword [esp], 3
mov dword [esp + 0x18], edi
mov edi, dword [ebp - 0x8038]
mov dword [esp + 0x14], edi
call sym._wine_dbg_log.constprop.0_3
mov ecx, dword [ebp - 0x8078]
jmp 0x404ce6
mov eax, 0x6c
mov edx, 0x4372e8
jmp 0x404e44
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x404e40
mov eax, dword [ebp - 0x8020]
mov ebx, edx
mov ecx, edx
sub ecx, 0x4372e6
sub ebx, 0x4372e8
mov edx, dword [eax]
mov eax, dword [ebp - 0x8024]
mov dword [esp + 8], ecx
sar ebx, 1
mov dword [esp + 4], esi
lea eax, [eax + edx*2]
mov dword [ebp - 0x8030], ecx
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0x8020]
mov ecx, dword [ebp - 0x8030]
mov edx, dword [eax]
add esi, ecx
mov ecx, dword [ebp - 0x805c]
lea edx, [edx + ebx + 1]
mov dword [eax], edx
test ecx, ecx
je 0x404ed6
test byte [0x423030], 8
jne 0x404ef2
mov dword [ebp - 0x8044], ecx
movzx eax, word [esi]
mov dword [ebp - 0x806c], ecx
mov dword [ebp - 0x805c], 0
mov dword [ebp - 0x8040], 0
jmp 0x4039f9
mov dword [ebp - 0x8044], 1
movzx eax, word [esi]
mov dword [ebp - 0x806c], 1
jmp 0x4039f9
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 + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
mov ecx, dword [ebp - 0x805c]
movzx eax, word [esi]
mov dword [ebp - 0x805c], 0
mov dword [ebp - 0x8040], 0
mov dword [ebp - 0x8044], ecx
mov dword [ebp - 0x806c], ecx
jmp 0x4039f9
test byte [0x423030], 2
jne 0x404f8b
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.Found_DO__n
mov dword [esp + 8], str.WCMD_ReadAndParseLine
mov dword [esp + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x404b45
mov dword [esp + 0xc], str.Out_of_memory_n
mov dword [esp + 8], str.xalloc
mov dword [esp + 4], 0x423030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_3
jmp 0x404f55