Function at 0x4112f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov ecx, dword [sym.imp.cygwin1.dll___ctype_ptr__]
mov edx, dword [eax + 0x1c]
mov edi, dword [eax + 0x18]
add edi, dword [eax + 0x10]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
cmp edi, eax
jae 0x4113d2
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x14]
test ebx, ebx
jne 0x41136c
mov esi, dword [eax + 4]
test esi, esi
je 0x411610
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
add eax, esi
cmp dword [edx + 0x20], eax
ja 0x4116e0
mov edx, dword [ebp + 8]
add ebx, 1
mov eax, dword [edx]
mov dword [esp], 0x20
mov dword [esp + 4], eax
call sub.cygwin1.dll_putc_unlocked
cmp esi, ebx
ja 0x411342
mov ecx, dword [ebp + 8]
mov ebx, esi
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x14], esi
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov dword [esp + 4], 0xa
mov dword [esp], edi
sub edx, edi
mov dword [ebp - 0x1c], edx
mov dword [esp + 8], edx
call sub.cygwin1.dll_memchr
test ebx, ebx
mov dword [ebp - 0x20], eax
jns 0x41139b
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [ecx + 0x14], 0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4113e3
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
sub eax, edi
add eax, ebx
cmp eax, dword [ebp - 0x14]
jge 0x411400
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
add edi, 1
cmp edi, eax
mov dword [edx + 0x14], 0
jb 0x41131c
mov edx, dword [ebp + 8]
sub eax, dword [edx + 0x18]
mov dword [edx + 0x10], eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 8]
lea eax, [ebx + edx]
cmp eax, ecx
mov dword [ebp - 0x14], ecx
jb 0x4117d3
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x14]
mov ecx, dword [ecx + 0xc]
sub esi, 1
test ecx, ecx
mov dword [ebp - 0x24], ecx
js 0x411690
sub esi, ebx
lea ebx, [edi + esi + 1]
cmp ebx, edi
jb 0x411720
mov eax, dword [sym.imp.cygwin1.dll___ctype_ptr__]
movzx edx, byte [ebx]
mov esi, dword [eax]
movzx eax, dl
cmp byte [esi + eax + 1], 0
js 0x411720
cmp dl, 9
je 0x411720
mov edx, ebx
sub edx, 1
cmp edx, edi
jb 0x411461
movzx ecx, byte [edx]
movzx eax, cl
cmp byte [esi + eax + 1], 0
js 0x411461
cmp cl, 9
jne 0x411448
mov ecx, edx
lea eax, [edx + 1]
cmp eax, edi
mov dword [ebp - 0x18], eax
jbe 0x411634
cmp edi, edx
ja 0x411498
mov eax, dword [sym.imp.cygwin1.dll___ctype_ptr__]
mov esi, dword [eax]
sub ecx, 1
cmp ecx, edi
jb 0x411495
movzx edx, byte [ecx]
movzx eax, dl
cmp byte [esi + eax + 1], 0
js 0x41147c
cmp dl, 9
je 0x41147c
lea eax, [ecx + 1]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x1c]
lea eax, [edi + edx + 1]
cmp dword [ebp - 0x18], eax
je 0x411598
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
add esi, 1
sub eax, esi
cmp dword [ebp - 0x24], eax
jle 0x4115b0
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x18], eax
jae 0x4115aa
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
mov edx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
add edx, 1
cmp eax, edx
jg 0x41173b
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
cmp dword [ebp - 0x10], edx
ja 0x411794
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [esp], 0xa
mov dword [esp + 4], eax
call sub.cygwin1.dll_putc_unlocked
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 0x18]
sub edi, esi
add dword [ebp - 0x1c], edi
mov edi, esi
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx + 0xc]
sub eax, esi
cmp eax, edx
jge 0x4115c9
mov ecx, dword [ebp - 0x1c]
lea eax, [edi + ecx + 1]
cmp dword [ebp - 0x18], eax
je 0x41177e
xor ebx, ebx
test edx, edx
jle 0x411560
lea esi, [esi]
mov ecx, dword [ebp + 8]
add ebx, 1
mov eax, dword [ecx]
mov dword [esp], 0x20
mov dword [esp + 4], eax
call sub.cygwin1.dll_putc_unlocked
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], ebx
jg 0x411540
cmp esi, dword [ebp - 0x18]
jb 0x4115ea
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
sub edi, dword [ebp - 0x18]
lea eax, [edi + edx]
mov edx, dword [ecx + 0xc]
mov edi, esi
lea eax, [esi + eax]
mov dword [ecx + 0x1c], eax
mov ecx, 0xffffffff
mov dword [ebp - 0x28], eax
test edx, edx
cmove edx, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], edx
jmp 0x411311
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x20]
sub eax, dword [ebp - 0x10]
cmp dword [ebp - 0x24], eax
jge 0x4114bf
mov esi, dword [ebp - 0x10]
add esi, 1
mov eax, dword [ebp - 0x10]
mov byte [eax], 0xa
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx + 0xc]
sub eax, esi
cmp eax, edx
jl 0x411526
test edx, edx
jle 0x411560
xor eax, eax
nop
mov byte [esi], 0x20
mov edx, dword [ebp + 8]
add esi, 1
add eax, 1
cmp dword [edx + 0xc], eax
jg 0x4115d0
cmp esi, dword [ebp - 0x18]
jae 0x411569
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [esp], esi
lea eax, [edi + edx]
sub eax, dword [ebp - 0x18]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sub.cygwin1.dll_memmove
jmp 0x411569
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], 0xa
mov dword [esp], edi
sub ecx, edi
mov dword [ebp - 0x1c], ecx
mov dword [esp + 8], ecx
call sub.cygwin1.dll_memchr
mov dword [ebp - 0x20], eax
jmp 0x41139b
cmp dword [ebp - 0x20], ebx
jbe 0x411658
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx]
add ebx, 1
cmp dword [ebp - 0x20], ebx
jbe 0x411658
movzx edx, byte [ebx]
movzx eax, dl
cmp byte [ecx + eax + 1], 0
js 0x411658
cmp dl, 9
jne 0x41163e
cmp ebx, dword [ebp - 0x20]
je 0x411729
mov eax, dword [sym.imp.cygwin1.dll___ctype_ptr__]
mov edx, ebx
mov esi, dword [eax]
add edx, 1
movzx ecx, byte [edx]
movzx eax, cl
cmp byte [esi + eax + 1], 0
js 0x41166a
cmp cl, 9
je 0x41166a
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], edx
jmp 0x41149b
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x20], eax
jae 0x4117b9
mov edx, dword [ebp - 0x20]
sub eax, edx
mov dword [esp + 8], eax
mov eax, esi
sub eax, ebx
lea eax, [edi + eax]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.cygwin1.dll_memmove
mov ecx, dword [ebp + 8]
sub esi, dword [ecx + 0x14]
mov dword [ecx + 0x14], 0
lea eax, [edi + esi]
sub dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add dword [ecx + 0x1c], eax
mov edx, dword [ecx + 0x1c]
add edi, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
jmp 0x411311
sub dword [ebp - 0x28], edi
mov ecx, dword [ebp - 0x28]
lea ebx, [edi + esi]
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [esp + 8], ecx
call sub.cygwin1.dll_memmove
mov eax, dword [ebp + 8]
add dword [eax + 0x1c], esi
mov dword [esp], edi
mov edi, ebx
mov dword [esp + 8], esi
mov dword [esp + 4], 0x20
call sub.cygwin1.dll_memset
jmp 0x41135e
mov edx, ebx
mov ecx, ebx
jmp 0x411463
mov ecx, dword [ebp + 8]
lea edi, [ebx + 1]
mov dword [ecx + 0x14], 0
jmp 0x411311
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x28]
sub ebx, dword [ebp - 0x18]
add eax, edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp], eax
call sub.cygwin1.dll_memmove
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
mov esi, ecx
add esi, 1
lea eax, [ecx + eax + 1]
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
sub dword [ebp - 0x1c], edi
mov byte [ecx], 0xa
jmp 0x411513
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x20]
sub eax, dword [ebp - 0x18]
cmp edx, eax
jle 0x4115c9
jmp 0x411536
mov eax, dword [eax]
sub dword [ebp - 0x10], edx
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], edx
mov dword [esp + 8], eax
call sub.cygwin1.dll_fwrite
jmp 0x4114f1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
add eax, ebx
sub esi, eax
mov dword [ecx + 0x14], eax
mov eax, esi
add eax, dword [ecx + 0x1c]
mov dword [ecx + 0x1c], eax
jmp 0x4113d2
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x28]
jmp 0x4113d2