Function at 0x415964
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ecx
push ecx
push ebx
push ebp
xor ebp, ebp
cmp dword [0x4a8e30], ebp
push esi
push edi
mov dword [esp + 0x10], ebp
jne 0x41597d
call sym.AdobeCollabSync.exe_PR_Init
mov esi, dword [esp + 0x1c]
cmp esi, ebp
jne 0x415b53
call sym.AdobeCollabSync.exe_PR_GetCurrentThread
cmp dword [0x4a7e00], ebp
mov ebp, dword [0x4a9bfc]
mov edi, eax
mov ebx, dword [edi + 4]
je 0x4159b2
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ebp*4]
mov esi, dword [eax + 0x10]
jmp 0x4159c0
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test byte [edi + 0x8c], 0x80
je 0x4159d3
call fcn.0041a483
jmp 0x415ba7
cmp dword [0x4a7e00], 0
je 0x4159ed
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ebp*4]
mov eax, dword [eax + 0xc]
jmp 0x4159f9
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [0x4a7e00], 0
mov dword [esp + 0x1c], eax
je 0x415a1b
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ebp*4]
mov dword [eax + 0xc], 1
jmp 0x415a29
push 1
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x24]
mov edx, dword [eax + 0x68]
mov ecx, ebx
shr edx, cl
test edx, edx
je 0x415ac4
mov dword [edi + 0x98], esi
xor edx, edx
inc edx
mov dword [edi], edx
mov ecx, dword [esi + 0x24]
lea ecx, [ecx + ebx*8 + 0x48]
lea eax, [edi + 0x64]
mov dword [eax], ecx
mov ecx, dword [esi + 0x24]
mov ecx, dword [ecx + ebx*8 + 0x4c]
mov dword [edi + 0x68], ecx
mov ecx, dword [esi + 0x24]
mov ecx, dword [ecx + ebx*8 + 0x4c]
mov dword [ecx], eax
mov ecx, dword [esi + 0x24]
mov dword [ecx + ebx*8 + 0x4c], eax
mov eax, dword [esi + 0x24]
mov ecx, edx
mov dword [esp + 0x14], ecx
mov ecx, ebx
mov ebx, edx
shl ebx, cl
or dword [eax + 0x68], ebx
mov dword [edi + 0x54], edx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call fcn.0041a6ff
cmp dword [0x4a7e00], 0
pop ecx
je 0x415abb
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ebp*4]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0xc], ecx
jmp 0x415ba7
push dword [esp + 0x1c]
jmp 0x415b45
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x1c]
xor edi, edi
cmp esi, edi
jne 0x415b2b
cmp dword [0x4a7e00], edi
je 0x415aee
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ebp*4]
mov eax, dword [eax + 0x10]
jmp 0x415afa
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], edi
je 0x415b2b
cmp dword [0x4a7e00], edi
je 0x415b18
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ebp*4]
mov eax, dword [eax + 0x10]
jmp 0x415b24
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.00418fe9
pop ecx
cmp dword [0x4a7e00], edi
je 0x415b44
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ebp*4]
mov dword [eax + 0xc], esi
jmp 0x415ba7
push esi
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x415ba7
call sym.AdobeCollabSync.exe_PR_IntervalNow
push dword [0x4aa068]
mov ebx, eax
call sym.AdobeCollabSync.exe_PR_NewCondVar
push dword [0x4aa068]
mov edi, eax
call sym.AdobeCollabSync.exe_PR_Lock
pop ecx
pop ecx
call sym.AdobeCollabSync.exe_PR_IntervalNow
sub eax, ebx
cmp eax, esi
ja 0x415b94
mov ecx, esi
sub ecx, eax
push ecx
push edi
call sym.AdobeCollabSync.exe_PR_WaitCondVar
cmp eax, ebp
pop ecx
pop ecx
mov dword [esp + 0x10], eax
je 0x415b74
push dword [0x4aa068]
call sym.AdobeCollabSync.exe_PR_Unlock
push edi
call sym.AdobeCollabSync.exe_PRP_DestroyNakedCondVar
pop ecx
pop ecx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret