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

Disassembly:
sub esp, 0x18
and dword [esp + 4], 0
cmp dword [0x4aa048], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebp
push esi
push edi
jbe 0x41ac8b
mov ebp, 0x4aa020
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, 0x4aa040
jmp 0x41ac7e
mov eax, dword [esi + 4]
mov ecx, dword [esi]
add esi, 0xffffff9c
mov dword [eax], ecx
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x68]
mov dword [eax + 4], ecx
test byte [esi + 0x8c], 0x80
jne 0x41ac58
mov eax, dword [esi + 0x90]
test eax, eax
jne 0x41ac48
push dword [esi + 0x130]
call dword [sym.imp.KERNEL32.dll_DeleteFiber]
push 0x144
push 0xa
push esi
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp dword [esi + 0x9c], 0
jne 0x41ac78
push esi
call sym.AdobeCollabSync.exe_PR_Free
pop ecx
dec dword [0x4aa048]
mov esi, dword [0x4aa040]
cmp esi, edi
jne 0x41ac26
push ebp
call ebx
cmp dword [esp + 0x2c], 0xffffffff
jne 0x41ac99
mov eax, 0x1388
jmp 0x41aca3
push dword [esp + 0x2c]
call sym.AdobeCollabSync.exe_PR_IntervalToMilliseconds
pop ecx
xor ebp, ebp
inc ebp
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x24]
push eax
push dword [0x4a8e7c]
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
test eax, eax
mov ecx, dword [esp + 0x1c]
jne 0x41acd2
test ecx, ecx
je 0x41b034
test ecx, ecx
je 0x41b04c
cmp dword [ecx + 0x14], 0x49
mov dword [esp + 0x2c], ecx
jne 0x41ae99
mov edi, dword [ecx + 0x20]
xor ecx, ecx
xor esi, esi
test eax, eax
setne cl
push ebp
lea eax, [edi + 0xc]
mov dword [esp + 0x24], edi
dec ecx
push ecx
push eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebp
jne 0x41ad29
cmp dword [esp + 0x10], esi
jne 0x41ad1c
mov eax, dword [esp + 0x18]
mov dword [edi + 0x14], eax
jmp 0x41ad29
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x2c]
mov dword [ecx + 0x2c], eax
mov eax, dword [esp + 0x2c]
mov edi, dword [eax + 0x24]
lea eax, [edi + 0x40]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x2c]
lea eax, [ecx + 0x18]
lea edx, [edi + 8]
mov dword [eax], edx
mov edx, dword [edi + 0xc]
mov dword [ecx + 0x1c], edx
mov ecx, dword [edi + 0xc]
mov dword [ecx], eax
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x20]
push dword [eax + 8]
push edi
call fcn.00423896
add edi, 0x58
mov eax, dword [edi]
cmp eax, edi
pop ecx
pop ecx
je 0x41ad84
lea esi, [eax - 0x6c]
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x6c]
mov dword [eax], ecx
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x70]
mov dword [eax + 4], ecx
push dword [esp + 0x10]
call ebx
test esi, esi
je 0x41ae78
test byte [esi + 0x8c], 0x80
jne 0x41ae89
cmp dword [0x4a7e00], 0
mov eax, dword [esi + 4]
mov dword [esp + 0x2c], eax
je 0x41adc6
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4a9bfc]
mov eax, dword [eax + ecx*4]
mov edi, dword [eax + 0x10]
jmp 0x41add4
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
lea eax, [esi + 0x3c]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [esi + 0x8c], 0x20
je 0x41ae83
mov eax, dword [esi + 0x98]
mov eax, dword [eax + 0x24]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [esi + 0x54], 0
push ebp
push esi
call sym.AdobeCollabSync.exe__PR_DelSleepQ
mov eax, dword [esi + 0x98]
mov eax, dword [eax + 0x24]
pop ecx
pop ecx
add eax, 0x18
push eax
call ebx
push dword [esp + 0x10]
call ebx
mov dword [esi + 0x98], edi
mov dword [esi], ebp
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [edi + 0x24]
mov ecx, dword [esp + 0x2c]
lea edx, [edx + ecx*8 + 0x48]
lea eax, [esi + 0x64]
mov dword [eax], edx
mov edx, dword [edi + 0x24]
shl ecx, 3
mov edx, dword [ecx + edx + 0x4c]
mov dword [esi + 0x68], edx
mov edx, dword [edi + 0x24]
mov edx, dword [ecx + edx + 0x4c]
mov dword [edx], eax
mov edx, dword [edi + 0x24]
mov dword [ecx + edx + 0x4c], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [edi + 0x24]
mov edx, ebp
shl edx, cl
or dword [eax + 0x68], edx
mov dword [esi + 0x54], ebp
push dword [edi + 0x24]
call ebx
inc dword [esp + 0x14]
xor eax, eax
jmp 0x41aca6
push dword [esp + 0x10]
jmp 0x41ae76
lea edi, [esi + 0x3c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
jmp 0x41b01c
mov esi, dword [ecx + 0x18]
sub esi, 0xac
test eax, eax
mov dword [esi + 0xe8], eax
jne 0x41aeb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf0], eax
test byte [esi + 0x8c], 0x80
mov eax, dword [esp + 0x18]
mov dword [esi + 0xec], eax
jne 0x41affd
cmp dword [0x4a7e00], 0
mov eax, dword [esi + 4]
mov dword [esp + 0x2c], eax
je 0x41aef6
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4a9bfc]
mov eax, dword [eax + ecx*4]
mov edi, dword [eax + 0x10]
jmp 0x41af04
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
cmp dword [esp + 0x24], 0xbbbbbbbb
je 0x41ae24
lea eax, [esi + 0x3c]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [esi + 0xa0], 0
cmp dword [esi + 0xa8], 0
jne 0x41aff4
test byte [esi + 0x8c], 0x30
je 0x41aff4
mov eax, dword [esi + 0x98]
mov eax, dword [eax + 0x24]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [esi + 0x54], 0
push ebp
push esi
call sym.AdobeCollabSync.exe__PR_DelSleepQ
mov eax, dword [esi + 0x98]
mov eax, dword [eax + 0x24]
pop ecx
pop ecx
add eax, 0x18
push eax
call ebx
push dword [esp + 0x10]
call ebx
cmp dword [esi + 0x124], 0
jne 0x41af85
mov dword [esi + 0x98], edi
mov eax, dword [esi + 0x98]
mov dword [esi], ebp
push dword [eax + 0x24]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 0x24]
mov ecx, dword [esp + 0x2c]
lea edi, [edi + ecx*8 + 0x48]
lea edx, [esi + 0x64]
mov dword [edx], edi
mov edi, dword [eax + 0x24]
shl ecx, 3
mov edi, dword [ecx + edi + 0x4c]
mov dword [esi + 0x68], edi
mov eax, dword [eax + 0x24]
mov eax, dword [ecx + eax + 0x4c]
mov dword [eax], edx
mov eax, dword [esi + 0x98]
mov eax, dword [eax + 0x24]
mov dword [eax + ecx + 0x4c], edx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi + 0x98]
mov eax, dword [eax + 0x24]
mov edx, ebp
shl edx, cl
or dword [eax + 0x68], edx
mov eax, dword [esi + 0x98]
mov dword [esi + 0x54], ebp
push dword [eax + 0x24]
jmp 0x41ae76
push dword [esp + 0x10]
jmp 0x41ae76
lea edi, [esi + 0x3c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [esi + 0xa0], 0
cmp dword [esi + 0xa8], 0
push edi
jne 0x41ae76
mov dword [esi], ebp
call ebx
push 0
push ebp
push dword [esi + 0xe4]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x41ae78
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x102
je 0x41b046
or eax, 0xffffffff
jmp 0x41b04e
mov eax, dword [esp + 0x14]
jmp 0x41b04e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret