Function at 0x4d94f0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
mov eax, dword [esp + 0x90]
mov dword [esp + 0x50], eax
call sym.zsh.exe_mb_charinit
mov edx, dword [esp + 0x50]
movzx eax, byte [edx]
test al, al
je 0x4d9c49
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
test ecx, ecx
mov dword [esp + 0x3c], 0
setne byte [esp + 0x2f]
xor ebp, ebp
xor ebx, ebx
jmp 0x4d95cf
mov eax, dword [esp + 0x98]
mov edi, ebp
add ebx, 1
mov esi, ebp
sar edi, 0x1f
test eax, eax
je 0x4d9668
mov eax, dword [0x5215f8]
test eax, eax
je 0x4d9800
mov dword [esp], 0xe
call sym.zsh.exe_tcout
mov eax, dword [0x522e34]
mov ecx, dword [sym.zsh.exe_zterm_columns]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov dword [esp], esi
call sub.cyggcc_s_1.dll___divdi3
mov dword [esp], 0xa
lea edi, [ebx + eax]
mov eax, dword [sym.zsh.exe_shout]
mov ebx, edi
mov dword [esp + 4], eax
call sub.cygwin1.dll_putc
mov eax, dword [esp + 0x50]
xor ebp, ebp
lea edx, [eax + 1]
mov dword [esp + 0x50], edx
movzx eax, byte [edx]
test al, al
je 0x4d9626
mov edi, ebx
cmp al, 0x25
jne 0x4d95e0
cmp byte [esp + 0x2f], 0
jne 0x4d9698
cmp al, 0xa
je 0x4d9548
lea eax, [esp + 0x54]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym.zsh.exe_mb_metacharlenconv
mov esi, eax
mov eax, dword [esp + 0x98]
test eax, eax
jne 0x4d9728
mov eax, dword [esp + 0x54]
add dword [esp + 0x50], esi
mov dword [esp], eax
call sym.zsh.exe_zwcwidth
add ebp, eax
mov edx, dword [esp + 0x50]
movzx eax, byte [edx]
test al, al
jne 0x4d95cf
mov ebx, ebp
mov esi, ebp
mov ebp, dword [esp + 0x98]
mov eax, dword [sym.zsh.exe_zterm_columns]
mov edx, dword [0x522e34]
sar esi, 0x1f
mov dword [esp], ebx
test ebp, ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
jne 0x4d98b0
call sub.cyggcc_s_1.dll___divdi3
add eax, edi
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [sym.zsh.exe_zterm_columns]
mov edx, dword [0x522e34]
mov dword [esp + 4], edi
mov dword [esp], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call sub.cyggcc_s_1.dll___divdi3
lea edi, [ebx + eax]
mov ebx, edi
jmp 0x4d95bb
lea eax, [edx + 1]
xor esi, esi
mov dword [esp + 0x50], eax
movzx edx, byte [edx + 1]
mov ecx, edx
test byte [edx + edx + sym.zsh.exe_typtab], 1
jne 0x4d9880
test cl, cl
je 0x4d9626
lea edx, [ecx - 0x25]
cmp dl, 0x56
ja case.0x4d96c8.1
movzx edx, dl
jmp dword [edx*4 + 0x5008a8]
mov dword [esp], 0x15
call sym.zsh.exe_tcout
mov esi, dword [esp + 0x40]
test esi, esi
jne 0x4d9d77
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4d9be4
mov dword [esp], 0x14
call sym.zsh.exe_tcout
mov eax, dword [esp + 0x50]
lea esi, [esi]
nop
lea edx, [eax + 1]
lea esi, [esi]
nop
mov dword [esp + 0x50], edx
jmp 0x4d95c8
lea eax, [esi - 1]
test esi, esi
je 0x4d9799
mov dword [esp + 0x30], ebx
mov ebx, eax
jmp 0x4d975f
lea esi, [eax + 1]
mov dword [esp + 4], ecx
mov dword [esp + 0x50], esi
movsx eax, byte [eax]
mov esi, ebx
lea ebx, [esi - 1]
mov dword [esp], eax
call sub.cygwin1.dll_putc
test esi, esi
je 0x4d9795
mov eax, dword [esp + 0x50]
mov ecx, dword [sym.zsh.exe_shout]
cmp byte [eax], 0x83
jne 0x4d9740
lea edx, [eax + 2]
mov dword [esp + 4], ecx
sub esi, 2
mov dword [esp + 0x50], edx
movzx eax, byte [eax + 1]
lea ebx, [esi - 1]
xor eax, 0x20
movsx eax, al
mov dword [esp], eax
call sub.cygwin1.dll_putc
test esi, esi
jne 0x4d975f
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call sym.zsh.exe_zwcwidth
mov edx, dword [0x522e34]
add ebp, eax
mov eax, dword [sym.zsh.exe_zterm_columns]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, ebp
sar eax, 0x1f
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.cyggcc_s_1.dll___moddi3
or edx, eax
jne 0x4d961b
mov eax, dword [sym.zsh.exe_shout]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], 0x5008a3
call sub.cygwin1.dll_fwrite
jmp 0x4d961b
mov ecx, dword [sym.zsh.exe_zterm_columns]
mov edx, dword [0x522e34]
lea eax, [ecx - 1]
mov dword [esp + 8], ecx
mov dword [esp + 0x34], eax
lea eax, [ebp + 1]
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
call sub.cyggcc_s_1.dll___moddi3
mov ecx, dword [esp + 0x38]
mov edx, eax
mov eax, dword [esp + 0x34]
sub eax, edx
test eax, eax
lea ebp, [eax - 1]
jle 0x4d9589
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 ebp, 1
jae 0x4d9850
mov eax, dword [0x522e34]
mov ecx, dword [sym.zsh.exe_zterm_columns]
mov dword [esp + 0x30], eax
jmp 0x4d9589
lea edx, [esp + 0x50]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.zsh.exe_zstrtol
mov esi, eax
mov eax, dword [esp + 0x50]
movzx ecx, byte [eax]
jmp 0x4d96b5
call sub.cyggcc_s_1.dll___moddi3
or edx, eax
je 0x4d9c60
mov ecx, dword [0x5215f8]
test ecx, ecx
jne 0x4d9c38
lea eax, [esp + 0x48]
mov ebp, dword [sym.zsh.exe_zterm_columns]
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, dword [0x522e34]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], eax
mov dword [esp + 4], esi
call sub.cyggcc_s_1.dll___divmoddi4
mov edx, eax
lea eax, [ebp - 1]
sub eax, dword [esp + 0x48]
lea ebp, [eax - 1]
test eax, eax
jle 0x4d9d88
lea esi, [esi]
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 ebp, 1
jae 0x4d9910
mov eax, dword [sym.zsh.exe_zterm_columns]
mov edx, dword [0x522e34]
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call sub.cyggcc_s_1.dll___divdi3
add esp, 0x7c
pop ebx
add eax, edi
pop esi
pop edi
pop ebp
ret
xor edx, edx
cmp cl, 0x46
mov byte [esp + 0x30], cl
sete dl
cmp byte [eax + 1], 0x7b
je 0x4d9c92
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov dword [esp], 0
call sym.zsh.exe_match_colour
movzx ecx, byte [esp + 0x30]
mov esi, eax
mov eax, edx
mov edx, esi
xor dh, 8
or edx, eax
je 0x4d9707
xor edx, edx
cmp cl, 0x46
mov dword [esp + 4], eax
setne dl
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov dword [esp], esi
call sym.zsh.exe_set_colour_attribute
mov eax, dword [esp + 0x50]
lea edx, [eax + 1]
jmp 0x4d9718
mov ecx, dword [esp + 0x98]
test ecx, ecx
jne 0x4d9d07
mov dword [esp + 0x40], 1
lea edx, [eax + 1]
jmp 0x4d9718
mov ecx, dword [esp + 0x98]
test ecx, ecx
jne 0x4d9d31
mov dword [esp + 0x44], 1
lea edx, [eax + 1]
jmp 0x4d9718
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0x100
mov dword [esp + 4], 0
call sym.zsh.exe_set_colour_attribute
mov eax, dword [esp + 0x50]
lea edx, [eax + 1]
jmp 0x4d9718
mov edx, dword [esp + 0x98]
test edx, edx
jne 0x4d96cf
mov dword [esp + 0x3c], 0
lea edx, [eax + 1]
jmp 0x4d9718
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp], 0x200
mov dword [esp + 4], 0
call sym.zsh.exe_set_colour_attribute
mov eax, dword [esp + 0x50]
lea edx, [eax + 1]
jmp 0x4d9718
mov ecx, dword [esp + 0x98]
test ecx, ecx
jne 0x4d9d1c
mov dword [esp + 0x3c], 1
lea edx, [eax + 1]
jmp 0x4d9718
lea edx, [eax + 1]
add ebp, esi
mov esi, dword [esp + 0x98]
mov dword [esp + 0x50], edx
movsx eax, byte [eax + 1]
test al, al
jne 0x4d9ae6
jmp 0x4d9718
cmp al, 0x83
jne 0x4d9af4
lea eax, [edx + 1]
mov dword [esp + 0x50], eax
test esi, esi
jne 0x4d9c10
lea edx, [eax + 1]
mov dword [esp + 0x50], edx
movsx eax, byte [eax + 1]
test al, al
je 0x4d9718
cmp al, 0x25
jne 0x4d9ac0
cmp byte [edx + 1], 0x7d
je 0x4d9c8a
test esi, esi
jne 0x4d9bf0
mov eax, dword [esp + 0x50]
jmp 0x4d9ad3
mov edx, dword [esp + 0x98]
test edx, edx
jne 0x4d9d46
mov dword [esp + 0x40], 0
lea edx, [eax + 1]
jmp 0x4d9718
mov edx, dword [esp + 0x98]
test edx, edx
jne 0x4d9ce9
add ebp, 1
lea edx, [eax + 1]
jmp 0x4d9718
mov eax, dword [esp + 0x94]
lea esi, [esp + 0x5b]
mov dword [esp + 4], 0x5008a0
mov dword [esp], esi
mov dword [esp + 8], eax
call sub.cygwin1.dll_sprintf
mov eax, dword [esp + 0x98]
test eax, eax
jne 0x4d9cd3
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], esi
call sym.zsh.exe_mb_metastrlenend
add ebp, eax
mov eax, dword [esp + 0x50]
lea edx, [eax + 1]
jmp 0x4d9718
mov edx, dword [esp + 0x98]
test edx, edx
jne 0x4d9bb0
lea esi, [esi]
mov dword [esp + 0x44], 0
lea edx, [eax + 1]
jmp 0x4d9718
mov dword [esp], 0x17
call sym.zsh.exe_tcout
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4d9bd0
mov dword [esp], 0x12
call sym.zsh.exe_tcout
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4d9be4
mov dword [esp], 0x13
call sym.zsh.exe_tcout
mov eax, dword [esp + 0x50]
jmp 0x4d9ba0
mov edx, dword [sym.zsh.exe_shout]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.cygwin1.dll_putc
jmp 0x4d9afc
mov eax, dword [sym.zsh.exe_shout]
mov dword [esp + 4], eax
movzx eax, byte [edx + 1]
xor eax, 0x20
movsx eax, al
mov dword [esp], eax
call sub.cygwin1.dll_putc
mov eax, dword [esp + 0x50]
jmp 0x4d9ad3
mov dword [esp], 0xe
call sym.zsh.exe_tcout
jmp 0x4d992a
mov edx, dword [esp + 0x98]
xor eax, eax
test edx, edx
je 0x4d965d
xor edi, edi
xor ebx, ebx
xor esi, esi
mov eax, dword [sym.zsh.exe_shout]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], 0x5008a3
call sub.cygwin1.dll_fwrite
jmp 0x4d98bd
add edx, 2
jmp 0x4d9718
add eax, 2
mov dword [esp + 8], 0
mov dword [esp + 0x50], eax
lea eax, [esp + 0x50]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.zsh.exe_match_colour
movzx ecx, byte [esp + 0x30]
mov esi, eax
mov eax, edx
mov edx, dword [esp + 0x50]
cmp byte [edx], 0x7d
je 0x4d9986
sub edx, 1
mov dword [esp + 0x50], edx
jmp 0x4d9986
mov eax, dword [sym.zsh.exe_shout]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.cygwin1.dll_fputs
jmp 0x4d9b69
mov eax, dword [sym.zsh.exe_shout]
mov dword [esp], 0x25
mov dword [esp + 4], eax
call sub.cygwin1.dll_putc
mov eax, dword [esp + 0x50]
jmp 0x4d9b30
mov dword [esp], 0x13
call sym.zsh.exe_tcout
mov eax, dword [esp + 0x50]
jmp 0x4d99ce
mov dword [esp], 0x12
call sym.zsh.exe_tcout
mov eax, dword [esp + 0x50]
jmp 0x4d9a8b
mov dword [esp], 0x14
call sym.zsh.exe_tcout
mov eax, dword [esp + 0x50]
jmp 0x4d99ed
mov dword [esp], 0x16
call sym.zsh.exe_tcout
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x40], 0
test esi, esi
je 0x4d96ef
mov dword [esp], 0x12
call sym.zsh.exe_tcout
jmp 0x4d96ef
mov dword [esp], 0x13
call sym.zsh.exe_tcout
jmp 0x4d96e7
lea eax, [edi + edx]
jmp 0x4d965d