Function at 0x40a670
Capabilities:
Encrypt data using speck

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xac
mov ebp, dword [esp + 0xc0]
fld qword [ebp + 0x378]
fabs
fstp qword [esp + 0x38]
fld qword [ebp + 0x388]
fabs
mov eax, dword [ebp + 0x1a8]
fstp qword [esp + 0x40]
cmp dword [ebp + 0x1a4], eax
je 0x40b290
lea eax, [ebp + 0x2a8]
xor ebx, ebx
mov dword [esp + 0x24], eax
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x28], eax
call eax
mov eax, dword [ebp + 0x2a4]
sub esp, 4
movzx esi, byte [eax + 0x2ad]
mov ecx, esi
test cl, cl
je 0x40a70a
movzx edx, byte [eax + 0x2a5]
movzx ecx, byte [eax + 0x2a9]
movzx ebx, byte [ebp + edx + 0x221]
mov edx, 1
sar ebx, cl
mov ecx, esi
shl edx, cl
movzx ecx, byte [eax + 0x2b1]
sub edx, 1
and ebx, edx
shl ebx, cl
movzx esi, byte [eax + 0x2ae]
mov ecx, esi
test cl, cl
je 0x40a748
movzx edx, byte [eax + 0x2a6]
movzx ecx, byte [eax + 0x2aa]
movzx edi, byte [ebp + edx + 0x221]
mov edx, 1
sar edi, cl
mov ecx, esi
shl edx, cl
movzx ecx, byte [eax + 0x2b2]
sub edx, 1
and edi, edx
shl edi, cl
add ebx, edi
movzx esi, byte [eax + 0x2af]
mov ecx, esi
test cl, cl
je 0x40a786
movzx edx, byte [eax + 0x2a7]
movzx ecx, byte [eax + 0x2ab]
movzx edi, byte [ebp + edx + 0x221]
mov edx, 1
sar edi, cl
mov ecx, esi
shl edx, cl
movzx ecx, byte [eax + 0x2b3]
sub edx, 1
and edi, edx
shl edi, cl
add ebx, edi
movzx esi, byte [eax + 0x2b0]
mov ecx, esi
test cl, cl
jne 0x40abc8
mov eax, dword [esp + 0x24]
add ebx, 1
mov edi, ebp
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x24], eax
call eax
mov eax, 0x1e8480
cdq
sub esp, 4
idiv ebx
mov esi, dword [esp + 0x28]
mov dword [ebp + 0x19c], eax
lea eax, [ebp + 0x348]
mov dword [esp + 0x2c], eax
mov dword [esp], eax
call esi
lea eax, [ebp + 0x3ec]
sub esp, 4
mov dword [esp + 0x48], eax
mov dword [esp], eax
call esi
mov eax, dword [ebp + 0x1a8]
sub esp, 4
cmp dword [ebp + 0x1a4], eax
je 0x40a8c9
lea esi, [esi]
mov edx, dword [edi + 0x1a0]
movzx ebx, word [edx + eax]
test bx, bx
js 0x40a8f0
movzx eax, word [edi + 0x342]
mov edx, ebx
and dx, 0x3fff
add eax, 1
and bh, 0x40
je 0x40a9e0
mov byte [edi + 0x1f4], 2
mov word [edi + 0x39e], dx
mov word [edi + 0x342], ax
mov edx, dword [edi + 0x214]
mov ecx, 2
test edx, edx
js 0x40a888
and edx, 3
cmp edx, 1
jne 0x40ac00
fld qword [0x498a38]
fld qword [edi + 0x360]
mov edx, dword [edi + 0x21c]
fcompi st(1)
fstp st(0)
jbe 0x40b230
cmp edx, 1
je 0x40b239
lea esi, [esi]
add ecx, 1
mov edx, 0xaaaaaaab
mov eax, ecx
mul edx
mov eax, edx
and edx, 0x1fe
shr eax, 1
add edx, eax
sub ecx, edx
mov byte [edi + 0x1f4], cl
mov eax, dword [edi + 0x1a8]
add eax, 2
and eax, dword [edi + 0x1b0]
mov dword [edi + 0x1a8], eax
cmp dword [edi + 0x1a4], eax
jne 0x40a800
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x24]
mov dword [esp], eax
call esi
sub esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call esi
sub esp, 4
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
shr ax, 0xb
cmp ax, 0x1b
je 0x40aa08
mov eax, dword [edi + 0x1fc]
mov edx, dword [edi + 0x200]
mov esi, ebx
and si, 0xfff
mov word [eax + edx*2], si
mov eax, ebx
shr ax, 0xc
and eax, 7
cmp ax, 5
jne 0x40a8a8
and ebx, 3
cmp dword [edi + 0x214], ebx
jne 0x40b058
mov eax, ebx
shr si, 2
and eax, 3
and esi, 3
cmp eax, 1
mov eax, 0xffffffff
cmovne esi, eax
mov eax, dword [edi + 0x210]
mov dword [edi + 0x21c], esi
cmp dword [edi + 0x218], ebx
je 0x40b0c8
cmp eax, 1
je 0x40b4c0
mov dword [edi + 0x20c], ebx
mov eax, dword [edi + 0x1f8]
xor ebp, ebp
movzx eax, byte [eax + 0x34]
mov dword [esp + 0x18], eax
fld qword [edi + 0x368]
fstp qword [esp + 0x10]
fld qword [edi + 0x360]
mov dword [esp + 4], ebx
mov dword [esp], edi
fstp qword [esp + 8]
call sym._updateCorrectionData
movzx eax, word [edi + 0x342]
mov word [edi + 0x342], bp
mov word [edi + 0x340], ax
mov eax, dword [edi + 0x200]
add eax, 1
and eax, dword [edi + 0x208]
mov dword [edi + 0x200], eax
jmp 0x40a8a8
movzx ecx, byte [edi + 0x1f4]
mov word [edi + ecx*2 + 0x39a], dx
mov word [edi + 0x342], ax
cmp cl, 2
jne 0x40a888
jmp 0x40a842
mov eax, dword [edi + 0x1cc]
movzx esi, bl
mov eax, dword [eax]
test ah, 1
jne 0x40b208
mov eax, dword [edi + 0x2e8]
test eax, eax
jne 0x40ab60
test si, si
jne 0x40ab6c
cmp dword [edi + 0x344], 2
je 0x40b698
cmp eax, 1
jne 0x40aba3
cmp dword [edi + 0x344], 2
je 0x40b3f8
lea esi, [esi]
lea esi, [esi]
cmp dword [edi + 0x410], 2
je 0x40aa98
test si, si
je 0x40aa98
and ebx, 0xfc
jne 0x40aa98
cmp si, 1
je 0x40bb5b
cmp si, 2
je 0x40bf9a
cmp si, 3
je 0x40bc5c
lea esi, [esi]
mov eax, dword [edi + 0x724]
cmp byte [eax + 1], 1
jne 0x40a8a8
cmp si, 4
je 0x40b470
cmp si, 5
jne 0x40a8a8
cmp byte [eax + 0x1cc], 2
jne 0x40a8a8
mov ecx, dword [eax + 0x1e0]
mov ebx, dword [eax + 0x1e4]
mov esi, ecx
mov edx, ebx
or esi, ebx
je 0x40bc00
mov esi, ecx
xor esi, 1
or edx, esi
jne 0x40c19c
mov dword [eax + 0x1e0], 2
mov esi, dword [eax + 0xc0]
mov dword [eax + 0x1e4], 0
lea edx, [esi - 1]
and edx, dword [eax + 0xc8]
mov dword [eax + 0xd0], edx
mov edx, dword [eax + 0x1d8]
cmp edx, 0x400
je 0x40c540
cmp edx, 0x401
je 0x40c52e
cmp edx, 0x3ff
je 0x40c51c
mov dword [eax + 0x1d8], 0
mov dword [eax + 0xcc], 0
jmp 0x40a8a8
lea edx, [eax - 2]
cmp edx, 2
jbe 0x40aa2a
cmp si, 6
jne 0x40b020
mov eax, dword [edi + 0x1cc]
mov eax, dword [eax]
test ah, 1
jne 0x40b8b8
cmp dword [edi + 0x344], 1
je 0x40ba00
mov eax, dword [edi + 0x2e8]
cmp eax, 1
je 0x40aa60
cmp eax, 4
jle 0x40aa60
cmp si, 5
je 0x40aa49
test si, si
je 0x40aa49
jmp 0x40aa60
movzx edx, byte [eax + 0x2a8]
movzx ecx, byte [eax + 0x2ac]
movzx edi, byte [ebp + edx + 0x221]
mov edx, 1
sar edi, cl
mov ecx, esi
shl edx, cl
movzx ecx, byte [eax + 0x2b4]
sub edx, 1
and edi, edx
shl edi, cl
add ebx, edi
jmp 0x40a797
movzx edx, word [edi + 0x39a]
mov ebx, dword [edi + 0x408]
add dword [edi + 0x2d0], 1
mov dword [esp + 0x30], edx
mov eax, edx
fild dword [esp + 0x30]
adc dword [edi + 0x2d4], 0
test ebx, ebx
je 0x40b390
fst qword [edi + 0x3a0]
cmp ax, 0x3fff
ja 0x40b730
mov edx, dword [edi + 0x1e0]
mov ecx, dword [edi + 0x1d0]
mov ebp, dword [edi + 0x1f8]
lea esi, [edx + edx]
mov word [ecx + edx*2], ax
mov ecx, dword [edi + 0x404]
mov dword [esp + 0x4c], esi
mov esi, dword [ebp + 0x14]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x50], esi
test esi, esi
je 0x40b0e8
mov esi, dword [ebp + 0x70]
test esi, esi
jle 0x40b0e8
mov esi, dword [ebp + 0x74]
mov esi, dword [esi]
mov ecx, dword [esi]
test ecx, ecx
je 0x40b0e8
movzx eax, ax
fld qword [esi + eax*8 + 0x28]
mov eax, dword [edi + 0x40c]
test eax, eax
jne 0x40b0de
fld qword [0x4989d0]
fld qword [esp + 0x38]
fcompi st(1)
fstp st(0)
jbe 0x40b0de
fld qword [edi + 0x380]
mov eax, dword [esp + 0x30]
fld st(0)
fsubr dword [0x4989fc]
fld qword [edi + 0x3d0]
fmul st(2)
fxch st(3)
fmul st(1)
faddp st(3)
fxch st(2)
fstp qword [edi + 0x3d0]
test eax, eax
je 0x40b118
fstp st(0)
fstp st(0)
lea esi, [esi]
movzx esi, word [edi + 0x39c]
fstp qword [edi + 0x3b8]
mov dword [esp + 0x70], esi
mov eax, esi
fild dword [esp + 0x70]
test ebx, ebx
je 0x40b2c0
fst qword [edi + 0x3a8]
cmp ax, 0x3fff
ja 0x40b7a0
mov ecx, dword [esp + 0x4c]
mov esi, dword [edi + 0x1d4]
mov word [esi + ecx], ax
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x40b130
mov esi, dword [ebp + 0x70]
test esi, esi
jle 0x40b130
mov esi, dword [ebp + 0x74]
mov esi, dword [esi]
mov ecx, dword [esi]
test ecx, ecx
je 0x40b130
movzx eax, ax
fld qword [esi + eax*8 + 0x20028]
mov eax, dword [edi + 0x40c]
test eax, eax
jne 0x40b129
fld qword [0x4989d0]
fld qword [esp + 0x38]
fcompi st(1)
fstp st(0)
jbe 0x40b129
fld qword [edi + 0x380]
mov eax, dword [esp + 0x30]
fld st(0)
fsubr dword [0x4989fc]
fld qword [edi + 0x3d8]
fmul st(2)
fxch st(3)
fmul st(1)
faddp st(3)
fxch st(2)
fstp qword [edi + 0x3d8]
test eax, eax
je 0x40b160
fstp st(0)
fstp st(0)
lea esi, [esi]
nop
movzx esi, word [edi + 0x39e]
fstp qword [edi + 0x3c0]
mov dword [esp + 0x50], esi
mov eax, esi
fild dword [esp + 0x50]
test ebx, ebx
je 0x40b328
mov dword [edi + 0x408], 0
fst qword [edi + 0x3b0]
cmp ax, 0x3fff
ja 0x40b830
mov ecx, dword [esp + 0x4c]
mov esi, dword [edi + 0x1d8]
mov word [esi + ecx], ax
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x40b188
mov ebx, dword [ebp + 0x70]
test ebx, ebx
jle 0x40b188
mov ebx, dword [ebp + 0x74]
mov ebx, dword [ebx]
mov ecx, dword [ebx]
test ecx, ecx
je 0x40b188
movzx eax, ax
fld qword [ebx + eax*8 + 0x40028]
mov eax, dword [edi + 0x40c]
test eax, eax
jne 0x40b171
fld qword [0x4989d0]
fld qword [esp + 0x38]
fcompi st(1)
fstp st(0)
jbe 0x40b171
fld qword [edi + 0x380]
mov eax, dword [esp + 0x30]
fld st(0)
fsubr dword [0x4989fc]
fld qword [edi + 0x3e0]
fmul st(2)
fxch st(3)
fmul st(1)
faddp st(3)
fxch st(2)
fstp qword [edi + 0x3e0]
test eax, eax
je 0x40b1b8
fstp st(0)
fstp st(0)
lea esi, [esi]
mov dword [edi + 0x404], 0
mov eax, dword [edi + 0x200]
mov ecx, dword [edi + 0x1dc]
fstp qword [edi + 0x3c8]
sub eax, 1
and eax, dword [edi + 0x208]
cmp dword [edi + 0x344], 3
mov dword [ecx + edx*4], eax
je 0x40b5a0
cmp dword [edi + 0x414], 1
je 0x40b4e0
mov edx, dword [edi + 0x724]
mov eax, dword [edi + 0x1e0]
cmp byte [edx + 1], 0
mov dword [esp + 0x30], eax
je 0x40afe0
cmp byte [edx + 0x1cc], 0
jne 0x40b8d8
lea esi, [eax + eax]
mov ebx, dword [edi + 0x1d0]
mov ecx, dword [edx + 0xc0]
mov eax, esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x50], eax
movzx ebx, word [ebx + esi*2]
mov esi, dword [edx + 0xa0]
mov word [esi + ecx*2], bx
mov esi, dword [ebp + 0x74]
mov esi, dword [esi]
fld dword [esi + ebx*4 + 0x60028]
mov ebx, dword [edx + 0xb0]
mov dword [esp + 0x4c], esi
mov esi, dword [edx + 0xa4]
fstp dword [ebx + ecx*4]
mov ebx, dword [edi + 0x1d4]
add ebx, eax
movzx eax, word [ebx]
mov word [esi + ecx*2], ax
mov esi, dword [esp + 0x4c]
movzx ebx, word [ebx]
mov eax, dword [edx + 0xa8]
fld dword [esi + ebx*4 + 0x70028]
mov ebx, dword [edx + 0xb4]
fstp dword [ebx + ecx*4]
mov ebx, dword [esp + 0x50]
add ebx, dword [edi + 0x1d8]
movzx esi, word [ebx]
mov word [eax + ecx*2], si
mov esi, dword [esp + 0x4c]
movzx ebx, word [ebx]
fld dword [esi + ebx*4 + 0x80028]
mov ebx, dword [edx + 0xb8]
fstp dword [ebx + ecx*4]
mov ebx, dword [edx + 0xac]
mov esi, dword [edi + 0x1dc]
mov eax, dword [esp + 0x30]
mov eax, dword [esi + eax*4]
and eax, 1
mov dword [ebx + ecx*4], eax
mov eax, dword [edx + 0xc0]
mov ecx, dword [edx + 0xc8]
add eax, 1
and eax, ecx
mov dword [edx + 0xc0], eax
mov edx, dword [edx + 0xc4]
add edx, 0x400
and edx, ecx
cmp eax, edx
je 0x40bf48
mov eax, dword [edi + 0x1e0]
mov dword [esp + 0x30], eax
lea esi, [esi]
nop
mov edx, dword [ebp + 0x70]
cmp edx, 1
jle 0x40affc
mov ecx, dword [ebp + 0x74]
mov eax, dword [esp + 0x30]
mov edx, dword [ecx + edx*4 - 4]
cmp dword [edx + 0x1c], eax
je 0x40bbe9
mov eax, dword [esp + 0x30]
movzx ecx, byte [edi + 0x1f4]
add eax, 1
and eax, dword [edi + 0x1f0]
mov dword [edi + 0x1e0], eax
jmp 0x40a888
cmp si, 4
jne 0x40b1c9
add dword [edi + 0x320], 1
adc dword [edi + 0x324], 0
cmp eax, 1
jne 0x40aa60
cmp dword [edi + 0x344], 2
jne 0x40aa60
jmp 0x40b3f8
fld qword [edi + 0x378]
mov dword [edi + 0x214], ebx
mov dword [edi + 0x404], 1
mov dword [edi + 0x408], 1
mov dword [edi + 0x40c], 1
mov dword [esp], edi
fstp qword [esp + 4]
call sym._eB1Calc
fstp qword [edi + 0x380]
fld qword [edi + 0x388]
mov dword [esp], edi
fstp qword [esp + 4]
call sym._eB1Calc
cmp dword [edi + 0x20c], 1
fstp qword [edi + 0x390]
je 0x40ba3d
mov ebx, dword [edi + 0x214]
jmp 0x40a939
cmp eax, 1
mov eax, 1
cmove ebx, eax
mov dword [edi + 0x20c], ebx
jmp 0x40a977
fstp qword [edi + 0x3d0]
lea esi, [esi]
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x40acf0
fld qword [0x4989d0]
fld qword [esp + 0x38]
fcompi st(1)
fstp st(0)
jbe 0x40acf0
fld qword [edi + 0x380]
fld st(0)
fsubr dword [0x4989fc]
fxch st(1)
fmul qword [edi + 0x3b8]
fxch st(2)
fmulp st(1)
faddp st(1)
jmp 0x40acf0
fstp qword [edi + 0x3d8]
nop
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x40adb8
fld qword [0x4989d0]
fld qword [esp + 0x38]
fcompi st(1)
fstp st(0)
jbe 0x40adb8
fld qword [edi + 0x380]
fld st(0)
fsubr dword [0x4989fc]
fxch st(1)
fmul qword [edi + 0x3c0]
fxch st(2)
fmulp st(1)
faddp st(1)
jmp 0x40adb8
mov dword [edi + 0x40c], 0
fstp qword [edi + 0x3e0]
lea esi, [esi]
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x40ae88
fld qword [0x4989d0]
fld qword [esp + 0x38]
fcompi st(1)
fstp st(0)
jbe 0x40ae88
fld qword [edi + 0x380]
fld st(0)
fsubr dword [0x4989fc]
fxch st(1)
fmul qword [edi + 0x3c8]
fxch st(2)
fmulp st(1)
faddp st(1)
jmp 0x40ae92
cmp si, 5
jne 0x40c671
add dword [edi + 0x328], 1
adc dword [edi + 0x32c], 0
cmp eax, 1
je 0x40aa60
cmp eax, 4
jle 0x40aa60
cmp dword [edi + 0x344], 2
jne 0x40aa60
jmp 0x40b3f8
movzx eax, si
mov dword [esp + 8], eax
mov eax, dword [edi + 0x18c]
mov dword [esp], str.DEBUG:_d:CI250_ProcessFifo____Trigger_Signal_code:__d._n
mov dword [esp + 4], eax
call sym._pprintf
jmp 0x40aa1c
cmp edx, 2
jne 0x40a888
movzx eax, ax
mov dword [esp + 0x30], eax
movzx eax, word [edi + 0x340]
fild dword [esp + 0x30]
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
fld qword [0x498a40]
fmul st(1)
fxch st(2)
fcomi st(2)
fstp st(2)
jbe 0x40b278
fmul qword [0x498a48]
fcompi st(1)
fstp st(0)
ja 0x40ac00
jmp 0x40b27c
fstp st(0)
fstp st(0)
mov ecx, 2
jmp 0x40a888
mov dword [esp], 0x2710
call dbg.usleep
mov dword [esp], 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
fld qword [0x4989d0]
fld qword [esp + 0x40]
fcompi st(1)
fstp st(0)
jbe 0x40ad0f
fld qword [edi + 0x390]
fld qword [edi + 0x3a8]
fnstcw word [esp + 0x9e]
fmul st(1)
fxch st(1)
fsubr dword [0x4989fc]
movzx eax, word [esp + 0x9e]
or ah, 0xc
mov word [esp + 0x9c], ax
fmulp st(2)
faddp st(1)
fldcw word [esp + 0x9c]
fist dword [esp + 0x70]
fldcw word [esp + 0x9e]
mov eax, dword [esp + 0x70]
jmp 0x40ad0f
fld qword [0x4989d0]
fld qword [esp + 0x40]
fcompi st(1)
fstp st(0)
jbe 0x40add7
fld qword [edi + 0x390]
fld qword [edi + 0x3b0]
fnstcw word [esp + 0x9e]
fmul st(1)
fxch st(1)
fsubr dword [0x4989fc]
movzx eax, word [esp + 0x9e]
or ah, 0xc
mov word [esp + 0x9c], ax
fmulp st(2)
faddp st(1)
fldcw word [esp + 0x9c]
fist dword [esp + 0x50]
fldcw word [esp + 0x9e]
mov eax, dword [esp + 0x50]
jmp 0x40ade1
fld qword [0x4989d0]
fld qword [esp + 0x40]
fcompi st(1)
fstp st(0)
jbe 0x40ac2d
fld qword [edi + 0x390]
fld qword [edi + 0x3a0]
fnstcw word [esp + 0x9e]
fmul st(1)
fxch st(1)
fsubr dword [0x4989fc]
movzx eax, word [esp + 0x9e]
or ah, 0xc
mov word [esp + 0x9c], ax
fmulp st(2)
faddp st(1)
fldcw word [esp + 0x9c]
fist dword [esp + 0x30]
fldcw word [esp + 0x9e]
mov eax, dword [esp + 0x30]
jmp 0x40ac2d
mov edx, dword [edi + 0x2d8]
cmp edx, 1
je 0x40b482
mov eax, dword [edi + 0x318]
jle 0x40b40f
cmp edx, eax
je 0x40b482
mov dword [edi + 0x310], 0
add eax, 1
mov dword [edi + 0x318], eax
mov eax, dword [edi + 0x1e0]
mov dword [edi + 0x314], 0
mov dword [edi + 0x2e0], eax
mov eax, dword [edi + 0x1cc]
mov dword [edi + 0x344], 3
mov eax, dword [eax]
test ah, 1
je 0x40aa60
mov eax, dword [edi + 0x18c]
mov dword [esp], str.DEBUG:_d:CI250_ProcessFifo____external_or_forced_trigger_received._n
mov dword [esp + 4], eax
call sym._pprintf
jmp 0x40aa60
cmp byte [eax + 0x1cc], 1
jne 0x40a8a8
jmp 0x40aac9
mov dword [edi + 0x310], 0
mov dword [edi + 0x314], 0
mov dword [edi + 0x318], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call sym._trigLutsRealloc
mov eax, dword [edi + 0x318]
jmp 0x40b40f
cmp ebx, 2
je 0x40bf62
mov dword [edi + 0x20c], 1
mov ebx, 1
jmp 0x40a977
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x40aeca
mov ecx, dword [ebp + 0x70]
test ecx, ecx
jle 0x40aeca
mov eax, dword [ebp + 0x74]
mov eax, dword [eax]
mov edx, dword [eax]
test edx, edx
je 0x40aeca
lea esi, [edi + 0x430]
xor ebx, ebx
mov dword [esp + 0x10], 1
mov ecx, ebx
mov dword [esp + 0x14], 0
fld qword [edi + ebx*8 + 0x3a0]
shl ecx, 0xe
fnstcw word [esp + 0x9e]
movzx edx, word [esp + 0x9e]
or dh, 0xc
mov word [esp + 0x9c], dx
fldcw word [esp + 0x9c]
fistp dword [esp + 0x30]
fldcw word [esp + 0x9e]
mov edx, dword [esp + 0x30]
movzx edx, dx
lea edx, [edx + ecx + 0x24008]
mov eax, dword [eax + edx*4 + 8]
mov dword [esp + 4], ebx
add ebx, 1
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp], edi
call sym._addPointToHist
cmp ebx, 3
je 0x40c311
mov eax, dword [edi + 0x1f8]
mov eax, dword [eax + 0x74]
mov eax, dword [eax]
jmp 0x40b50d
mov eax, dword [edi + 0x310]
mov edx, dword [edi + 0x314]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
or edx, eax
jne 0x40ba56
mov eax, dword [edi + 0x2c0]
mov ecx, dword [edi + 0x2c4]
cmp edx, eax
sbb edx, ecx
jge 0x40bd07
add eax, dword [edi + 0x2e0]
and eax, dword [edi + 0x1f0]
cmp dword [edi + 0x1e0], eax
je 0x40c1ee
mov eax, dword [edi + 0x2c8]
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0x2cc]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x70]
xor eax, ecx
xor edx, ebx
or edx, eax
jne 0x40aebd
mov eax, dword [edi + 0x318]
mov dword [esp + 0x7c], eax
mov ecx, eax
xor eax, eax
cmp ecx, dword [edi + 0x2d8]
setge al
lea eax, [eax + eax + 2]
mov dword [edi + 0x344], eax
mov eax, dword [edi + 0x304]
test eax, eax
je 0x40b681
mov edx, dword [edi + 0x308]
sub ecx, 1
mov ebx, dword [esp + 0x4c]
mov esi, dword [edx + eax*4 - 4]
mov eax, ecx
cdq
mov eax, dword [esp + 0x70]
imul ebx, edx
imul eax, ecx
add ebx, eax
mov eax, dword [esp + 0x4c]
mul ecx
add edx, ebx
add eax, dword [esp + 0x50]
adc edx, dword [esp + 0x54]
add eax, 0xffffffff
adc edx, 0xffffffff
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
add dword [edi + 0x2f0], 1
adc dword [edi + 0x2f4], 0
jmp 0x40aebd
mov eax, dword [edi + 0x2d8]
cmp eax, 1
je 0x40bc9d
mov ecx, dword [edi + 0x318]
jle 0x40bf8c
cmp eax, ecx
je 0x40bc9d
lea eax, [ecx + 1]
mov dword [edi + 0x318], eax
cmp eax, 1
je 0x40c183
jle 0x40b6e9
mov eax, dword [edi + 0x2d0]
mov edx, dword [edi + 0x2d4]
mov ebp, dword [edi + 0x2dc]
mov dword [ebp + ecx*8 - 8], eax
mov dword [ebp + ecx*8 - 4], edx
mov dword [edi + 0x344], 3
mov eax, dword [edi + 0x1e0]
mov dword [edi + 0x310], 0
mov dword [edi + 0x2e0], eax
mov eax, dword [edi + 0x1cc]
mov dword [edi + 0x314], 0
mov eax, dword [eax]
test ah, 1
jne 0x40bf71
mov eax, dword [edi + 0x2e8]
jmp 0x40aa40
movzx eax, ax
fstp qword [esp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov eax, dword [edi + 0x18c]
mov dword [esp], str._nERROR__d:_vbwRSSI_of_axis__d_:__u____.4f__n
mov dword [esp + 4], eax
call sym.printf_char_const__..._
fld qword [edi + 0x3a0]
fnstcw word [esp + 0x9e]
movzx eax, word [esp + 0x9e]
or ah, 0xc
mov word [esp + 0x9c], ax
mov ebx, dword [edi + 0x408]
fldcw word [esp + 0x9c]
fist dword [esp + 0x30]
fldcw word [esp + 0x9e]
mov eax, dword [esp + 0x30]
jmp 0x40ac3d
movzx eax, ax
fstp qword [esp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov eax, dword [edi + 0x18c]
mov dword [esp], str._nERROR__d:_vbwRSSI_of_axis__d_:__u____.4f__n
mov dword [esp + 4], eax
call sym.printf_char_const__..._
mov edx, dword [edi + 0x1e0]
fld qword [edi + 0x3a8]
fnstcw word [esp + 0x9e]
lea eax, [edx + edx]
mov dword [esp + 0x4c], eax
movzx eax, word [esp + 0x9e]
or ah, 0xc
mov word [esp + 0x9c], ax
mov ebp, dword [edi + 0x1f8]
fldcw word [esp + 0x9c]
fist dword [esp + 0x30]
fldcw word [esp + 0x9e]
mov ebx, dword [edi + 0x408]
mov esi, dword [ebp + 0x14]
mov dword [esp + 0x50], esi
mov esi, dword [edi + 0x404]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x30], esi
jmp 0x40ad1f
movzx eax, ax
fstp qword [esp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov eax, dword [edi + 0x18c]
mov dword [esp], str._nERROR__d:_vbwRSSI_of_axis__d_:__u____.4f__n
mov dword [esp + 4], eax
call sym.printf_char_const__..._
mov edx, dword [edi + 0x1e0]
fld qword [edi + 0x3b0]
fnstcw word [esp + 0x9e]
lea eax, [edx + edx]
mov dword [esp + 0x4c], eax
movzx eax, word [esp + 0x9e]
or ah, 0xc
mov word [esp + 0x9c], ax
mov esi, dword [edi + 0x404]
fldcw word [esp + 0x9c]
fist dword [esp + 0x30]
fldcw word [esp + 0x9e]
mov ebp, dword [edi + 0x1f8]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x30], esi
jmp 0x40adf1
mov eax, dword [edi + 0x18c]
mov dword [esp], str.DEBUG:_d:CI250_ProcessFifo__trigger_arm_signal_n
mov dword [esp + 4], eax
call sym._pprintf
jmp 0x40ab87
mov ecx, dword [edx + 0x1e4]
or ecx, dword [edx + 0x1e0]
je 0x40afe0
mov ebx, dword [edi + 0x1d0]
lea esi, [eax + eax]
mov ecx, dword [edx + 0xc0]
mov dword [esp + 0x4c], esi
add ebx, esi
mov esi, dword [edx + 0xa0]
movzx eax, word [ebx]
mov word [esi + ecx*2], ax
mov esi, dword [ebp + 0x74]
movzx ebx, word [ebx]
mov eax, dword [esi]
fld dword [eax + ebx*4 + 0x60028]
mov ebx, dword [edx + 0xb0]
mov dword [esp + 0x50], eax
mov eax, dword [edx + 0xa4]
fstp dword [ebx + ecx*4]
mov ebx, dword [esp + 0x4c]
add ebx, dword [edi + 0x1d4]
movzx esi, word [ebx]
mov word [eax + ecx*2], si
mov eax, dword [esp + 0x50]
movzx ebx, word [ebx]
fld dword [eax + ebx*4 + 0x70028]
mov ebx, dword [edx + 0xb4]
mov eax, dword [edx + 0xa8]
fstp dword [ebx + ecx*4]
mov ebx, dword [esp + 0x4c]
add ebx, dword [edi + 0x1d8]
movzx esi, word [ebx]
mov word [eax + ecx*2], si
mov eax, dword [esp + 0x50]
movzx ebx, word [ebx]
fld dword [eax + ebx*4 + 0x80028]
mov ebx, dword [edx + 0xb8]
fstp dword [ebx + ecx*4]
mov esi, dword [edi + 0x1dc]
mov eax, dword [esp + 0x30]
mov ebx, dword [edx + 0xac]
mov eax, dword [esi + eax*4]
and eax, 1
mov dword [ebx + ecx*4], eax
mov eax, dword [edx + 0xc0]
add dword [edx + 0x1d8], 1
add eax, 1
and eax, dword [edx + 0xc8]
mov dword [edx + 0xc0], eax
cmp eax, dword [edx + 0xc4]
jne 0x40afd1
mov eax, dword [edi + 0x18c]
mov dword [esp], str.ERROR:_d:CI250_ProcessFifo:_streamRF_Fifo_overrun__terminating_streaming_modus._n
mov dword [esp + 4], eax
call sym._pprintf
mov dword [esp], edi
call sym._resetStreaming
mov eax, dword [edi + 0x1e0]
mov ebp, dword [edi + 0x1f8]
mov dword [esp + 0x30], eax
jmp 0x40afe0
mov dword [edi + 0x310], 0
mov dword [edi + 0x314], 0
mov dword [edi + 0x318], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call sym._trigLutsRealloc
mov dword [edi + 0x344], 2
jmp 0x40ab94
fld qword [edi + 0x370]
fstp qword [edi + 0x360]
mov dword [esp], edi
call sym._computeNewSweepFreqList
jmp 0x40b0b9
mov eax, dword [edi + 0x2c8]
xor esi, esi
mov edx, dword [esp + 0x54]
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0x2cc]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x50]
cmp esi, eax
sbb esi, edx
jge 0x40b5fe
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
cmp eax, esi
mov eax, edx
sbb eax, dword [esp + 0x70]
jge 0x40b5fe
mov eax, dword [edi + 0x318]
mov ecx, dword [edi + 0x2f8]
fnstcw word [esp + 0x9e]
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
sub eax, 1
imul eax, dword [esp + 0x4c]
movzx edx, word [esp + 0x9e]
or dh, 0xc
add eax, ebx
add ebx, 1
mov word [esp + 0x9c], dx
fld qword [edi + 0x3a0]
adc esi, 0
fldcw word [esp + 0x9c]
fistp dword [esp + 0x30]
fldcw word [esp + 0x9e]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], esi
mov edx, dword [esp + 0x30]
fld qword [edi + 0x3a8]
mov word [ecx + eax*2], dx
mov ecx, dword [edi + 0x2fc]
fldcw word [esp + 0x9c]
fistp dword [esp + 0x30]
fldcw word [esp + 0x9e]
mov edx, dword [esp + 0x30]
fld qword [edi + 0x3b0]
mov word [ecx + eax*2], dx
mov ecx, dword [edi + 0x300]
fldcw word [esp + 0x9c]
fistp dword [esp + 0x30]
fldcw word [esp + 0x9e]
mov edx, dword [esp + 0x30]
mov word [ecx + eax*2], dx
mov dword [edi + 0x310], ebx
mov dword [edi + 0x314], esi
jmp 0x40b5fe
mov eax, dword [edi + 0x1cc]
mov eax, dword [eax]
test ah, 4
jne 0x40bcec
lea ebx, [edi + 0x5f0]
mov eax, dword [esp + 0x28]
mov dword [esp], ebx
call eax
lea eax, [edi + 0x430]
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], 0x47ae147b
mov dword [esp + 8], 0x3f747ae1
call sym._histInit
lea eax, [edi + 0x450]
mov dword [esp + 4], 0x47ae147b
mov dword [esp], eax
mov dword [esp + 8], 0x3f747ae1
call sym._histInit
mov eax, dword [esp + 0x24]
mov dword [edi + 0x418], 0
mov dword [edi + 0x41c], 0
mov dword [edi + 0x414], 1
mov dword [esp], ebx
call eax
sub esp, 4
jmp 0x40a8a8
mov dword [esp], ebp
call sym._deleteLastLutSFromCorr
mov eax, dword [edi + 0x1e0]
mov dword [esp + 0x30], eax
jmp 0x40affc
mov dword [eax + 0x1e0], 1
mov dword [eax + 0x1e4], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov eax, dword [edi + 0x1cc]
mov eax, dword [eax]
test ah, 2
je 0x40a8a8
mov eax, dword [edi + 0x18c]
mov dword [esp], str.DEBUG:_d:CI250_ProcessFifo____stream_trigger_start._n
mov dword [esp + 4], eax
call sym._pprintf
jmp 0x40a8a8
mov eax, dword [edi + 0x1cc]
mov eax, dword [eax]
test ah, 4
jne 0x40c31c
lea ebx, [edi + 0x5f0]
mov eax, dword [esp + 0x28]
mov dword [esp], ebx
call eax
sub esp, 4
cmp dword [edi + 0x414], 1
je 0x40c4c7
mov dword [esp], ebx
mov eax, dword [esp + 0x24]
call eax
sub esp, 4
jmp 0x40a8a8
mov dword [edi + 0x310], 0
mov dword [edi + 0x314], 0
mov dword [edi + 0x318], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call sym._trigLutsRealloc
mov ecx, dword [edi + 0x318]
cmp dword [edi + 0x2d8], 1
lea eax, [ecx + 1]
mov dword [edi + 0x318], eax
jg 0x40b6c4
jmp 0x40b6e9
mov eax, dword [edi + 0x18c]
mov dword [esp], str.DEBUG:_d:CI250_ProcessFifo____stat_start._n
mov dword [esp + 4], eax
call sym._pprintf
jmp 0x40bb6c
or ecx, eax
je 0x40b5d2
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x80], ebp
mov dword [esp + 0xc0], edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x60], ecx
xor ecx, ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x84], esi
lea esi, [esi]
mov esi, dword [esp + 0xc0]
mov ecx, dword [esp + 0x60]
add eax, dword [esi + 0x2e0]
mov dword [esp + 0x74], ecx
lea ebx, [eax + ecx]
mov eax, dword [esp + 0x80]
and ebx, dword [esi + 0x1f0]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x78], eax
test eax, eax
je 0x40bf5b
mov eax, dword [esp + 0x64]
or eax, dword [esp + 0x74]
jne 0x40c01b
mov eax, dword [esp + 0x80]
mov ebp, dword [eax + 0x70]
mov eax, esi
test ebp, ebp
jg 0x40c219
nop
mov eax, dword [eax + 0x318]
mov dword [esp + 0x7c], eax
lea ecx, [eax - 1]
mov eax, esi
mov edi, dword [eax + 0x2c8]
mov edx, dword [eax + 0x2f8]
xor esi, esi
mov ebp, dword [eax + 0x2cc]
imul ecx, edi
add ecx, dword [esp + 0x74]
mov dword [esp + 0x88], edx
lea eax, [ecx + ecx]
mov dword [esp + 0x4c], edi
lea ecx, [edx + eax]
mov dword [esp + 0x70], ebp
mov word [ecx], si
mov esi, dword [esp + 0xc0]
mov edx, dword [esi + 0x2fc]
mov esi, dword [esi + 0x300]
mov dword [esp + 0x74], edx
add edx, eax
add eax, esi
mov dword [esp + 0x8c], esi
xor esi, esi
mov word [edx], 0
mov word [eax], si
mov esi, dword [esp + 0xc0]
add dword [esp + 0x30], 1
mov esi, dword [esi + 0x1d0]
mov dword [esp + 0x90], esi
movzx esi, word [esi + ebx*2]
mov word [ecx], si
mov esi, dword [esp + 0xc0]
mov ecx, dword [esi + 0x1d4]
movzx esi, word [ecx + ebx*2]
mov word [edx], si
mov esi, dword [esp + 0x84]
movzx edx, word [esi + ebx*2]
mov word [eax], dx
adc dword [esp + 0x34], 0
mov ebx, dword [esp + 0xc0]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x314], edx
mov edx, dword [esp + 0x34]
mov dword [ebx + 0x310], eax
mov ebx, edi
xor edi, dword [esp + 0x30]
xor edx, ebp
or edx, edi
je 0x40c337
mov edx, dword [esp + 0xc0]
add dword [esp + 0x60], 1
adc dword [esp + 0x64], 0
mov eax, dword [edx + 0x2c0]
mov edx, dword [edx + 0x2c4]
mov esi, edx
sar esi, 0x1f
mov dword [esp + 0x68], esi
mov edi, dword [esp + 0x68]
mov dword [esp + 0x6c], esi
mov ebp, dword [esp + 0x6c]
mov esi, edi
xor esi, eax
xor edx, ebp
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], edx
sub dword [esp + 0x58], edi
mov edi, dword [esp + 0x60]
sbb dword [esp + 0x5c], ebp
mov esi, dword [esp + 0x58]
mov ebp, dword [esp + 0x64]
cmp edi, esi
mov esi, ebp
sbb esi, dword [esp + 0x5c]
jge 0x40c36a
mov edx, dword [esp + 0x78]
test edx, edx
jne 0x40bd48
mov edi, dword [esp + 0xc0]
mov dword [esp + 0x78], ecx
mov esi, dword [esp + 0x84]
mov ebp, dword [esp + 0x80]
mov ecx, dword [edi + 0x1f0]
add eax, dword [edi + 0x2e0]
mov dword [esp + 0x94], eax
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x98], esi
lea edx, [ecx - 1]
imul edx, ebx
mov dword [esp + 0x80], edx
jmp 0x482e26
mov dword [esp], edi
call sym._processAndLogStableStreamFrame
mov ebp, dword [edi + 0x1f8]
jmp 0x40afd1
mov eax, esi
jmp 0x40bda0
mov dword [edi + 0x20c], 2
jmp 0x40a977
mov eax, dword [edi + 0x18c]
mov dword [esp], str.DEBUG:_d:CI250_ProcessFifo____trigger_signal_received__force_or_level_._n
mov dword [esp + 4], eax
call sym._pprintf
jmp 0x40b724
add ecx, 1
mov dword [edi + 0x318], ecx
jmp 0x40b6e9
mov eax, dword [edi + 0x1cc]
mov eax, dword [eax]
test ah, 4
jne 0x40c2f6
lea ebx, [edi + 0x5f0]
mov eax, dword [esp + 0x28]
mov dword [esp], ebx
call eax
sub esp, 4
cmp dword [edi + 0x414], 1
jne 0x40bc8c
lea eax, [edi + 0x4d0]
mov dword [esp + 0x14], 0x47ae147b
mov dword [esp + 0xc], eax
lea eax, [edi + 0x450]
mov dword [esp + 8], eax
lea eax, [edi + 0x430]
mov dword [esp + 0x18], 0x3f747ae1
mov dword [esp + 0x10], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._histCopy
add dword [edi + 0x418], 1
adc dword [edi + 0x41c], 0
jmp 0x40bc8c
mov edi, dword [esp + 0x94]
test edi, edi
jle 0x40bf5b
mov eax, dword [esp + 0x80]
mov esi, dword [esp + 0x94]
mov edi, dword [esp + 0xc0]
mov eax, dword [eax + 0x74]
mov ebp, esi
mov edx, dword [eax + esi*4]
cmp dword [edx + 0x1c], ebx
je 0x40c05c
jmp 0x40c63d
test ebp, ebp
je 0x40c06e
sub ebp, 1
mov edx, dword [eax + ebp*4]
lea esi, [ebp*4]
cmp dword [edx + 0x1c], ebx
je 0x40c058
mov dword [esp], edi
mov dword [esp + 4], 1
mov dword [esp + 0x94], ebp
mov dword [esp + 0xc0], edi
call sym._trigLutsRealloc
mov eax, dword [esp + 0xc0]
mov edx, dword [eax + 0x304]
mov eax, dword [eax + 0x308]
mov edx, dword [eax + edx*4 - 4]
mov eax, dword [esp + 0xc0]
mov eax, dword [eax + 0x1f8]
mov eax, dword [eax + 0x74]
mov eax, dword [eax + esi]
mov dword [esp], edx
mov dword [esp + 8], 0xc0028
mov dword [esp + 4], eax
call sym._memcpy
mov eax, dword [esp + 0xc0]
mov eax, dword [eax + 0x318]
lea ecx, [eax - 1]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0xc0]
mov edx, dword [eax + 0x304]
mov eax, dword [eax + 0x308]
mov edi, dword [eax + edx*4 - 8]
mov eax, ecx
cdq
mov eax, dword [esp + 0xc0]
mov esi, edx
mov edx, dword [esp + 0xc0]
imul esi, dword [eax + 0x2c8]
mov eax, ecx
imul eax, dword [edx + 0x2cc]
mov ebp, edx
add esi, eax
mov eax, ecx
mul dword [edx + 0x2c8]
add edx, esi
add eax, dword [ebp + 0x310]
adc edx, dword [ebp + 0x314]
mov dword [edi + 0x20], eax
mov eax, dword [ebp + 0x1cc]
mov dword [edi + 0x24], edx
mov eax, dword [eax]
test ah, 0x40
jne 0x40c5e1
mov eax, dword [ebp + 0x310]
mov edx, dword [ebp + 0x314]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x1f8]
mov dword [esp + 0x34], edx
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0x1d8]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xc0]
jmp 0x40bdaf
mov dword [edi + 0x2d0], 0
mov dword [edi + 0x2d4], 0
jmp 0x40b6e9
add ecx, 1
adc ebx, 0
mov dword [eax + 0x1e0], ecx
mov dword [eax + 0x1e4], ebx
mov dword [esp], edi
call sym._synchronizeStreamFifo
mov edx, dword [edi + 0x724]
mov eax, dword [edx + 0xc0]
sub eax, 1
and eax, dword [edx + 0xc8]
mov dword [edx + 0xd0], eax
mov dword [esp], edi
call sym._processAndLogStableStreamFrame
mov eax, dword [edi + 0x724]
mov dword [eax + 0x1d8], 0
jmp 0x40a8a8
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40c200
mov esi, dword [ebp + 0x70]
test esi, esi
jg 0x40c552
mov eax, dword [edi + 0x2c8]
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0x2cc]
mov dword [esp + 0x70], eax
jmp 0x40ba98
mov dword [esp], esi
xor edi, edi
xor esi, esi
mov dword [esp + 4], 1
call sym._trigLutsRealloc
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x94], edi
mov eax, dword [eax + 0x1f8]
mov ecx, dword [eax + 0x70]
mov dword [esp + 0x88], eax
mov dword [esp + 0x90], ecx
cmp ecx, 1
jg 0x40c399
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0x88]
mov edx, dword [eax + 0x304]
mov eax, dword [eax + 0x308]
mov eax, dword [eax + edx*4 - 4]
mov edx, dword [ecx + 0x74]
mov edx, dword [edx + esi]
mov dword [esp + 8], 0xc0028
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._memcpy
mov eax, dword [esp + 0xc0]
mov eax, dword [eax + 0x318]
mov dword [esp + 0x7c], eax
lea ecx, [eax - 1]
mov eax, dword [esp + 0xc0]
mov edx, dword [eax + 0x314]
mov eax, dword [eax + 0x310]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x34], edx
mov eax, dword [eax + 0x1f8]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xc0]
mov eax, dword [eax + 0x1d8]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xc0]
jmp 0x40bdaf
mov eax, dword [edi + 0x18c]
mov dword [esp], str.DEBUG:_d:CI250_ProcessFifo____stat_snap._n
mov dword [esp + 4], eax
call sym._pprintf
jmp 0x40bfab
mov ebp, dword [edi + 0x1f8]
jmp 0x40aeca
mov eax, dword [edi + 0x18c]
mov dword [esp], str.DEBUG:_d:CI250_ProcessFifo____stat_stop._n
mov dword [esp + 4], eax
call sym._pprintf
jmp 0x40bc6d
mov ebp, dword [esp + 0x80]
mov edi, dword [esp + 0xc0]
mov eax, dword [esp + 0x30]
xor esi, esi
mov edx, dword [esp + 0x34]
cmp esi, eax
sbb esi, edx
jge 0x40c5c4
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x54], edx
jmp 0x40b626
mov ebp, dword [esp + 0x80]
mov edi, dword [esp + 0xc0]
mov eax, dword [esp + 0x30]
xor esi, esi
mov edx, dword [esp + 0x34]
cmp esi, eax
sbb esi, edx
jge 0x40c5c4
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
jmp 0x40ba7e
mov esi, dword [esp + 0xc0]
mov edx, dword [esp + 0xc0]
mov ebp, edi
mov esi, dword [esi + 0x2c0]
mov edx, dword [edx + 0x2c4]
cmp edi, esi
mov dword [esp + 0x80], esi
sbb ebp, edx
mov dword [esp + 0x84], edx
jl 0x40c65d
mov esi, dword [esp + 0xc0]
mov eax, dword [eax + 0x74]
sub ecx, 1
mov ebp, edi
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x7c], ecx
mov esi, dword [esi + 0x2e0]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x8c], ebx
mov ebx, eax
mov edx, dword [edx + 0x1f0]
mov dword [esp + 0x30], esi
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x60]
jmp 0x40c42b
add edx, 0xffffffff
adc ecx, 0xffffffff
sub dword [esp + 0x30], 1
cmp edx, dword [esp + 0x80]
mov eax, ecx
sbb eax, dword [esp + 0x84]
jl 0x40c44e
lea eax, [ebp + 1]
mov edi, dword [esp + 0x70]
and edi, dword [esp + 0x30]
mov dword [esp + 0x4c], ebp
mov esi, dword [ebx + eax*4]
cmp edi, dword [esi + 0x1c]
jne 0x40c448
mov dword [esp + 0x4c], eax
mov ebp, eax
cmp ebp, dword [esp + 0x7c]
jne 0x40c40e
mov dword [esp + 0x94], ebp
mov ebx, dword [esp + 0x8c]
mov eax, dword [esp + 0xc0]
mov eax, dword [eax + 0x1cc]
mov esi, dword [esp + 0x4c]
mov eax, dword [eax]
shl esi, 2
test ah, 0x40
je 0x40c25b
mov eax, dword [esp + 0x90]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc0]
mov eax, dword [eax + 0x18c]
mov dword [esp], str.DEBUG:_d:getStartLut__:_for_Trigger_Begin_start_LUT_indx__u_of__u_n
mov dword [esp + 4], eax
call sym._pprintf
mov eax, dword [esp + 0xc0]
mov eax, dword [eax + 0x1f8]
mov dword [esp + 0x88], eax
jmp 0x40c25b
lea eax, [edi + 0x4d0]
fld dword [0x498a30]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], eax
lea eax, [edi + 0x450]
mov dword [esp + 8], eax
lea eax, [edi + 0x430]
mov dword [esp + 4], eax
mov dword [esp], edi
fstp qword [esp + 0x14]
call sym._histCopy
add dword [edi + 0x418], 1
mov dword [edi + 0x414], 0
adc dword [edi + 0x41c], 0
jmp 0x40bc8c
mov byte [eax + 0x1dc], 0xff
mov eax, dword [edi + 0x724]
jmp 0x40ab41
mov byte [eax + 0x1dc], 1
mov eax, dword [edi + 0x724]
jmp 0x40ab41
mov byte [eax + 0x1dc], 0
mov eax, dword [edi + 0x724]
jmp 0x40ab41
mov dword [esp + 4], 1
mov dword [esp], edi
call sym._trigLutsRealloc
mov edx, dword [edi + 0x304]
mov eax, dword [edi + 0x308]
mov eax, dword [eax + edx*4 - 4]
mov edx, dword [edi + 0x1f8]
mov edx, dword [edx + 0x74]
mov edx, dword [edx]
mov dword [esp + 8], 0xc0028
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._memcpy
mov eax, dword [edi + 0x2c8]
mov edx, dword [edi + 0x314]
mov ebp, dword [edi + 0x1f8]
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0x2cc]
mov dword [esp + 0x54], edx
mov dword [esp + 0x70], eax
mov eax, dword [edi + 0x310]
mov dword [esp + 0x50], eax
jmp 0x40ba98
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, ebx
or edx, ecx
jne 0x40c688
mov eax, dword [edi + 0x2c0]
jmp 0x40b5d2
mov eax, dword [esp + 0xc0]
mov edx, dword [eax + 0x314]
mov eax, dword [eax + 0x310]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x14], edx
mov eax, dword [eax + 0x1f8]
mov eax, dword [eax + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc0]
mov eax, dword [eax + 0x18c]
mov dword [esp], str.DEBUG:_d:procesFifo__:_NEW_OLD_TRIGger_LUT_idx__u_of__u__prog__lld_n
mov dword [esp + 4], eax
call sym._pprintf
jmp 0x40c293
mov eax, dword [esp + 0xc0]
mov eax, dword [eax + 0x318]
mov dword [esp + 0x7c], eax
lea ecx, [eax - 1]
mov eax, dword [esp + 0xc0]
jmp 0x40bdaf
mov dword [esp + 0x4c], 0
mov eax, dword [esp + 0xc0]
jmp 0x40c463
cmp eax, 1
jne 0x40aba3
test bl, 0xfb
je 0x40aa49
jmp 0x40aa60
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
jmp 0x40b5fe
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x80]
mov esi, dword [esp + 0x90]
lea eax, [edx + ecx]
mov ecx, dword [esp + 0x88]
add edx, dword [esp + 0x94]
add eax, eax
and edx, dword [esp + 0x84]
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x74]
mov word [ebx], 0
add ecx, eax
add eax, dword [esp + 0x8c]
add dword [esp + 0x30], 1
mov word [ecx], 0
mov word [eax], 0
movzx esi, word [esi + edx*2]
adc dword [esp + 0x34], 0
mov word [ebx], si
mov esi, dword [esp + 0x78]
movzx ebx, word [esi + edx*2]
mov esi, dword [esp + 0x98]
mov word [ecx], bx
movzx edx, word [esi + edx*2]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov word [eax], dx
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x70]
xor eax, ecx
xor edx, ebx
or edx, eax
jne sym.CI250_ProcessFifo_ci250_t___clone_.cold_
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [edi + 0x310], eax
mov dword [edi + 0x314], edx
jmp 0x40c345