Function at 0x465bc0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x45c
mov ebx, dword [esp + 0x470]
mov ecx, dword [ebx + 0x90c]
test ecx, ecx
je 0x465bf0
add esp, 0x45c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebx + 0x190]
test edx, edx
jle 0x465bdb
lea edi, [esp + 0x2c]
mov esi, dword [ebx + 0x914]
lea ebp, [esp + 0x30]
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll_time]
mov dword [esp], edi
lea edi, [esp + 0x150]
call dword [sym.imp.msvcrt.dll_localtime]
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x10], edx
mov ecx, dword [eax + 0x10]
lea edx, [ecx + 1]
mov dword [esp + 0xc], edx
mov eax, dword [eax + 0x14]
mov dword [esp + 4], str._d_.2d_.2d__.2d_.2d_.2d
add eax, 0x76c
mov dword [esp], ebp
mov dword [esp + 8], eax
call sym.sprintf_char__char_const__..._
mov dword [esp + 8], esi
lea esi, [esp + 0x250]
mov dword [esp + 4], 0x4c7ac0
mov dword [esp], edi
call sym.sprintf_char__char_const__..._
mov dword [esp + 0x18], ebp
mov eax, dword [ebx + 0x190]
mov dword [esp + 0x10], str.extCalLog
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0x5c
mov dword [esp + 8], edi
mov dword [esp + 4], str._s_c_s__d__s.csv
mov dword [esp], esi
call sym.sprintf_char__char_const__..._
mov dword [esp], edi
call dbg.opendir
test eax, eax
je 0x465df0
mov eax, dword [ebx + 0x1cc]
mov eax, dword [eax]
test ah, 0x10
jne 0x465dc0
mov dword [esp + 4], 0x4c7b45
mov dword [esp], esi
call sym._fopen
mov dword [ebx + 0x90c], eax
test eax, eax
je 0x465e08
mov eax, dword [ebx + 0x1cc]
mov eax, dword [eax]
test ah, 0x10
jne 0x465d90
lea esi, [esp + 0x50]
xor eax, eax
mov ecx, 0x40
cmp dword [ebx + 0x194], 2
mov edi, esi
rep stosd dword es:[edi], eax
jle 0x465d78
mov dword [esp + 4], str.RSSIxa_tRSSIya_tRSSIza_tRSSIxb_tRSSIyb_tRSSIzb_tT_tf_tEx_tEy_tEz_tEmag_tSerNo_CI_tSerNo_FP_tMode_tFW_CI_tFW_Server_tt_tcal:ext_tfLPE_tACCx_tACCy_tACCz_txyzma_tExa_tEya_tEza_tExb_tEyb_tEzb_n
mov dword [esp], esi
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 eax, dword [ebx + 0x90c]
mov dword [esp], eax
call sym._fflush
mov eax, dword [ebx + 0x190]
mov dword [ebx + 0x910], eax
add esp, 0x45c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.RSSIx_tRSSIy_tRSSIz_tT_tf_tEx_tEy_tEz_tEmag_tSerNo_CI_tSerNo_FP_tMode_tFW_CI_tFW_Server_tt_tcal:ext_tfLPE_tACCx_tACCy_tACCz_txyzma_n
mov dword [esp], esi
call sym.sprintf_char__char_const__..._
jmp 0x465d27
mov eax, dword [ebx + 0x190]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x18c]
mov dword [esp], str.DEBUG:_d_d:_opening_of_external_calibration_logging_file_successful._n
mov dword [esp + 4], eax
call sym._pprintf
mov eax, dword [ebx + 0x90c]
test eax, eax
je 0x465d5b
jmp 0x465cff
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:_openExtCalLogFile:_opening_external_log_file__s._n
mov dword [esp + 4], eax
call sym._pprintf
jmp 0x465cd0
mov dword [esp + 4], edi
mov dword [esp], str.ERROR:Cannot_open_directory__s_n
call sym._pprintf
jmp 0x465bdb
mov dword [esp + 0xc], esi
mov eax, dword [ebx + 0x190]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x18c]
mov dword [esp], str.ERROR:_d_d:_failed_to_open_external_calibration_logging_file__s._n
mov dword [esp + 4], eax
call sym._pprintf
jmp 0x465bdb