Function at 0x4373a0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov eax, dword [sym.zsh.exe_zterm_columns]
cmp dword [esp + 0x88], 2
mov dword [esp + 0x28], eax
je 0x4378b0
mov ebp, dword [sym.zsh.exe_shout]
test ebp, ebp
je 0x4378b0
cmp dword [esp + 0x88], 1
mov eax, dword [esp + 0x80]
jle 0x437400
mov edx, dword [0x5227d4]
test edx, edx
je 0x437400
sub eax, edx
sar eax, 2
imul eax, eax, 0x38e38e39
mov dword [esp + 0x34], eax
jmp 0x437413
sub eax, dword [sym.zsh.exe_jobtab]
sar eax, 2
imul eax, eax, 0x38e38e39
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x44], 0
mov eax, dword [eax + 8]
mov edx, eax
shr edx, 5
and edx, 1
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x84]
test edx, edx
jns 0x437457
xor ecx, ecx
cmp byte [0x522d31], 0
mov dword [esp + 0x44], 1
setne cl
mov dword [esp + 0x84], ecx
test al, 0x80
je 0x43746d
mov eax, dword [esp + 0x80]
mov eax, dword [eax + 4]
test eax, eax
jne 0x437887
mov eax, dword [esp + 0x80]
mov ebx, dword [eax + 0x10]
test ebx, ebx
je 0x437a80
mov eax, dword [esp + 0x80]
mov dword [esp + 0x48], ebp
mov esi, ebx
mov dword [esp + 0x38], 0
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], 9
and ecx, 0x80
cmp dword [sym.zsh.exe_thisjob], eax
sete byte [esp + 0x40]
jmp 0x43754e
mov eax, 0xe
cmp ebp, 0x20
jg 0x4374e9
mov eax, dword [ebp*4 + sym.zsh.exe_sig_msg]
mov dword [esp + 0x3c], ecx
mov dword [esp], eax
call sub.cygwin1.dll_strlen
mov ecx, dword [esp + 0x3c]
and edi, 0x80
lea edx, [eax + 0xe]
mov edi, dword [esp + 0x24]
cmovne eax, edx
cmp edi, eax
cmovge eax, edi
mov dword [esp + 0x24], eax
cmp ebp, 2
je 0x437821
cmp ebp, 0xd
je 0x437818
mov dword [esp + 0x30], 1
cmp byte [0x522d4c], 0
mov esi, dword [esi]
je 0x43754a
cmp byte [0x522d62], 0
mov eax, 0
cmove eax, dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov eax, 1
cmove eax, dword [esp + 0x30]
mov dword [esp + 0x30], eax
test esi, esi
je 0x4375c6
test ecx, ecx
je 0x43755c
cmp dword [ebx + 0x58], 0xffffffff
je 0x4377f8
mov edi, dword [esi + 0x58]
cmp edi, 0xffffffff
je 0x4375c0
mov ebp, edi
and ebp, 0x7f
lea eax, [ebp - 1]
cmp eax, 0x7d
jbe 0x4374c8
mov eax, edi
cmp al, 0x7f
je 0x4375a0
cmp byte [0x522d4c], 0
mov esi, dword [esi]
je 0x43754a
cmp byte [0x522d62], 0
je 0x43754a
and edi, 0xff00
jmp 0x43752e
mov eax, edi
movzx edi, ah
cmp edi, 0x20
jle 0x437840
mov edx, dword [esp + 0x24]
mov eax, 0xe
cmp edx, eax
cmovge eax, edx
mov dword [esp + 0x24], eax
mov esi, dword [esi]
test esi, esi
jne 0x43754e
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x4378d7
cmp dword [esp + 0x88], 2
mov ecx, dword [sym.zsh.exe_thisjob]
je 0x437e98
mov ecx, dword [esp + 0x88]
cmp byte [0x522d1f], 0
setne al
test ecx, ecx
jne 0x437607
test al, al
je 0x437a17
cmp byte [0x522d36], 0
je 0x437951
mov edx, dword [esp + 0x80]
mov ecx, dword [sym.zsh.exe_thisjob]
mov edx, dword [edx + 8]
mov dword [esp + 0x3c], edx
and edx, 2
or edx, dword [esp + 0x30]
jne 0x43763b
cmp dword [esp + 0x34], ecx
je 0x437951
cmp dword [esp + 0x88], 3
jne 0x437ee2
cmp byte [0x522d48], 0
je 0x437e98
xor eax, eax
mov dword [esp + 0x38], 0
cmp dword [esp + 0x34], ecx
mov dword [esp + 0x30], 1
sete al
mov esi, eax
lea esi, [esi]
test ebx, ebx
je 0x437fdb
cmp esi, 1
mov ecx, dword [esp + 0x24]
mov edx, 0x4f41a7
mov dword [esp + 0x3c], 0
sbb eax, eax
mov dword [esp + 0x2c], 1
and eax, 5
cmp dword [esp + 0x34], 9
lea eax, [ecx + eax + 5]
mov dword [esp + 0x40], eax
mov eax, 0x4f41b0
cmovg eax, edx
mov dword [esp + 0x48], eax
mov eax, esi
mov esi, dword [ebx]
xor eax, 1
mov byte [esp + 0x4f], al
test byte [esp + 0x84], 3
je 0x43778d
lea esi, [esi]
nop
mov eax, dword [esp + 0x30]
test eax, eax
je 0x437ac0
cmp esi, ebx
jne 0x437716
jmp 0x437b90
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 3
mov dword [esp + 4], 1
mov dword [esp], 0x4f4219
call sub.cygwin1.dll_fwrite
mov ebx, dword [ebx]
cmp ebx, esi
je 0x43775b
lea eax, [ebx + 8]
mov dword [esp], eax
call sym.zsh.exe_dupstring
mov edi, eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym.zsh.exe_unmetafy
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], ebp
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp], edi
call sub.cygwin1.dll_fwrite
mov ecx, dword [ebx]
test ecx, ecx
jne 0x4376f0
xor ebx, ebx
cmp ebx, esi
jne 0x437716
mov dword [esp + 4], ebp
mov dword [esp], 0xa
call sub.cygwin1.dll_putc
test ebx, ebx
je 0x437db8
mov ebx, esi
mov dword [esp + 0x2c], 0
mov esi, dword [ebx]
test byte [esp + 0x84], 3
jne 0x4376d8
test esi, esi
je 0x4377de
mov eax, dword [ebx + 0x58]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x38], ebx
mov ebx, eax
jmp 0x4377b3
add edx, 3
cmp dword [esp + 0x28], edx
jl 0x437ba8
lea edi, [edi + eax + 2]
mov esi, ecx
cmp dword [esi + 0x58], ebx
jne 0x437ba8
lea eax, [esi + 8]
mov dword [esp], eax
call sub.cygwin1.dll_strlen
mov ecx, dword [esi]
lea edx, [eax + edi]
test ecx, ecx
jne 0x4377a0
mov ebx, dword [esp + 0x38]
cmp edx, dword [esp + 0x28]
jg 0x437bac
mov eax, dword [esp + 0x30]
xor esi, esi
test eax, eax
jne 0x437716
jmp 0x437bb8
mov eax, dword [esi]
test eax, eax
je 0x4378c0
mov edi, dword [esi + 0x58]
cmp edi, 0xffffffff
jne 0x437564
mov esi, eax
jmp 0x43754e
cmp ebp, 2
jne 0x43751c
cmp byte [esp + 0x40], 0
mov eax, 1
cmove eax, dword [esp + 0x38]
mov dword [esp + 0x38], eax
jmp 0x43751c
mov eax, dword [edi*4 + sym.zsh.exe_sig_msg]
mov dword [esp + 0x3c], ecx
mov dword [esp], eax
call sub.cygwin1.dll_strlen
mov ecx, dword [esp + 0x24]
cmp ecx, eax
cmovge eax, ecx
cmp edi, 0x12
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
jne 0x4375c0
cmp byte [esp + 0x40], 0
je 0x4375c0
mov dword [esp + 0x38], 1
mov esi, dword [esi]
jmp 0x43754a
lea edx, [eax + eax*8]
mov eax, dword [sym.zsh.exe_jobtab]
lea eax, [eax + edx*4]
mov ebx, dword [eax + 0x10]
test ebx, ebx
je 0x437a6e
mov dword [esp + 0x80], eax
jmp 0x43747f
call sub.cygwin1.dll___getreent
mov ebp, dword [eax + 8]
jmp 0x4373cc
mov dword [esi + 0x58], 0xffffffff
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x48]
test esi, esi
je 0x4375d6
mov eax, dword [esp + 0x80]
test byte [eax + 8], 8
je 0x43793d
cmp dword [esp + 0x88], 1
jle 0x437faf
mov eax, dword [esp + 0x80]
call fcn.004363e0
test eax, eax
jne 0x437f85
mov eax, dword [esp + 0x80]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00437320
mov eax, dword [esp + 0x34]
cmp dword [sym.zsh.exe_curjob], eax
je 0x437f68
mov eax, dword [esp + 0x34]
cmp dword [sym.zsh.exe_prevjob], eax
je 0x437f7b
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x2c]
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esp + 0x88]
test edx, edx
sete dl
test dl, al
je 0x437970
test byte [esp + 0x38], 1
jne 0x437fe8
lea esi, [esi]
test byte [esp + 0x84], 4
jne 0x437d48
cmp byte [0x522d1f], 0
je 0x4379a0
mov eax, dword [esp + 0x34]
cmp dword [sym.zsh.exe_thisjob], eax
je 0x437e46
lea esi, [esi]
nop
mov eax, dword [esp + 0x80]
mov eax, dword [eax + 8]
test al, 8
je 0x437aa0
cmp dword [esp + 0x88], 1
jle 0x437a42
mov eax, dword [esp + 0x80]
call fcn.004363e0
test eax, eax
jne 0x437f54
mov eax, dword [esp + 0x80]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00437320
mov eax, dword [esp + 0x34]
cmp dword [sym.zsh.exe_curjob], eax
je 0x437f37
mov eax, dword [esp + 0x34]
cmp dword [sym.zsh.exe_prevjob], eax
je 0x437f4a
mov eax, dword [esp + 0x2c]
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [esp + 0x84], 4
jne 0x437d48
mov eax, dword [esp + 0x80]
mov eax, dword [eax + 8]
mov ecx, eax
and ecx, 8
mov dword [esp + 0x2c], ecx
je 0x437aa0
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x34]
cmp dword [sym.zsh.exe_thisjob], eax
sete al
movzx eax, al
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x80]
mov dword [esp], eax
call fcn.004370c0
jmp 0x4379c0
mov edi, dword [eax + 0x14]
test edi, edi
je 0x43746d
mov dword [esp + 0x80], eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], 9
jmp 0x4375ca
mov ecx, dword [esp + 0x80]
and eax, 0xfffffffe
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x2c]
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x437cc8
mov ecx, dword [esp + 0x34]
mov eax, 0x2b
cmp dword [sym.zsh.exe_curjob], ecx
je 0x437af0
cmp dword [sym.zsh.exe_prevjob], ecx
mov eax, 0x2d
mov edx, 0x20
cmovne eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], str.__ld____c
mov dword [esp + 8], eax
mov dword [esp], ebp
call sub.cygwin1.dll_fprintf
test byte [esp + 0x84], 1
je 0x437c58
mov eax, dword [ebx + 4]
mov dword [esp + 4], str._ld
mov dword [esp], ebp
mov dword [esp + 8], eax
call sub.cygwin1.dll_fprintf
mov eax, dword [ebx + 0x58]
cmp eax, 0xffffffff
je 0x437c1e
mov edx, eax
and edx, 0xff
jne 0x437ce0
movzx edx, ah
test ah, 0xff
je 0x437de9
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], 0x4f41ce
mov dword [esp + 8], edx
sub eax, 7
mov dword [esp + 4], str.exit___4d_s
mov dword [esp + 0xc], eax
mov dword [esp], ebp
call sub.cygwin1.dll_fprintf
cmp esi, ebx
jne 0x437716
lea esi, [esi]
lea esi, [esi]
mov dword [esp + 4], ebp
mov dword [esp], 0xa
call sub.cygwin1.dll_putc
jmp 0x437773
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x4376e4
cmp byte [esp + 0x4f], 0
jne 0x437ac0
mov eax, dword [esp + 0x84]
test eax, eax
jne 0x437ac0
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 5
mov dword [esp + 4], 1
mov dword [esp], str.zsh:
call sub.cygwin1.dll_fwrite
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], 0x4f41ce
mov dword [esp + 4], 0x4f41cf
mov dword [esp + 8], eax
mov dword [esp], ebp
call sub.cygwin1.dll_fprintf
mov eax, dword [ebx + 0x58]
cmp eax, 0xffffffff
jne 0x437b3d
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], 0x4f41ce
test edi, edi
jne 0x437dcd
sub eax, 5
mov dword [esp + 4], str.running_s
mov dword [esp + 8], eax
mov dword [esp], ebp
call sub.cygwin1.dll_fprintf
jmp 0x4376e4
test byte [esp + 0x84], 2
je 0x437bf2
mov eax, dword [esp + 0x80]
mov edi, dword [eax]
mov dword [esp], ebp
mov dword [esp + 4], str._ld
mov dword [esp + 8], edi
call sub.cygwin1.dll_fprintf
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x3c]
lea esi, [esi]
nop
mov eax, 0x66666667
mov ecx, ebp
add ebp, 1
imul edi
mov eax, edi
sar eax, 0x1f
sar edx, 2
sub edx, eax
mov edi, edx
jne 0x437c90
lea eax, [ecx + 2]
and dword [esp + 0x84], 0xfffffffc
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
jmp 0x437b31
mov eax, dword [esp + 0x48]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.cygwin1.dll_fprintf
jmp 0x437b0c
cmp edx, 0x7f
je 0x437ec5
mov edx, eax
and edx, 0x7f
lea ecx, [edx - 1]
cmp ecx, 0x7d
ja 0x437e11
test al, 0x80
je 0x437e11
cmp edx, 0x20
jle 0x437f99
mov edx, 0xe
mov edi, 0x4f4198
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], 0x4f41ce
mov dword [esp + 8], edi
sub eax, 0xc
mov dword [esp + 4], str._s__core_dumped__s
sub eax, edx
mov dword [esp], ebp
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fprintf
jmp 0x4376e4
mov dword [esp + 8], 0x4f41ce
mov dword [esp + 4], str._pwd__s:
mov dword [esp], ebp
call sub.cygwin1.dll_fprintf
mov eax, dword [esp + 0x80]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x437e8a
mov dword [esp], eax
mov dword [esp + 4], ebp
call fcn.0047c5c0
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x4f421d
call sub.cygwin1.dll_fwrite
mov dword [esp], ebp
call sub.cygwin1.dll_fflush
mov dword [esp + 0x2c], 1
jmp 0x4379a0
mov dword [esp + 0x2c], 1
mov dword [esp], ebp
call sub.cygwin1.dll_fflush
jmp 0x437970
sub eax, 7
mov dword [esp + 4], str.continued_s
mov dword [esp + 8], eax
mov dword [esp], ebp
call sub.cygwin1.dll_fprintf
jmp 0x4376e4
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], 0x4f41ce
mov dword [esp + 4], str.done_s
sub eax, 2
mov dword [esp], ebp
mov dword [esp + 8], eax
call sub.cygwin1.dll_fprintf
jmp 0x4376e4
mov eax, 0x4f4198
cmp edx, 0x20
jg 0x437e22
mov eax, dword [edx*4 + sym.zsh.exe_sig_msg]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], 0x4f4200
mov dword [esp], ebp
add eax, 2
mov dword [esp + 8], eax
call sub.cygwin1.dll_fprintf
jmp 0x4376e4
mov eax, dword [esp + 0x80]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4379a0
mov edx, dword [sym.zsh.exe_pwd]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.cygwin1.dll_strcmp
test eax, eax
je 0x4379a0
mov dword [esp + 8], 0x4f4220
mov dword [esp + 4], str._pwd__s:
mov dword [esp], ebp
call sub.cygwin1.dll_fprintf
mov eax, dword [sym.zsh.exe_pwd]
jmp 0x437d72
cmp dword [esp + 0x34], ecx
mov dword [esp + 0x30], 0
sete al
xor edx, edx
cmp dword [esp + 0x88], 2
mov dword [esp + 0x38], 0
setne dl
and edx, eax
mov esi, edx
jmp 0x437678
movzx eax, ah
mov edx, 0x4f4198
cmp eax, 0x20
jg 0x437ed9
mov edx, dword [eax*4 + sym.zsh.exe_sig_msg]
mov dword [esp + 0xc], edx
jmp 0x437e26
xor eax, eax
mov edx, dword [esp + 0x88]
cmp dword [esp + 0x34], ecx
sete al
mov esi, eax
test edx, edx
jne 0x43800d
mov dword [esp], 3
call sym.zsh.exe_zleentry
mov eax, dword [esp + 0x38]
test eax, eax
je 0x437f20
mov dword [esp + 4], ebp
mov dword [esp], 0xa
call sub.cygwin1.dll_putc
mov eax, dword [esp + 0x80]
mov dword [esp + 0x30], 0
mov ebx, dword [eax + 0x10]
jmp 0x437678
mov eax, dword [sym.zsh.exe_prevjob]
mov dword [sym.zsh.exe_curjob], eax
mov eax, dword [esp + 0x34]
mov dword [sym.zsh.exe_prevjob], eax
call fcn.00436230
jmp 0x437945
mov eax, dword [esp + 0x80]
mov eax, dword [eax + 0x10]
call fcn.00436df0
jmp 0x4379d4
mov eax, dword [sym.zsh.exe_prevjob]
mov dword [sym.zsh.exe_curjob], eax
mov eax, dword [esp + 0x34]
mov dword [sym.zsh.exe_prevjob], eax
call fcn.00436230
jmp 0x43793d
mov eax, dword [esp + 0x80]
mov eax, dword [eax + 0x10]
call fcn.00436df0
jmp 0x437906
mov edi, dword [edx*4 + sym.zsh.exe_sig_msg]
mov dword [esp], edi
call sub.cygwin1.dll_strlen
mov edx, eax
jmp 0x437d15
mov eax, dword [esp + 0x34]
cmp dword [sym.zsh.exe_thisjob], eax
sete al
movzx eax, al
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x80]
mov dword [esp], eax
call fcn.004370c0
jmp 0x4378f2
mov eax, dword [esp + 0x38]
mov dword [esp + 0x2c], eax
jmp 0x437dc0
mov dword [esp + 4], ebp
mov dword [esp], 0xa
call sub.cygwin1.dll_putc
mov dword [esp], ebp
call sub.cygwin1.dll_fflush
mov dword [esp + 0x2c], 1
jmp 0x437970
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
jmp 0x437678