Function at 0x4abff0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [esp + 0x70]
test esi, esi
je 0x4ac8f9
mov eax, dword [0x528fd4]
mov dword [esp + 0x40], eax
cmp eax, 1
jle 0x4ac8f9
mov ebx, dword [sym.zsh.exe_amatches]
test ebx, ebx
je 0x4ac929
cmp dword [esp + 0x78], 1
mov dword [esp + 0x3c], 0
sbb ebp, ebp
mov dword [esp + 0x24], 0
and ebp, 0x820
mov dword [esp + 0x34], 0
sub ebp, 0xffffff80
mov eax, ebp
mov ebp, ebx
mov ebx, eax
mov eax, dword [ebp + 0x20]
mov esi, dword [ebp + 0x28]
mov edx, dword [0x528fdc]
mov dword [esp + 0x30], eax
test esi, esi
jne 0x4ac270
test edx, edx
jne 0x4ac144
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4ac1ca
mov esi, dword [eax]
test esi, esi
je 0x4ac1ca
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4ac409
test byte [ebp + 0xc], 2
je 0x4ac43a
mov edi, dword [esp + 0x30]
add edi, 4
jmp 0x4ac107
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], esi
call sym.zsh.exe_mb_metastrlenend
mov edx, dword [sym.zsh.exe_zterm_columns]
mov ecx, dword [0x522e34]
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
call sub.cyggcc_s_1.dll___moddi3
or edx, eax
mov eax, dword [sym.zsh.exe_shout]
je 0x4ac3a1
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sub.cygwin1.dll_putc
mov esi, dword [edi]
add edi, 4
test esi, esi
je 0x4ac11e
mov eax, dword [sym.zsh.exe_shout]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym.zsh.exe_zputs
mov eax, dword [edi]
test eax, eax
jne 0x4ac0a6
mov dword [esp + 0x34], 0
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x4ac13c
mov edi, dword [esp + 0x78]
test edi, edi
je 0x4ac144
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4ac144
mov dword [esp + 0x34], 1
mov ebp, dword [ebp + 8]
test ebp, ebp
jne 0x4ac051
mov ebx, dword [sym.zsh.exe_clearflag]
mov dword [sym.zsh.exe_lastlistlen], 0
test ebx, ebx
je 0x4ac9ce
mov eax, dword [sym.zsh.exe_nlnct]
add eax, dword [0x528fd4]
sub eax, 1
mov ebx, eax
sar ebx, 0x1f
cmp eax, dword [sym.zsh.exe_zterm_lines]
mov edi, ebx
sbb edi, dword [0x522e2c]
jl 0x4ac98c
mov eax, dword [sym.zsh.exe_shout]
mov dword [esp], 0xa
mov dword [sym.zsh.exe_clearflag], 0
mov dword [esp + 4], eax
call sub.cygwin1.dll_putc
cmp dword [sym.zsh.exe_clearflag], 1
sbb eax, eax
or eax, 1
mov dword [sym.zsh.exe_listshown], eax
mov eax, dword [esp + 0x3c]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x4ac1e8
mov edi, dword [esp + 0x78]
test edi, edi
je 0x4ac144
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4ac144
mov eax, dword [ebp + 0x50]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x58]
mov dword [esp + 0x48], eax
test byte [ebp + 0xc], 4
jne 0x4ac850
mov edi, dword [esp + 0x30]
test edi, edi
je 0x4ac586
test byte [esp + 0x34], 1
je 0x4ac586
mov eax, dword [sym.zsh.exe_shout]
mov dword [esp], 0xa
mov dword [esp + 4], eax
call sub.cygwin1.dll_putc
mov eax, dword [esp + 0x24]
add eax, 1
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x40]
cmp eax, 0xffffffff
je 0x4ac250
sub eax, 1
mov dword [esp + 0x40], eax
cmp eax, 1
jle 0x4aca3a
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x34], 0
mov dword [esp + 0x44], eax
mov eax, dword [eax]
test eax, eax
jne 0x4ac59b
jmp 0x4ac5cf
mov eax, dword [esi]
test eax, eax
je 0x4ac069
mov dword [esp + 0x28], ebp
mov edi, dword [esp + 0x24]
mov dword [esp + 0x2c], ebx
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x40]
jmp 0x4ac2ea
mov eax, dword [esi]
mov edx, 0xffffffff
mov ecx, dword [eax]
test ecx, ecx
jne 0x4ac2a0
mov edx, dword [eax + 8]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 1
mov dword [esp + 4], edx
mov eax, dword [eax + 4]
mov dword [esp], eax
call sym.zsh.exe_printfmt
add edi, eax
cmp ebx, 0xffffffff
je 0x4ac2d1
sub ebx, eax
cmp ebx, 1
jle 0x4ac35c
mov edx, dword [0x528fdc]
mov ebp, 1
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
je 0x4ac388
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4ac2f7
mov ecx, dword [eax]
test ecx, ecx
je 0x4ac2dc
test edx, edx
je 0x4ac30c
mov eax, dword [eax]
test eax, eax
setg al
movzx eax, al
add eax, 1
test eax, edx
je 0x4ac2dc
test ebp, ebp
je 0x4ac290
mov eax, dword [sym.zsh.exe_shout]
mov dword [esp], 0xa
add edi, 1
mov dword [esp + 4], eax
call sub.cygwin1.dll_putc
cmp ebx, 0xffffffff
je 0x4ac347
sub ebx, 1
cmp ebx, 1
jg 0x4ac290
mov ebx, dword [0x5215f4]
test ebx, ebx
jne 0x4ac9bd
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
test ecx, ecx
jne 0x4ac3c6
mov ebx, 0xffffffff
jmp 0x4ac29d
mov edx, dword [0x5215f4]
test edx, edx
jne 0x4ac3f8
mov eax, dword [esi + 4]
add esi, 4
mov ebx, 0xffffffff
mov ebp, 1
mov edx, dword [0x528fdc]
test eax, eax
jne 0x4ac2ea
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x24], edi
jmp 0x4ac069
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x4fce23
call sub.cygwin1.dll_fwrite
jmp 0x4ac0fe
mov dword [esp], edx
mov ebx, 0xffffffff
mov dword [esp + 0xc], 1
mov dword [esp + 8], 1
mov dword [esp + 4], 0xffffffff
call sym.zsh.exe_printfmt
mov edx, dword [0x528fdc]
add edi, eax
jmp 0x4ac2dc
mov dword [esp], 0xd
call sym.zsh.exe_tcout
jmp 0x4ac36a
mov eax, dword [sym.zsh.exe_shout]
mov dword [esp], 0xa
mov dword [esp + 4], eax
call sub.cygwin1.dll_putc
mov eax, dword [esp + 0x40]
add dword [esp + 0x24], 1
cmp eax, 0xffffffff
jne 0x4ac956
test byte [ebp + 0xc], 2
jne 0x4ac936
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x58]
mov dword [esp + 0x34], edi
test edi, edi
je 0x4ac12d
test eax, eax
je 0x4ac13c
mov dword [esp + 0x44], eax
shl eax, 2
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], ebx
mov eax, dword [ebp + 0x54]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x28], 0
lea edi, [eax - 1]
jmp 0x4ac4a3
test byte [ebp + 0xc], 0x40
mov eax, 4
cmove eax, dword [esp + 0x2c]
sub edi, 1
add dword [esp + 0x28], 4
add esi, eax
sub dword [esp + 0x34], 1
je 0x4ac575
mov edx, dword [sym.zsh.exe_shout]
cmp edi, 0xffffffff
je 0x4ac524
mov eax, esi
sub eax, dword [ebp + 0x20]
sar eax, 2
cmp eax, dword [ebp + 0x18]
jge 0x4ac524
mov dword [esp + 4], edx
mov eax, dword [esi]
mov dword [esp], eax
call sym.zsh.exe_zputs
test edi, edi
je 0x4ac480
mov eax, dword [ebp + 0x60]
test eax, eax
je 0x4ac51f
mov ebx, dword [esp + 0x28]
mov ebx, dword [eax + ebx]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [esi]
mov dword [esp], eax
call sym.zsh.exe_mb_metastrlenend
sub ebx, eax
je 0x4ac480
lea esi, [esi]
mov eax, dword [sym.zsh.exe_shout]
mov dword [esp], 0x20
mov dword [esp + 4], eax
call sub.cygwin1.dll_putc
sub ebx, 1
jne 0x4ac500
jmp 0x4ac480
mov ebx, dword [ebp + 0x5c]
jmp 0x4ac4db
mov dword [esp + 4], edx
mov dword [esp], 0xa
call sub.cygwin1.dll_putc
add dword [esp + 0x24], 1
cmp dword [esp + 0x40], 0xffffffff
je 0x4ac552
sub dword [esp + 0x40], 1
mov eax, dword [esp + 0x40]
cmp eax, 1
jle 0x4ac8d3
mov eax, 4
test byte [ebp + 0xc], 0x40
jne 0x4ac57e
add dword [esp + 0x30], eax
sub dword [esp + 0x44], 1
jne 0x4ac463
mov ebx, dword [esp + 0x38]
jmp 0x4ac11e
mov ebx, dword [esp + 0x38]
jmp 0x4ac126
mov eax, dword [ebp + 0x54]
shl eax, 2
jmp 0x4ac55d
mov eax, dword [ebp + 0x14]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [eax]
mov dword [esp + 0x4c], edi
test eax, eax
je 0x4ac5c3
mov edx, dword [esp + 0x44]
mov ecx, dword [eax + 0x30]
test ecx, ebx
jne 0x4ac5b5
mov eax, dword [eax + 0x28]
test eax, eax
je 0x4ac5bf
and ecx, 0xc0
je 0x4ac5bf
mov eax, dword [edx + 4]
add edx, 4
test eax, eax
jne 0x4ac59f
mov dword [esp + 0x44], edx
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4aca61
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x24], eax
test edx, edx
je 0x4ac126
mov esi, dword [ebp + 0x54]
mov eax, dword [esp + 0x44]
xor edi, edi
lea ecx, [esi - 1]
mov dword [esp + 0x38], esi
mov dword [esp + 0x28], ecx
cmp dword [esp + 0x38], edi
je 0x4ac71f
mov edx, dword [ebp + 0x60]
test edx, edx
je 0x4ac7d0
mov ecx, dword [edx + edi*4]
xor edx, edx
cmp dword [esp + 0x28], 0
sete dl
cmp dword [eax], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
je 0x4ac7f0
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
mov dword [esp], ebp
call dword [esp + 0x74]
add dword [esp + 0x3c], 1
mov eax, dword [esp + 0x2c]
sub dword [esp + 0x30], 1
jne 0x4ac6bf
mov eax, dword [esp + 0x28]
add edi, 1
sub esi, 2
test eax, eax
jle 0x4ac126
mov dword [esp + 0x28], ebx
mov ebx, ebp
mov ebp, edi
mov edi, dword [esp + 0x74]
jmp 0x4ac6b3
mov edx, dword [edx + ebp*4]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x24]
xor edx, edx
test esi, esi
sete dl
mov dword [esp + 8], ebp
add ebp, 1
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], ebx
call edi
lea edx, [esi - 1]
test esi, esi
jle 0x4ac7d8
mov esi, edx
mov edx, dword [ebx + 0x60]
test edx, edx
jne 0x4ac678
mov edx, dword [ebx + 0x5c]
jmp 0x4ac67b
test byte [ebp + 0xc], 0x40
mov esi, 1
cmove esi, dword [esp + 0x48]
lea esi, [esi]
mov edx, dword [eax]
test edx, edx
je 0x4ac707
lea edx, [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x4ac700
mov ecx, dword [eax + 0x30]
test ebx, ecx
jne 0x4ac6f6
mov eax, dword [eax + 0x28]
test eax, eax
je 0x4ac700
and ecx, 0xc0
je 0x4ac700
mov eax, dword [edx + 4]
add edx, 4
test eax, eax
jne 0x4ac6e0
mov eax, edx
sub esi, 1
jne 0x4ac6d0
mov esi, dword [esp + 0x28]
add edi, 1
lea ecx, [esi - 1]
mov dword [esp + 0x28], ecx
cmp dword [esp + 0x38], edi
jne 0x4ac601
mov eax, dword [sym.zsh.exe_shout]
mov dword [esp], 0xa
mov dword [esp + 4], eax
call sub.cygwin1.dll_putc
mov eax, dword [esp + 0x40]
add dword [esp + 0x24], 1
cmp eax, 0xffffffff
je 0x4ac752
sub eax, 1
mov dword [esp + 0x40], eax
cmp eax, 1
jle 0x4ac81c
mov eax, dword [esp + 0x48]
add eax, dword [esp + 0x4c]
cmp dword [esp + 0x24], eax
je 0x4ac126
test byte [ebp + 0xc], 0x40
je 0x4ac842
mov esi, dword [ebp + 0x54]
mov eax, dword [esp + 0x44]
test esi, esi
je 0x4ac7bb
mov edx, dword [eax]
test edx, edx
je 0x4ac7b7
lea edx, [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x4ac7b0
lea esi, [esi]
mov ecx, dword [eax + 0x30]
test ebx, ecx
jne 0x4ac7a6
mov edi, dword [eax + 0x28]
test edi, edi
je 0x4ac7b0
and ecx, 0xc0
je 0x4ac7b0
mov eax, dword [edx + 4]
add edx, 4
test eax, eax
jne 0x4ac790
mov eax, edx
sub esi, 1
jne 0x4ac779
mov dword [esp + 0x44], eax
mov edx, dword [esp + 0x30]
test edx, edx
jne 0x4ac5e3
jmp 0x4ac126
mov ecx, dword [ebp + 0x5c]
jmp 0x4ac60f
mov ebp, ebx
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4ac126
jmp 0x4ac71f
mov eax, dword [esp + 0x24]
mov dword [esp + 8], edi
sub esi, 2
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov dword [esp], ebp
call dword [esp + 0x74]
mov eax, dword [esp + 0x28]
test eax, eax
jg 0x4ac667
jmp 0x4ac7de
mov eax, dword [0x5215f4]
mov dword [esp + 0x40], 0xffffffff
test eax, eax
je 0x4ac752
mov dword [esp], 0xd
call sym.zsh.exe_tcout
jmp 0x4ac752
mov eax, dword [esp + 0x44]
mov esi, 1
jmp 0x4ac779
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
test eax, eax
je 0x4ac200
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x34]
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x4ac8bc
mov eax, dword [eax + 0x30]
test al, 0x40
je 0x4ac8bc
mov ecx, dword [esp + 0x78]
test ecx, ecx
jne 0x4ac87f
test al, 0xa0
jne 0x4ac8bc
test edx, edx
jne 0x4ac9e8
mov eax, dword [esp + 0x24]
add dword [esp + 0x3c], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], ebp
call dword [esp + 0x74]
mov edx, 1
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x4ac865
mov dword [esp + 0x40], edi
mov dword [esp + 0x34], edx
jmp 0x4ac200
mov eax, dword [0x5215f4]
mov dword [esp + 0x40], 0xffffffff
test eax, eax
je 0x4ac552
mov dword [esp], 0xd
call sym.zsh.exe_tcout
jmp 0x4ac552
mov ebx, dword [0x5215f4]
mov dword [esp + 0x40], 0xffffffff
test ebx, ebx
je 0x4ac015
mov dword [esp], 0xd
call sym.zsh.exe_tcout
mov ebx, dword [sym.zsh.exe_amatches]
test ebx, ebx
jne 0x4ac023
mov dword [esp + 0x3c], 0
jmp 0x4ac14f
mov eax, dword [esp + 0x30]
mov dword [esp + 0x34], 0
mov esi, dword [eax]
test esi, esi
je 0x4ac126
add eax, 4
mov edi, eax
jmp 0x4ac107
sub eax, 1
mov dword [esp + 0x40], eax
cmp eax, 1
jg 0x4ac430
mov eax, dword [0x5215f4]
mov dword [esp + 0x40], 0xffffffff
test eax, eax
je 0x4ac430
mov dword [esp], 0xd
call sym.zsh.exe_tcout
jmp 0x4ac430
mov dword [esp + 8], eax
mov dword [esp + 4], 6
mov dword [esp], 5
call sym.zsh.exe_tcmultout
mov eax, dword [0x528fd4]
mov dword [sym.zsh.exe_showinglist], 0xffffffff
mov dword [sym.zsh.exe_lastlistlen], eax
jmp 0x4ac1ad
mov dword [esp], 0xd
call sym.zsh.exe_tcout
jmp 0x4ac347
mov eax, dword [sym.zsh.exe_shout]
mov dword [esp], 0xa
mov dword [esp + 4], eax
call sub.cygwin1.dll_putc
jmp 0x4ac1ad
mov eax, dword [sym.zsh.exe_shout]
mov dword [esp], 0xa
mov dword [esp + 4], eax
call sub.cygwin1.dll_putc
add dword [esp + 0x24], 1
cmp edi, 0xffffffff
je 0x4ac887
sub edi, 1
cmp edi, 1
jg 0x4ac887
mov eax, dword [0x5215f4]
mov edi, 0xffffffff
test eax, eax
je 0x4ac887
mov dword [esp], 0xd
call sym.zsh.exe_tcout
jmp 0x4ac887
mov esi, dword [0x5215f4]
mov dword [esp + 0x40], 0xffffffff
test esi, esi
je 0x4ac250
mov dword [esp], 0xd
call sym.zsh.exe_tcout
jmp 0x4ac250
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], eax
jmp 0x4ac126