Function at 0x4012e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov eax, 0x55dc
mov ebp, esp
push edi
push esi
push ebx
call fcn.00410580
mov ebx, dword [ebp + 0xc]
and esp, 0xfffffff0
mov eax, 0x10
call fcn.00410580
call fcn.00410220
movzx eax, byte [0x429030]
cld
mov edi, str.Usage:__s__list_of_options___n
mov esi, str.Usage:__s__list_of_options___list_of_arguments__n
mov ecx, 0xc
mov edx, 0xffffffff
rep movsd dword es:[edi], dword [esi]
mov byte [0x411410], al
mov eax, 0x429031
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [0x42d028], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00403150
mov eax, dword [ebp + 8]
sub eax, 7
cmp eax, 1
jbe 0x4013f4
mov dword [esp], str.Usage_for_calibration:_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edi, str._t__s__int_frontend___int_agc___inputfile_selt___inputfile_variance___inputfile_echo___inputfile_calibration___outputfile__n
add eax, 0x40
mov dword [esp + 0xc], eax
mov eax, 0x17
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx]
mov dword [esp + 8], eax
mov eax, str._t__s__int_frontend___int_agc___inputfile_selt___inputfile_variance___inputfile_echo___outputfile__n
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], str.Usage_for_selt:_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov eax, 0x10
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
cmp dword [ebp + 8], 7
mov esi, 0x42913c
mov dword [esp + 4], esi
sete al
mov dword [ebp - 0x5598], eax
lea eax, [ebp - 0x557c]
mov dword [esp + 8], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sub.msvcrt.dll_sscanf
cmp dword [ebp - 0x557c], 0x13
jbe 0x401456
mov dword [esp], str.Illegal_frontend_type:_frontend_type_should_be__0..20__n
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov ecx, 0x37
mov dword [esp + 8], ecx
mov edx, 1
mov dword [esp + 4], edx
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
jmp 0x4013e7
lea eax, [ebp - 0x5580]
mov dword [esp + 8], eax
mov eax, 0x429178
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.msvcrt.dll_sscanf
mov eax, 0x42917b
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0x5584], eax
test eax, eax
je 0x4015c8
mov eax, 0x42917b
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0x5588], eax
test eax, eax
je 0x401599
mov esi, 0x42917b
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0x558c], eax
test eax, eax
je 0x401683
cmp dword [ebp + 8], 8
je 0x4015f7
mov eax, 0
xor edi, edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
jmp 0x401500
mov dword [ebp + edi*4 - 0x2c], 0
inc edi
cmp edi, 3
jle 0x401500
mov edx, dword [ebp + 8]
mov eax, 0x42917d
mov dword [esp + 4], eax
mov eax, dword [ebx + edx*4 - 4]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0x5590], eax
test eax, eax
je 0x4016a6
mov eax, dword [ebp - 0x557c]
lea esi, [ebp - 0x2c38]
xor edi, edi
add esi, 0x400
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x5580]
mov dword [ebp - 0x38], eax
jmp 0x40157b
mov dword [esp + 8], esi
mov ebx, 0x429178
inc edi
mov dword [esp + 4], ebx
add esi, 4
mov dword [esp], eax
call sub.msvcrt.dll_fscanf
cmp edi, 0x7ff
jg 0x4016e6
mov eax, dword [ebp - 0x5584]
test byte [eax + 0xc], 0x10
je 0x401556
mov dword [esp + 8], edi
mov edx, 0x42917f
mov dword [esp + 4], edx
jmp 0x4013d7
mov dword [esp], str.Error_opening_variance_input_file._n
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edi, 1
mov dword [esp + 4], edi
add eax, 0x40
mov dword [esp + 0xc], eax
mov eax, 0x23
mov dword [esp + 8], eax
call sub.msvcrt.dll_fwrite
jmp 0x4013e7
mov dword [esp], str.Error_opening_selt_input_file._n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov eax, 0x1f
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sub.msvcrt.dll_fwrite
jmp 0x4013e7
mov edx, 0x42917b
mov dword [esp + 4], edx
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0x5594], eax
test eax, eax
je 0x4016c9
mov edx, dword [ebp - 0x5594]
lea eax, [ebp - 0x30]
mov edi, 3
mov dword [esp + 8], eax
mov eax, 0x429178
lea esi, [ebp - 0x2c]
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fscanf
lea eax, [ebp - 0x34]
mov dword [esp + 8], eax
mov eax, 0x429178
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5594]
mov dword [esp], eax
call sub.msvcrt.dll_fscanf
mov dword [esp + 8], esi
mov edx, dword [ebp - 0x5594]
mov eax, 0x429178
mov dword [esp + 4], eax
add esi, 4
mov dword [esp], edx
call sub.msvcrt.dll_fscanf
dec edi
jns 0x40165d
jmp 0x40150e
mov dword [esp], str.Error_opening_echo_input_file.__n
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov ebx, 0x20
mov dword [esp + 8], ebx
mov ecx, 1
mov dword [esp + 4], ecx
jmp 0x401448
mov dword [esp], str.Error_opening_output_file._n
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edi, 0x1b
mov dword [esp + 8], edi
mov esi, 1
mov dword [esp + 4], esi
jmp 0x401448
mov dword [esp], str.Error_opening_calibration_file.__n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov eax, 0x21
jmp 0x4015e0
xor edi, edi
lea ebx, [ebp - 0x2c38]
jmp 0x401711
mov dword [esp + 8], ebx
mov ecx, 0x429178
inc edi
mov dword [esp + 4], ecx
add ebx, 4
mov dword [esp], edx
call sub.msvcrt.dll_fscanf
cmp edi, 0xff
jg 0x40173a
mov edx, dword [ebp - 0x5588]
test byte [edx + 0xc], 0x10
je 0x4016f0
mov dword [esp], str.Error_in_variance_input_file._n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov eax, 0x1e
jmp 0x4015e0
lea ebx, [ebp - 0x2c38]
xor edi, edi
add ebx, 0x2400
jmp 0x401771
mov dword [esp + 8], ebx
mov edx, 0x429178
inc edi
mov dword [esp + 4], edx
add ebx, 4
mov dword [esp], eax
call sub.msvcrt.dll_fscanf
cmp edi, 0x1ff
jg 0x40177f
mov eax, dword [ebp - 0x558c]
test byte [eax + 0xc], 0x10
je 0x401750
jmp 0x40171d
cmp dword [ebp - 0x5598], 1
je 0x4019d6
mov eax, 4
lea edx, [ebp - 0x2c38]
lea ebx, [ebp - 0x5508]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], edx
call fcn.0040a780
test eax, eax
je 0x4017ce
mov dword [esp + 8], eax
mov eax, str.Error__d_n
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], ebx
lea eax, [ebp - 0x5578]
xor esi, esi
mov dword [esp + 4], eax
call fcn.004023c0
mov eax, dword [ebp - 0x555c]
xor edi, edi
mov edx, dword [ebp + eax*4 - 0x5558]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + eax*4 - 0x5548]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, str._d__d__d__n
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5590]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [ebp - 0x55a0], esi
xor eax, eax
lea esi, [ebp - 0x18]
mov dword [ebp - 0x559c], eax
fld dword [esi - 0x54e8]
mov ebx, str.__.1f__.1f
mov edx, dword [ebp - 0x5590]
fstp qword [esp + 0x10]
fld dword [esi - 0x54ec]
mov dword [esp + 4], ebx
xor ebx, ebx
fstp qword [esp + 8]
mov dword [esp], edx
call sub.msvcrt.dll_fprintf
mov eax, dword [esi - 0x54f0]
mov ecx, str._.1f__.1f__.1f__.2f__d__d__d__d__d__d_n
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + edi*4 - 0x5538]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + edi*4 - 0x5548]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + edi*4 - 0x5558]
mov dword [esp + 0x30], eax
mov eax, dword [esi - 0x4ccc]
mov dword [esp + 0x2c], eax
mov eax, dword [esi - 0x4cd0]
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x5590]
fld dword [esi - 0x54d4]
fstp qword [esp + 0x20]
fld dword [esi - 0x54d8]
fstp qword [esp + 0x18]
fld dword [esi - 0x54e0]
fstp qword [esp + 0x10]
fld dword [esi - 0x54e4]
mov dword [esp + 4], ecx
mov dword [esp], eax
fstp qword [esp + 8]
call sub.msvcrt.dll_fprintf
mov eax, dword [ebp - 0x55a0]
mov edx, str._.15f
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x5590]
add eax, ebx
fld dword [ebp + eax*8 - 0x54e8]
inc ebx
mov dword [esp], edx
fstp qword [esp + 8]
call sub.msvcrt.dll_fprintf
cmp ebx, 0xff
jle 0x4018d7
xor ebx, ebx
mov eax, dword [ebp - 0x559c]
add eax, ebx
inc ebx
fld dword [ebp + eax*8 - 0x54e4]
mov eax, str._.15f
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5590]
fstp qword [esp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
cmp ebx, 0xff
jle 0x40190c
mov dword [esp], 0xa
mov edx, dword [ebp - 0x5590]
inc edi
add esi, 0x828
mov dword [esp + 4], edx
call sub.msvcrt.dll_fputc
add dword [ebp - 0x55a0], 0x105
add dword [ebp - 0x559c], 0x105
cmp edi, 3
jle 0x40182c
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov eax, dword [ebp - 0x5590]
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov edx, dword [ebp - 0x5584]
mov dword [esp], edx
call sub.msvcrt.dll_fclose
mov eax, dword [ebp - 0x5588]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov edx, dword [ebp - 0x558c]
mov dword [esp], edx
call sub.msvcrt.dll_fclose
mov eax, dword [ebp - 0x5590]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
xor eax, eax
jmp 0x4013ec
lea eax, [ebp - 0x5528]
lea edx, [ebp - 0x2c38]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0040b950
test eax, eax
je 0x401a0f
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edi, str.Error__d_n
mov dword [esp + 4], edi
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
fld dword [ebp - 0x5524]
mov esi, 0x4292ae
mov ebx, 0x4292ae
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x5590]
xor edi, edi
fstp qword [esp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
fld dword [ebp - 0x5528]
mov dword [esp + 4], ebx
mov edx, dword [ebp - 0x5590]
fstp qword [esp + 8]
mov dword [esp], edx
call sub.msvcrt.dll_fprintf
fld dword [ebp + edi*4 - 0x5520]
mov ecx, 0x4292ae
inc edi
mov dword [esp + 4], ecx
mov eax, dword [ebp - 0x5590]
fstp qword [esp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
cmp edi, 3
jle 0x401a53
jmp 0x401979