Function at 0x41a850
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, 0xffffffff
mov eax, dword [0x4492a8]
test eax, eax
je 0x41a908
lea edx, [ebx + 1]
cmp edx, 1
ja 0x41a88b
xor ebx, ebx
cmp dword [0x44e188], 1
mov ecx, 1
mov dword [0x4492a8], ecx
je 0x41aa3d
mov eax, dword [0x44d438]
test eax, eax
je 0x41a900
mov edx, dword [0x449088]
test edx, edx
jne 0x41a986
cmp ebx, 0x7d
jg 0x41a914
cmp ebx, 0x7b
jge 0x41aa20
cmp ebx, 0x2f
jg 0x41aa00
cmp ebx, 0x28
jge 0x41aa20
cmp ebx, 0xa
je 0x41abeb
jg 0x41ab0d
test ebx, ebx
jne 0x41a950
mov dword [esp], str.End_Marker_n
call sub.msys_intl_8.dll_libintl_gettext
mov dword [esp + 4], eax
mov edx, dword [0x4490a0]
mov eax, dword [edx + 0xc]
mov dword [esp], eax
call sub.msys_intl_8.dll_libintl_fprintf
lea esi, [esi]
lea edi, [edi]
add esp, 0x14
mov eax, ebx
pop ebx
pop ebp
ret
call fcn.004120a0
mov ebx, eax
jmp 0x41a869
cmp ebx, 0x108
je 0x41aaf9
jg 0x41a9b7
cmp ebx, 0x104
je 0x41ab1b
jg 0x41aaa0
cmp ebx, 0x102
je 0x41ab62
cmp ebx, 0x103
je 0x41ac08
mov dword [esp], str.Something_Weird___tok:__d_val:__d_n
call sub.msys_intl_8.dll_libintl_gettext
mov dword [esp + 4], eax
mov edx, dword [0x44f568]
mov eax, dword [0x4490a0]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov ecx, dword [eax + 0xc]
mov dword [esp], ecx
call sub.msys_intl_8.dll_libintl_fprintf
add esp, 0x14
mov eax, ebx
pop ebx
pop ebp
ret
mov eax, dword [0x44d998]
mov ecx, 0x445579
mov edx, dword [0x4490a0]
mov dword [esp + 4], ecx
inc eax
mov dword [esp + 8], eax
mov eax, dword [edx + 0xc]
mov dword [esp], eax
call sub.msys_intl_8.dll_libintl_fprintf
xor ecx, ecx
mov dword [0x449088], ecx
jmp 0x41a8a2
cmp ebx, 0x10c
jg 0x41aa66
cmp ebx, 0x10b
jge 0x41aa75
cmp ebx, 0x109
je 0x41ac1c
cmp ebx, 0x10a
jne 0x41a950
mov ecx, dword [0x44f5a8]
mov edx, 0x44557d
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
jmp 0x41aa87
cmp ebx, 0x3f
jle 0x41aae2
lea edx, [ebx - 0x5b]
cmp edx, 3
ja 0x41a950
lea esi, [esi]
lea edi, [edi]
mov edx, dword [0x4490a0]
mov eax, dword [edx + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msys_1.0.dll_putc
add esp, 0x14
mov eax, ebx
pop ebx
pop ebp
ret
mov dword [esp], str.premature_EOF
mov ebx, 2
call sub.msys_intl_8.dll_libintl_gettext
mov dword [esp], eax
call fcn.00411f10
mov dword [0x44e188], ebx
mov ebx, 0x104
jmp 0x41a88b
lea ecx, [ebx - 0x111]
cmp ecx, 0xb
ja 0x41a950
mov eax, dword [0x44f5a8]
mov dword [esp + 8], eax
mov eax, 0x44558f
mov dword [esp + 4], eax
mov ecx, dword [0x4490a0]
mov edx, dword [ecx + 0xc]
mov dword [esp], edx
call sub.msys_intl_8.dll_libintl_fprintf
add esp, 0x14
mov eax, ebx
pop ebx
pop ebp
ret
cmp ebx, 0x106
je 0x41abbb
jg 0x41aba8
mov edx, dword [0x4490a0]
mov ecx, 2
mov eax, dword [edx + 0xc]
mov dword [esp + 8], ecx
mov edx, 1
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
mov dword [esp], 0x44558f
call sub.msys_1.0.dll_fwrite
jmp 0x41a900
cmp ebx, 0x3e
jge 0x41aa20
cmp ebx, 0x3c
jne 0x41a950
jmp 0x41aa20
mov ecx, dword [0x44f568]
mov eax, str.__d_
mov dword [esp + 8], ecx
jmp 0x41aa83
cmp ebx, 0x22
je 0x41aa20
cmp ebx, 0x24
jmp 0x41aaee
mov eax, dword [0x4490a0]
mov edx, 3
mov ecx, dword [eax + 0xc]
mov dword [esp + 8], edx
mov eax, 1
mov dword [esp + 4], eax
mov dword [esp + 0xc], ecx
mov dword [esp], 0x445597
call sub.msys_1.0.dll_fwrite
cmp dword [0x44e188], 2
jne 0x41a900
mov edx, 1
mov dword [0x449088], edx
jmp 0x41a900
mov edx, dword [0x44f568]
lea eax, [edx - 0x22]
cmp eax, 0x5b
ja case.0x41ab70.35
jmp dword [eax*4 + 0x4455b8]
cmp edx, 0x7f
ja 0x41ab8c
mov eax, dword [sym.imp.msys_1.0.dll__ctype_]
test byte [eax + edx + 1], 0x97
jne 0x41ac2a
mov dword [esp + 8], edx
mov eax, str._.3o
jmp 0x41aa83
mov dword [esp + 8], edx
mov eax, 0x4455a1
jmp 0x41aa83
mov ecx, 0x44aad8
mov eax, str._s
mov dword [esp + 8], ecx
jmp 0x41aa83
mov ecx, dword [0x4490a0]
mov eax, 2
mov edx, dword [ecx + 0xc]
mov dword [esp + 8], eax
mov ecx, 1
mov dword [esp + 4], ecx
mov dword [esp + 0xc], edx
mov dword [esp], 0x4455aa
call sub.msys_1.0.dll_fwrite
jmp 0x41a900
mov eax, dword [0x4490a0]
mov ecx, dword [eax + 0xc]
mov dword [esp], 0xa
mov dword [esp + 4], ecx
call sub.msys_1.0.dll_putc
jmp 0x41ab45
mov edx, dword [0x44f568]
mov eax, 0x4455ad
mov dword [esp + 8], edx
jmp 0x41aa83
mov eax, str.__EOF__
mov dword [esp + 4], eax
jmp 0x41a8e5
mov eax, dword [0x4490a0]
mov ecx, dword [eax + 0xc]
mov dword [esp], edx
mov dword [esp + 4], ecx
call sub.msys_1.0.dll_putc
jmp 0x41aa35