The talents are packed into a bitstring which is split into 3 32-bit integer values.

i.e. if you have talent nodes with values 1048584, 8650752 and 0:
You should convert these values into binary first to see which talent indices are set. In binary the node values are:
1048584 = 0000 0000 0001 0000 0000 0000 0000 1000
8650752 = 0000 0000 1000 0100 0000 0000 0000 0000
0 = 0000 0000 0000 0000 0000 0000 0000 0000

Now you have to count bits from the right to the left and write down the position of each bit that has a "1" in it.
In the first row, the 4th and 21st bits are 1; in the second row, the 19th and 24th bits are 1; in the third row, there are only "0" bits.
Now, add 32 to the position of each "1" value in the second row, and add 64 to the position of each "1" value in the third row.
The final values we have are:
4 (first row rightmost)
21 (first row left)
19+32=51 (second row right)
24+32=56 (second row left)

I'm not sure if my talent table is correct for D:OS 2, but 4 is "AttackOfOpportunity", 21 is "ResistDead", 51 is "WhatARush" and 56 is "Bully". (Note that the internal names for talents are different from the ones in the game UI, so there isn't always a 1:1 name match).

If you'd like to modify them, then do the same process in reverse, i.e. first look up the index of the talent you want to set/unset. Then find which row contains your talent index. Indices 1 to 32 are in the first row, 33-64 in the second, 65+ in the third. Then subtract 0/32/64 (first/second/third row) from the index, and start counting bits from the left. When you got to your talent index, set the corresponding bit to "1", then convert the binary value to decimal and overwrite the talent nodes in the LSX.