Function at 0x465eb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, 0x75
push edi
push esi
push ebx
sub esp, 0x36c
mov edi, dword [esp + 0x384]
lea eax, [esp + 0x15c]
mov ebx, dword [esp + 0x380]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_time]
mov esi, dword [esp + 0x15c]
cmp edi, 0xc
ja 0x465ef0
movzx ebp, byte [edi + str.xyzmadefghijc]
mov eax, dword [ebx + 0x90c]
test eax, eax
je 0x465f2b
mov edx, dword [ebx + 0x190]
cmp dword [ebx + 0x910], edx
je 0x465f4b
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebx + 0x1cc]
mov dword [ebx + 0x90c], 0
mov eax, dword [eax]
test ah, 0x10
jne 0x4664e0
mov dword [ebx + 0x910], 0
mov dword [esp], ebx
call sym._openExtCalLogFile
mov eax, dword [ebx + 0x90c]
test eax, eax
je 0x4661c0
mov edi, esi
fld qword [ebx + 0x4d0]
fld qword [ebx + 0x4d8]
mov ecx, pe_nt_image_headers32
sar edi, 0x1f
add esi, 0x7c25b080
fld qword [ebx + 0x4e0]
fld qword [ebx + 0x3e0]
adc edi, 0
mov dword [esp + 0xe0], esi
xor eax, eax
lea esi, [esp + 0x160]
mov dword [esp + 0xe4], edi
mov edi, esi
cmp dword [ebx + 0x194], 2
rep stosd dword es:[edi], eax
mov eax, ebp
fstp qword [esp + 0xe8]
movsx ebp, al
mov eax, dword [ebx + 0x248]
jg 0x4661f0
fstp qword [esp + 0x110]
fstp qword [esp + 0x108]
fld st(0)
fchs
fld st(0)
fabs
fld qword [0x4c7e98]
movzx eax, byte [eax + 0x28]
mov dword [esp], ebx
mov dword [esp + 4], 9
mov dword [esp + 0xf0], eax
fcompi st(1)
fstp st(0)
fcmovnbe st(0), st(1)
fstp st(1)
fstp qword [esp + 0x100]
call sym._CI250_getRegisterValue
fld dword [ebx + 0x480]
fld dword [ebx + 0x484]
fld dword [ebx + 0x488]
mov edi, dword [ebx + 0x18c]
mov ecx, dword [ebx + 0x23c]
mov edx, dword [ebx + 0x190]
mov dword [esp + 0xf8], edi
fld st(2)
fmul st(3)
fld st(2)
fmul st(3)
faddp st(1)
fld st(1)
fmul st(2)
faddp st(1)
fldz
fucompi st(1)
fld qword [esp + 0x100]
fld qword [esp + 0x108]
fld qword [esp + 0x110]
ja 0x466505
fxch st(3)
fsqrt
fxch st(3)
fstp qword [esp + 0x88]
fxch st(1)
mov edi, dword [esp + 0xf0]
fstp qword [esp + 0x80]
fstp qword [esp + 0x78]
fld qword [esp + 0xe8]
mov dword [esp + 0x6c], edi
mov edi, dword [esp + 0xe0]
mov dword [esp + 0x90], ebp
mov ebp, dword [esp + 0xe4]
fstp qword [esp + 0x70]
fstp qword [esp + 0x48]
mov dword [esp + 0x64], edi
mov edi, dword [esp + 0x388]
fstp qword [esp + 0x40]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xf8]
fstp qword [esp + 0x38]
mov dword [esp + 0x50], eax
fstp qword [esp + 0x30]
fld dword [0x4c7ea0]
mov dword [esp + 0x68], ebp
mov dword [esp + 0x60], edi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], edx
fld qword [ebx + 0x3d0]
fnstcw word [esp + 0x14e]
movzx eax, word [esp + 0x14e]
fmul st(1)
fadd dword [0x4c7ea4]
or ah, 0xc
mov word [esp + 0x14c], ax
fldcw word [esp + 0x14c]
fistp qword [esp + 0xe0]
fldcw word [esp + 0x14e]
fild qword [esp + 0xe0]
fdivrp st(1)
fstp qword [esp + 0x28]
fld dword [0x4c7ea8]
fsubr qword [ebx + 0x3c8]
fmul dword [0x4c7eac]
fadd dword [0x4c7eb0]
fstp qword [esp + 0x20]
fld qword [ebx + 0x4a0]
fstp qword [esp + 0x18]
fld qword [ebx + 0x498]
fstp qword [esp + 0x10]
fld qword [ebx + 0x490]
mov dword [esp + 4], str._.4f_t_.4f_t_.4f_t_.4f_t_.3f_t_.6f_t_.6f_t_.6f_t_.6f_t_d_t_d_t_d_t_d_t_d_t_llu_t_d_t_f_t_.3f_t_.3f_t_.3f_t_c_n
mov dword [esp], esi
fstp qword [esp + 8]
call sym.sprintf_char__char_const__..._
mov dword [esp], esi
call sym._strlen
mov edx, dword [ebx + 0x90c]
mov dword [esp], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], 1
call sym._fwrite
mov esi, eax
mov eax, dword [ebx + 0x90c]
mov dword [esp], eax
call sym._fflush
mov eax, dword [ebx + 0x1cc]
mov eax, dword [eax]
test ah, 0x10
jne 0x4664b0
add esp, 0x36c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x190]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x18c]
mov dword [esp], str.ERROR:_d_d:_writeLineToExtCalLogFile__:_no_file_to_write._n
mov dword [esp + 4], eax
call sym._pprintf
add esp, 0x36c
pop ebx
pop esi
pop edi
pop ebp
ret
fld dword [ebx + 0x47c]
movzx eax, byte [eax + 0x28]
mov dword [esp + 0x138], eax
fstp qword [esp + 0xf0]
fld dword [ebx + 0x478]
fstp qword [esp + 0xf8]
fld dword [ebx + 0x474]
fstp qword [esp + 0x100]
fld dword [ebx + 0x470]
fstp qword [esp + 0x108]
fld dword [ebx + 0x46c]
fstp qword [esp + 0x110]
fld dword [ebx + 0x468]
mov dword [esp + 4], 9
mov dword [esp], ebx
fstp qword [esp + 0x118]
fld qword [0x4c7eb8]
fmul st(3)
fld qword [str.___fp]
fmul st(3)
faddp st(1)
fld qword [0x4c7ec8]
fmul st(2)
fsubp st(1)
fstp qword [esp + 0x120]
fxch st(2)
fmul qword [0x4c7ed0]
fld qword [0x4c7ed8]
fmul st(2)
faddp st(1)
fld st(2)
fmul dword [0x4c7ee0]
faddp st(1)
fstp qword [esp + 0x128]
fmul qword [0x4c7ee8]
fxch st(1)
fmul dword [0x4c7ea4]
faddp st(1)
fstp qword [esp + 0x130]
call sym._CI250_getRegisterValue
fld dword [ebx + 0x480]
fld dword [ebx + 0x484]
fld dword [ebx + 0x488]
mov edi, dword [ebx + 0x18c]
mov ecx, dword [ebx + 0x23c]
mov edx, dword [ebx + 0x190]
mov dword [esp + 0x13c], edi
fld st(2)
fmul st(3)
fld st(2)
fmul st(3)
faddp st(1)
fld st(1)
fmul st(2)
faddp st(1)
fldz
fucompi st(1)
ja 0x46658e
fsqrt
fld qword [esp + 0xf0]
mov edi, dword [esp + 0x138]
mov dword [esp + 0xa8], ebp
mov ebp, dword [esp + 0xe4]
mov dword [esp + 0x74], eax
mov dword [esp + 0x84], edi
mov edi, dword [esp + 0xe0]
fstp qword [esp + 0xd4]
fld qword [esp + 0xf8]
mov dword [esp + 0x7c], edi
mov edi, dword [esp + 0x388]
mov dword [esp + 0x80], ebp
fstp qword [esp + 0xcc]
fld qword [esp + 0x100]
mov dword [esp + 0x78], edi
mov dword [esp + 0x70], ecx
fstp qword [esp + 0xc4]
fld qword [esp + 0x108]
mov dword [esp + 0x6c], edx
fstp qword [esp + 0xbc]
fld qword [esp + 0x110]
fstp qword [esp + 0xb4]
fld qword [esp + 0x118]
fstp qword [esp + 0xac]
fld qword [esp + 0x120]
fstp qword [esp + 0xa0]
fld qword [esp + 0x128]
fstp qword [esp + 0x98]
fld qword [esp + 0x130]
fstp qword [esp + 0x90]
fld qword [esp + 0xe8]
fstp qword [esp + 0x88]
mov eax, dword [esp + 0x13c]
fstp qword [esp + 0x60]
mov dword [esp + 0x68], eax
fstp qword [esp + 0x58]
fstp qword [esp + 0x50]
fstp qword [esp + 0x48]
fld dword [0x4c7ea0]
fld qword [ebx + 0x3d0]
fnstcw word [esp + 0x14e]
movzx eax, word [esp + 0x14e]
fmul st(1)
fadd dword [0x4c7ea4]
or ah, 0xc
mov word [esp + 0x14c], ax
fldcw word [esp + 0x14c]
fistp qword [esp + 0xe0]
fldcw word [esp + 0x14e]
fild qword [esp + 0xe0]
fdivrp st(1)
fstp qword [esp + 0x40]
fld dword [0x4c7ea8]
fsubr qword [ebx + 0x3c8]
fmul dword [0x4c7eac]
fadd dword [0x4c7eb0]
fstp qword [esp + 0x38]
fld qword [ebx + 0x4b8]
fstp qword [esp + 0x30]
fld qword [ebx + 0x4b0]
fstp qword [esp + 0x28]
fld qword [ebx + 0x4a8]
fstp qword [esp + 0x20]
fld qword [ebx + 0x4a0]
fstp qword [esp + 0x18]
fld qword [ebx + 0x498]
fstp qword [esp + 0x10]
fld qword [ebx + 0x490]
mov dword [esp + 4], str._.4f_t_.4f_t_.4f_t_.4f_t_.4f_t_.4f_t_.4f_t_.3f_t_.6f_t_.6f_t_.6f_t_.6f_t_d_t_d_t_d_t_d_t_d_t_llu_t_d_t_f_t_.3f_t_.3f_t_.3f_t_c_t_.6f_t_.6f_t_.6f_t_.6f_t_.6f_t_.6f_n
mov dword [esp], esi
fstp qword [esp + 8]
call sym.sprintf_char__char_const__..._
jmp 0x466169
mov dword [esp + 0xc], esi
mov eax, dword [ebx + 0x190]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x18c]
mov dword [esp], str.DEBUG:_d_d:written:__d_to_external_cal_file._n
mov dword [esp + 4], eax
call sym._pprintf
add esp, 0x36c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x190]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x18c]
mov dword [esp], str.DEBUG:_d_d:_closing_of_external_calibration_logging_file_successful._n
mov dword [esp + 4], eax
call sym._pprintf
jmp 0x465f2b
fstp st(6)
fstp st(3)
fstp st(3)
fxch st(3)
fstp qword [esp + 0x128]
fstp qword [esp + 0x120]
fstp qword [esp + 0x110]
fstp dword [esp]
mov dword [esp + 0x118], eax
mov dword [esp + 0x108], edx
mov dword [esp + 0x100], ecx
call dbg.sqrtf
mov eax, dword [esp + 0x118]
fld dword [ebx + 0x488]
mov edx, dword [esp + 0x108]
fld dword [ebx + 0x484]
mov ecx, dword [esp + 0x100]
fld dword [ebx + 0x480]
fld qword [esp + 0x128]
fld qword [esp + 0x120]
fld qword [esp + 0x110]
fxch st(2)
fxch st(3)
fxch st(6)
fxch st(3)
fxch st(4)
fxch st(5)
fxch st(4)
jmp 0x466056
fstp st(2)
fstp st(0)
fstp st(1)
fstp dword [esp]
mov dword [esp + 0x148], eax
mov dword [esp + 0x144], edx
mov dword [esp + 0x140], ecx
call dbg.sqrtf
mov eax, dword [esp + 0x148]
fld dword [ebx + 0x488]
mov edx, dword [esp + 0x144]
fld dword [ebx + 0x484]
mov ecx, dword [esp + 0x140]
fld dword [ebx + 0x480]
fxch st(3)
fxch st(1)
fxch st(2)
fxch st(1)
jmp 0x4662fd