Function at 0x443800
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2cc
mov esi, dword [esp + 0x2e4]
lea eax, [esp + 0xbc]
mov ebx, dword [esp + 0x2e0]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_time]
mov ebp, dword [esp + 0xbc]
mov edx, 0x75
cmp esi, 3
ja 0x443840
movzx edx, byte [esi + str.123a]
mov ecx, dword [ebx + 0x734]
test ecx, ecx
je 0x443a90
lea esi, [esp + 0xc0]
xor eax, eax
mov ecx, pe_nt_image_headers32
fld qword [ebx + 0x378]
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x1f8]
movsx edi, dl
fstp qword [esp + 0x70]
movzx eax, byte [eax + 0x34]
mov dword [esp + 4], 4
mov dword [esp], ebx
mov dword [esp + 0x7c], eax
call sym._CI250_getRegisterValue
mov dword [esp + 0xa8], eax
mov eax, dword [ebx + 0x20c]
mov dword [esp + 0x80], eax
mov eax, dword [ebx + 0x18c]
mov dword [esp + 4], 2
mov dword [esp], ebx
mov dword [esp + 0x84], eax
call sym._channel_exists_for_lspm
test eax, eax
jne 0x443af8
fld dword [0x49da60]
fstp qword [esp + 0x88]
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._channel_exists_for_lspm
test eax, eax
jne 0x443a78
fld dword [0x49da60]
fstp qword [esp + 0xa0]
fld qword [ebx + 0x3d0]
fstp qword [esp]
call sym._p_watt_to_dbm
fstp qword [esp + 0x98]
fld dword [0x49da64]
fld qword [ebx + 0x360]
fnstcw word [esp + 0xae]
mov dword [esp + 4], 0
mov dword [esp], ebx
movzx eax, word [esp + 0xae]
fmul st(1)
fadd dword [0x49da68]
or ah, 0xc
mov word [esp + 0xac], ax
fldcw word [esp + 0xac]
fistp qword [esp + 0x90]
fldcw word [esp + 0xae]
fild qword [esp + 0x90]
fdivrp st(1)
fstp qword [esp + 0x90]
call sym._CI250_getRegisterValue
mov dword [esp], eax
call sym._adcReg2temp
fld qword [esp + 0x70]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x60], eax
mov eax, ebp
fstp qword [esp + 0x64]
fld qword [esp + 0x88]
cdq
add eax, 0x7c25b080
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x2e8]
adc edx, 0
mov dword [esp + 0x5c], edx
fstp qword [esp + 0x40]
fld qword [esp + 0xa0]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xa8]
fstp qword [esp + 0x38]
fld qword [esp + 0x98]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x80]
fstp qword [esp + 0x30]
fld qword [esp + 0x90]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x84]
fstp qword [esp + 0x28]
mov dword [esp + 0x48], eax
fstp qword [esp + 0x20]
fld qword [ebx + 0x3c8]
fstp qword [esp + 0x18]
fld qword [ebx + 0x3c0]
fstp qword [esp + 0x10]
fld qword [ebx + 0x3b8]
mov dword [esp], esi
mov dword [esp + 4], str._.4f_t_.4f_t_.4f_t_.4f_t_.3f_t_.6f_t_.6f_t_.6f_t_d_t_d_t_d_t_d_t_llu_t_d_t_f_t_c_n
fstp qword [esp + 8]
call sym.sprintf_char__char_const__..._
mov dword [esp], esi
call sym._strlen
mov edx, dword [ebx + 0x734]
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 + 0x734]
mov dword [esp], eax
call sym._fflush
mov eax, dword [ebx + 0x1cc]
mov eax, dword [eax]
test ah, 8
jne 0x443ad0
add esp, 0x2cc
pop ebx
pop esi
pop edi
pop ebp
ret
fld qword [ebx + 0x3d8]
fstp qword [esp]
call sym._p_watt_to_dbm
jmp 0x4438ef
mov eax, ebx
mov byte [esp + 0x70], dl
call sym._openExtCalLogFile.part.0
mov eax, dword [ebx + 0x734]
movzx edx, byte [esp + 0x70]
test eax, eax
jne 0x44384e
mov eax, dword [ebx + 0x18c]
mov dword [esp], str.ERROR:_d:writeLineToExtCalLogFile__:_no_file_to_write._n
mov dword [esp + 4], eax
call sym._pprintf
add esp, 0x2cc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], esi
mov eax, dword [ebx + 0x18c]
mov dword [esp], str.DEBUG:_d:written:__d_to_extCalFile_n
mov dword [esp + 4], eax
call sym._pprintf
add esp, 0x2cc
pop ebx
pop esi
pop edi
pop ebp
ret
fld qword [ebx + 0x3e0]
fstp qword [esp]
call sym._p_watt_to_dbm
fstp qword [esp + 0x88]
jmp 0x4438d1