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

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
test byte [esi + 0x8c], 0x80
push edi
jne 0x41989f
cmp dword [0x4a7e00], 0
je 0x41985b
mov edi, dword [0x4a9bfc]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 0xc]
jmp 0x41986d
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [0x4a9bfc]
cmp dword [0x4a7e00], 0
mov dword [esp + 0x10], eax
je 0x41988f
mov eax, dword fs:[0x2c]
mov eax, dword [eax + edi*4]
mov dword [eax + 0xc], 1
jmp 0x4198a5
push 1
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x4198a5
mov edi, dword [0x4a9bfc]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 0xc]
push eax
mov dword [esp + 0x1c], eax
call ebx
lea eax, [esi + 0x3c]
push eax
call ebx
mov eax, dword [esi + 0x8c]
test ax, 0x1000
jne 0x419998
test al, 2
je 0x419998
xor ebp, ebp
push ebp
push 0xffffe897
call sym.AdobeCollabSync.exe_PR_SetError
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
and dword [esi + 0x8c], 0xfffffffd
pop ecx
pop ecx
push dword [esp + 0x18]
call ebx
lea eax, [esi + 0x3c]
push eax
call ebx
test byte [esi + 0x8c], 0x80
jne 0x419990
mov esi, dword [esp + 0x10]
cmp esi, ebp
jne 0x41996a
cmp dword [0x4a7e00], ebp
je 0x41992d
mov eax, dword fs:[0x2c]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 0x10]
jmp 0x419939
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], ebp
je 0x41996a
cmp dword [0x4a7e00], ebp
je 0x419957
mov eax, dword fs:[0x2c]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 0x10]
jmp 0x419963
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.00418fe9
pop ecx
cmp dword [0x4a7e00], ebp
je 0x419983
mov eax, dword fs:[0x2c]
mov eax, dword [eax + edi*4]
mov dword [eax + 0xc], esi
jmp 0x419990
push esi
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
or eax, 0xffffffff
jmp 0x419b17
mov dword [esi + 0x84], ebp
lea edi, [esi + 0x6c]
lea eax, [ebp + 4]
mov dword [esi], 4
mov dword [edi], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x70], eax
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebp + 8], edi
test byte [esi + 0x8c], 0x80
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jne 0x4199fa
mov eax, dword [esi + 0x98]
mov eax, dword [eax + 0x24]
add eax, 0x18
push eax
call ebx
push dword [esp + 0x24]
mov dword [esi + 0x54], 2
push esi
call sym.AdobeCollabSync.exe__PR_AddSleepQ
mov eax, dword [esi + 0x98]
mov eax, dword [eax + 0x24]
pop ecx
pop ecx
add eax, 0x18
push eax
call ebp
push dword [esp + 0x18]
call ebp
lea eax, [esi + 0x3c]
push eax
call ebp
push dword [esp + 0x20]
call sym.AdobeCollabSync.exe_PR_Unlock
push dword [esp + 0x28]
push esi
call fcn.0041b0c9
add esp, 0xc
push dword [esp + 0x18]
mov dword [esp + 0x20], eax
call ebx
mov eax, dword [esi + 0x70]
mov ecx, dword [edi]
push dword [esp + 0x18]
mov dword [eax], ecx
mov eax, dword [edi]
mov ecx, dword [esi + 0x70]
mov dword [eax + 4], ecx
call ebp
xor ebx, ebx
test byte [esi + 0x8c], 0x80
jne 0x419ae0
mov edi, dword [esp + 0x10]
cmp edi, ebx
jne 0x419ab4
cmp dword [0x4a7e00], ebx
je 0x419a71
mov eax, dword [0x4a9bfc]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 0x10]
jmp 0x419a7d
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], ebx
je 0x419ab4
cmp dword [0x4a7e00], ebx
je 0x419aa1
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4a9bfc]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x10]
jmp 0x419aad
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.00418fe9
pop ecx
cmp dword [0x4a7e00], ebx
je 0x419ad3
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4a9bfc]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], edi
jmp 0x419ae0
push edi
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 0x20]
call sym.AdobeCollabSync.exe_PR_Lock
mov eax, dword [esi + 0x8c]
test ax, 0x1000
pop ecx
jne 0x419b13
test al, 2
je 0x419b13
push ebx
push 0xffffe897
call sym.AdobeCollabSync.exe_PR_SetError
and dword [esi + 0x8c], 0xfffffffd
pop ecx
pop ecx
jmp 0x419990
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret