libcuda.so internals part 2

Previous part I've noticed that almost all real API functions has the same prologues like: mov eax, cs:dword_5E14C00 ; unique for each API function mov [rbp+var_D0], 3E7h mov [rbp+var_C0], 0 mov [rbp+var_C8], 0 test eax, eax jz short loc_39603B lea rdi, [rbp+var_C0] call sub_2EE190 ; get data from pthread_getspecific test eax, eax jz loc_396118 loc_396118: lea rbx, aCustreamupdate_5 ;…