Function at 0x40f5e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
cmp byte [0x42a540], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], 0
jne 0x40f72c
mov byte [0x42a540], 0x2d
mov eax, dword [0x4267b0]
xor edi, edi
mov dword [ebp - 0x1c], 0x42a541
test eax, eax
je 0x40f6ce
xor esi, esi
jmp 0x40f63e
xor eax, eax
mov dword [ebx + 0x42a5b4], eax
add esi, 0x1c
inc edi
mov ecx, dword [esi + 0x4267b0]
test ecx, ecx
je 0x40f6ce
mov eax, dword [esi + 0x4267c8]
mov ebx, edi
shl ebx, 4
test eax, eax
jne 0x40f652
mov eax, 0x427711
mov dword [ebx + 0x42a5b0], eax
mov edx, dword [esi + 0x4267b0]
xor eax, eax
mov dword [ebx + 0x42a5b8], eax
cmp edx, 0x7f
mov dword [ebx + 0x42a5bc], edx
jg 0x40f67a
mov eax, dword [ebp - 0x1c]
mov byte [eax], dl
inc eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x4267b4]
cmp ecx, 5
ja 0x40f62c
mov eax, 1
shl eax, cl
test al, 0x23
jne 0x40f624
test al, 0x1c
je 0x40f62c
cmp edx, 0x7f
jg 0x40f9b2
mov ecx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x4267c0]
mov byte [ecx], 0x3a
inc ecx
test eax, eax
mov dword [ebp - 0x1c], ecx
je 0x40f9c0
cmp edx, 0x7f
jg 0x40f6c4
mov eax, dword [ebp - 0x1c]
mov byte [eax], 0x3a
inc eax
mov dword [ebp - 0x1c], eax
mov eax, 2
jmp 0x40f626
mov edx, dword [ebp - 0x1c]
xor ebx, ebx
mov byte [edx], 0
lea esi, [esi]
lea edi, [edi]
mov edx, ebx
mov ecx, edi
shl edx, 4
mov eax, dword [edx + 0x423820]
shl ecx, 4
inc ebx
inc edi
cmp ebx, 8
mov dword [ecx + 0x42a5b0], eax
mov eax, dword [edx + 0x423824]
mov dword [ecx + 0x42a5b4], eax
mov eax, dword [edx + 0x423828]
mov dword [ecx + 0x42a5b8], eax
mov eax, dword [edx + 0x42382c]
mov dword [ecx + 0x42a5bc], eax
jbe 0x40f6e0
shl edi, 4
xor edx, edx
mov dword [edi + 0x42a5b0], edx
xor eax, eax
cmp dword [ebp + 8], 0
sete al
mov dword [0x423674], eax
xor eax, eax
mov dword [0x423678], eax
mov eax, dword [ebp - 0x10]
test eax, eax
jle 0x40f766
jmp 0x40f8af
mov ecx, dword [ebp - 0x14]
lea eax, [edx + 1]
mov dword [0x423678], eax
mov eax, dword [ecx + edx*4]
mov edx, dword [ebp + 8]
call fcn.0040ea00
mov edx, dword [0x423678]
cmp edx, dword [ebp - 0x10]
jl 0x40f750
mov edx, dword [ebp + 8]
test edx, edx
jne 0x40f947
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40f790
mov eax, dword [0x42a480]
test eax, eax
je 0x40f947
mov eax, dword [0x42a3d8]
test eax, eax
jne 0x40f9ca
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40f9ff
mov esi, dword [sym.imp.msvcrt.dll__iob]
add esi, 0x40
mov dword [esp], esi
mov eax, dword [0x42afd0]
mov ebx, 0x4274d0
mov dword [esp + 8], eax
mov eax, str.Usage:__s__options___target__..._n
mov dword [esp + 4], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [str.Options:_n]
jmp 0x40f7e8
mov dword [esp + 4], esi
add ebx, 4
mov dword [esp], eax
call sub.msvcrt.dll_fputs
mov eax, dword [ebx]
test eax, eax
jne 0x40f7d7
mov eax, dword [0x42a8f0]
test eax, eax
je 0x40f7fe
cmp byte [eax], 0
jne 0x40fa0d
mov dword [esp], esi
mov eax, dword [str.i386_pc_mingw32]
mov dword [esp + 8], eax
mov eax, str._nThis_program_built_for__s_n
mov dword [esp + 4], eax
call sub.msvcrt.dll_fprintf
mov dword [esp + 0xc], esi
mov ebx, 1
mov esi, 0x22
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], str.Report_bugs_to__bug_make_gnu.org__n
call sub.msvcrt.dll_fwrite
cmp dword [ebp - 0x18], 1
sbb eax, eax
not eax
and eax, 2
mov dword [esp], eax
call fcn.0040f530
test edi, edi
je case.0x40f940.5
mov eax, dword [0x42a304]
test eax, eax
jne 0x40fb1c
mov esi, dword [ebx + 0x10]
mov dword [0x42a304], esi
mov eax, dword [ebx + 8]
mov esi, dword [eax]
test esi, esi
je 0x40fb8b
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
lea eax, [ecx - 1]
cmp edx, eax
je 0x40fb59
mov ecx, dword [esi]
mov eax, dword [0x42a304]
mov dword [ecx + edx*4], eax
lea eax, [edx + 1]
mov dword [esi + 4], eax
mov dword [ecx + eax*4], 0
lea esi, [esi]
mov edx, dword [0x423678]
cmp edx, dword [ebp - 0x10]
jge 0x40f76c
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov dword [esp + 0x10], eax
mov eax, 0x42a5b0
mov dword [esp + 0xc], eax
mov eax, 0x42a540
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0040a810
cmp eax, 0xffffffff
je 0x40f766
cmp eax, 1
je 0x40f9d4
cmp eax, 0x3f
je 0x40f997
mov edx, dword [0x4267b0]
mov ebx, 0x4267b0
test edx, edx
je case.0x40f940.5
cmp edx, eax
je 0x40f91d
mov esi, esi
lea edi, [edi]
add ebx, 0x1c
mov edx, dword [ebx]
test edx, edx
je case.0x40f940.5
cmp edx, eax
jne 0x40f910
mov eax, dword [ebp + 8]
xor edi, edi
test eax, eax
je 0x40f9f5
test byte [ebx + 0xc], 1
jne 0x40f9f5
mov ecx, dword [ebx + 4]
cmp ecx, 5
ja case.default.0x40f940
jmp dword [ecx*4 + 0x427b7c]
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call sub.msvcrt.dll_atoi
mov edx, dword [0x42a304]
mov esi, eax
jmp 0x40f962
inc edx
movzx ecx, byte [edx]
movsx eax, cl
sub eax, 0x30
cmp eax, 9
jbe 0x40f961
test esi, esi
jle 0x40f97c
test cl, cl
je 0x40fb7c
mov eax, dword [ebx]
mov ecx, str.the____c_option_requires_a_positive_integral_argument
mov dword [esp + 4], ecx
mov dword [esp], 0
mov dword [esp + 8], eax
call fcn.00411a10
mov dword [ebp - 0x18], 1
mov edx, dword [0x423678]
cmp edx, dword [ebp - 0x10]
jl 0x40f8af
jmp 0x40f76c
mov eax, dword [esi + 0x4267c0]
test eax, eax
jne 0x40f6b5
mov eax, 1
jmp 0x40f626
call fcn.0040e8d0
jmp 0x40f79d
mov edx, dword [ebp + 8]
mov eax, dword [0x42a304]
call fcn.0040ea00
mov edx, dword [0x423678]
cmp edx, dword [ebp - 0x10]
jl 0x40f8af
jmp 0x40f76c
mov edi, 1
jmp 0x40f934
mov esi, dword [sym.imp.msvcrt.dll__iob]
add esi, 0x20
jmp 0x40f7b1
mov dword [esp + 0xc], eax
mov eax, dword [str.i386_pc_mingw32]
mov edi, str._nThis_program_built_for__s___s__n
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp], esi
call sub.msvcrt.dll_fprintf
jmp 0x40f818
mov esi, dword [0x42a304]
test esi, esi
jne 0x40fa7c
mov eax, dword [0x423678]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
cmp eax, edx
jge 0x40fa7c
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + eax*4]
mov dword [ebp - 0x24], ecx
movzx edx, byte [ecx]
mov al, dl
sub al, 0x30
cmp al, 9
setbe cl
cmp dl, 0x2e
sete al
or eax, ecx
test al, 1
je 0x40fa7c
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
inc eax
mov dword [0x423678], eax
mov dword [0x42a304], esi
test edi, edi
je case.0x40f940.5
test esi, esi
mov edi, dword [ebx + 8]
jne 0x40fb4a
mov eax, dword [ebx + 0x10]
fld qword [eax]
fstp qword [edi]
jmp case.0x40f940.5
mov esi, dword [0x42a304]
test esi, esi
jne 0x40fae4
mov edx, dword [0x423678]
cmp dword [ebp - 0x10], edx
jle 0x40fae4
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + edx*4]
jmp 0x40fab9
inc ecx
movzx eax, byte [ecx]
mov byte [ebp - 0x25], al
movsx eax, al
sub eax, 0x30
cmp eax, 9
jbe 0x40fab8
cmp byte [ebp - 0x25], 0
jne 0x40fae4
mov ecx, dword [ebp - 0x14]
lea eax, [edx + 1]
mov dword [0x423678], eax
mov esi, dword [ecx + edx*4]
mov dword [0x42a304], esi
test edi, edi
je case.0x40f940.5
test esi, esi
jne 0x40f94f
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 8]
mov edx, dword [edx]
mov dword [eax], edx
jmp case.0x40f940.5
test edi, edi
je case.0x40f940.5
mov eax, dword [ebx + 8]
xor edx, edx
test ecx, ecx
sete dl
mov dword [eax], edx
jmp case.0x40f940.5
cmp byte [eax], 0
jne 0x40f867
mov dword [esp + 8], edx
mov esi, str.the____c_option_requires_a_non_empty_string_argument
mov dword [esp + 4], esi
mov dword [esp], 0
call fcn.00411a10
mov dword [ebp - 0x18], 1
jmp 0x40f867
mov dword [esp], esi
call sub.msvcrt.dll_atof
fstp qword [edi]
jmp case.0x40f940.5
lea eax, [ecx + 5]
mov dword [esi + 8], eax
shl eax, 2
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call fcn.00411e00
mov dword [esi], eax
mov edx, dword [esi + 4]
mov ecx, eax
jmp 0x40f887
mov eax, dword [ebx + 8]
mov dword [eax], esi
jmp case.0x40f940.5
call sub.msvcrt.dll_abort
mov dword [esp], 0xc
call fcn.00411c90
mov dword [eax + 8], 5
mov esi, eax
mov dword [eax + 4], 0
mov dword [esp], 0x14
call fcn.00411c90
mov dword [esi], eax
mov ecx, eax
mov edx, dword [esi + 4]
mov eax, dword [ebx + 8]
mov dword [eax], esi
jmp 0x40f887