Function at 0x427680
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 3
pop eax
xor edi, edi
xor esi, esi
cmp dword [ebp + 0x14], eax
jle 0x427699
mov dword [ebp + 0x14], eax
jmp 0x4276a1
cmp dword [ebp + 0x14], edi
jge 0x4276a1
mov dword [ebp + 0x14], edi
cmp dword [0x4a9e4c], edi
jne 0x4276ae
call sym.AdobeCollabSync.exe_PR_Init
test word [ebp + 0x24], 0x200
jne 0x4276be
call fcn.0041a4ae
mov dword [ebp - 4], eax
cmp dword [0x4a9e50], edi
je 0x4276cd
mov dword [ebp + 0x18], 1
cmp dword [ebp + 0x18], 1
je 0x4276dd
cmp dword [ebp + 0x18], 2
jne 0x427810
mov eax, dword [ebp + 0x24]
and eax, 0xfffffdff
mov ebx, 0x80
or eax, ebx
cmp dword [0x4aaf84], edi
mov dword [ebp + 0x24], eax
jbe 0x427717
push dword [0x4aafa4]
call sym.AdobeCollabSync.exe_PR_Lock
cmp dword [0x4aaf84], edi
pop ecx
jne 0x42773e
push dword [0x4aafa4]
call sym.AdobeCollabSync.exe_PR_Unlock
pop ecx
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sym.AdobeCollabSync.exe__PR_NativeCreateThread
add esp, 0x20
mov esi, eax
jmp 0x427c2b
mov esi, dword [0x4aaf98]
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
push dword [0x4aafa4]
dec dword [0x4aaf84]
call sym.AdobeCollabSync.exe_PR_Unlock
lea eax, [esi + 0x74]
mov dword [eax], eax
mov dword [esi + 0x78], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x24]
pop ecx
or eax, ebx
cmp dword [ebp + 8], 1
lea ecx, [esi + 0x8c]
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0x14], edi
mov dword [ecx], eax
jne 0x4277b1
or eax, 1
mov dword [ecx], eax
push 0x4ab0e8
jmp 0x4277b6
push 0x4ab0a0
call sym.AdobeCollabSync.exe_PR_AtomicIncrement
cmp dword [ebp + 0x1c], edi
pop ecx
lea ebx, [esi + 0x94]
jne 0x4277da
cmp dword [ebx], edi
jne 0x4277e9
push dword [0x4ab0d8]
call sym.AdobeCollabSync.exe_PR_NewCondVar
mov dword [ebx], eax
jmp 0x4277e8
mov eax, dword [ebx]
cmp eax, edi
je 0x4277e9
push eax
call sym.AdobeCollabSync.exe_PRP_DestroyNakedCondVar
mov dword [ebx], edi
pop ecx
mov eax, dword [ebp + 0x14]
push eax
mov dword [esi + 4], eax
lea eax, [esi + 0xac]
push eax
call fcn.0041a1b5
push esi
mov dword [esi], 2
call fcn.0041b26c
add esp, 0xc
jmp 0x427c2b
cmp dword [0x4aaf80], edi
jbe 0x427838
push dword [0x4aafa4]
call sym.AdobeCollabSync.exe_PR_Lock
cmp dword [0x4aaf80], edi
pop ecx
jne 0x427868
push dword [0x4aafa4]
call sym.AdobeCollabSync.exe_PR_Unlock
pop ecx
mov ebx, dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 0x20]
call fcn.0041a373
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x42792c
push edi
push 0xffffe890
call sym.AdobeCollabSync.exe_PR_SetError
pop ecx
pop ecx
xor eax, eax
jmp 0x427c2d
mov eax, dword [0x4aaf88]
mov ecx, 0x4aaf88
jmp 0x42788e
lea esi, [eax - 0x64]
mov edx, dword [esi + 0x10]
mov edx, dword [edx + 0x1c]
cmp edx, dword [ebp + 0x20]
jb 0x42788a
cmp dword [esi + 0x90], edi
je 0x427894
mov eax, dword [eax]
xor esi, esi
cmp eax, ecx
jne 0x427874
jmp 0x4278ab
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x64]
mov dword [eax], ecx
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x68]
mov dword [eax + 4], ecx
dec dword [0x4aaf80]
push dword [0x4aafa4]
call sym.AdobeCollabSync.exe_PR_Unlock
cmp esi, edi
pop ecx
je 0x427838
cmp dword [ebp + 0x1c], edi
lea eax, [esi + 0x74]
mov dword [eax], eax
mov dword [esi + 0x78], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0x14], edi
mov dword [esi + 4], eax
lea ebx, [esi + 0x94]
jne 0x427914
cmp dword [ebx], edi
jne 0x4279f3
push dword [0x4ab0d8]
call sym.AdobeCollabSync.exe_PR_NewCondVar
pop ecx
mov dword [ebx], eax
jmp 0x4279f3
mov eax, dword [ebx]
cmp eax, edi
je 0x4279f3
push eax
call sym.AdobeCollabSync.exe_PRP_DestroyNakedCondVar
pop ecx
mov dword [ebx], edi
jmp 0x4279f3
mov eax, dword [ebp + 0x14]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x74]
push esi
mov dword [esi + 0x9c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x10], edi
mov dword [esi + 8], ebx
mov dword [eax], eax
mov dword [esi + 0x78], eax
call fcn.0041a104
cmp eax, 0xffffffff
pop ecx
jne 0x427983
cmp dword [esi + 0x9c], 1
jne 0x427971
push dword [esi + 0x10]
call fcn.00428efd
jmp 0x427977
push esi
call sym.AdobeCollabSync.exe_PR_Free
pop ecx
push edi
push 0xffffe8aa
jmp 0x42785a
lea ebx, [esi + 0x3c]
push ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 8]
push eax
push 0x4269c9
push edi
push esi
call fcn.0041a628
add esp, 0x10
cmp dword [ebp - 8], edi
jne 0x4279d8
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp dword [esi + 0x9c], 1
jne 0x4279c2
push dword [esi + 0x10]
call fcn.00428efd
jmp 0x427860
push dword [esi + 0x24]
call sym.AdobeCollabSync.exe_PR_Free
push esi
mov dword [esi + 0x24], edi
call sym.AdobeCollabSync.exe_PR_Free
jmp 0x42785f
cmp dword [ebp + 0x1c], edi
jne 0x4279f3
push dword [0x4ab0d8]
call sym.AdobeCollabSync.exe_PR_NewCondVar
cmp eax, edi
pop ecx
mov dword [esi + 0x94], eax
je 0x4279a5
push dword [0x4aafa8]
call sym.AdobeCollabSync.exe_PR_Lock
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x8c], eax
inc dword [0x4ab098]
cmp dword [ebp + 8], 1
mov eax, dword [0x4ab098]
pop ecx
mov dword [esi + 0x88], eax
jne 0x427a2e
or dword [esi + 0x8c], 1
inc dword [0x4ab0e8]
jmp 0x427a34
inc dword [0x4ab0a0]
mov dword [esi], 1
push dword [0x4aafa8]
call sym.AdobeCollabSync.exe_PR_Unlock
test word [esi + 0x8c], 0x200
mov edi, dword [0x4aac14]
mov ebx, dword fs:[0x2c]
pop ecx
jne 0x427a71
mov eax, dword [ebp - 4]
test byte [eax + 0x8c], 0x80
je 0x427a71
call sym.AdobeCollabSync.exe__PR_GetPrimordialCPU
jmp 0x427a91
cmp dword [0x4a8e00], 0
je 0x427a85
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0x10]
jmp 0x427a91
push dword [0x4ab06c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test word [esi + 0x8c], 0x200
mov dword [esi + 0x98], eax
jne 0x427b80
mov eax, dword [ebp - 4]
test byte [eax + 0x8c], 0x80
jne 0x427b75
cmp dword [0x4a8e00], 0
je 0x427aca
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0xc]
jmp 0x427ad6
push dword [0x4ab05c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [0x4a8e00], 0
mov dword [ebp + 0x24], eax
je 0x427af1
mov eax, dword [ebx + edi*4]
mov dword [eax + 0xc], 1
jmp 0x427aff
push 1
push dword [0x4ab05c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0x98]
push dword [eax + 0x24]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x98]
mov ebx, dword [eax + 0x24]
mov edx, dword [ebp + 0x14]
lea ebx, [ebx + edx*8 + 0x48]
lea ecx, [esi + 0x64]
mov dword [ecx], ebx
mov ebx, dword [eax + 0x24]
shl edx, 3
mov ebx, dword [edx + ebx + 0x4c]
mov dword [esi + 0x68], ebx
mov eax, dword [eax + 0x24]
mov eax, dword [edx + eax + 0x4c]
mov dword [eax], ecx
mov eax, dword [esi + 0x98]
mov eax, dword [eax + 0x24]
mov dword [eax + edx + 0x4c], ecx
mov ecx, dword [ebp + 0x14]
mov eax, dword [esi + 0x98]
mov eax, dword [eax + 0x24]
xor edx, edx
inc edx
mov ebx, edx
shl ebx, cl
or dword [eax + 0x68], ebx
mov eax, dword [esi + 0x98]
mov dword [esi + 0x54], edx
push dword [eax + 0x24]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword fs:[0x2c]
test word [esi + 0x8c], 0x200
je 0x427b84
push 0
jmp 0x427b91
mov eax, dword [ebp - 4]
test byte [eax + 0x8c], 0x80
je 0x427b97
push esi
call fcn.0041b26c
pop ecx
test word [esi + 0x8c], 0x200
jne 0x427c2b
mov eax, dword [ebp - 4]
test byte [eax + 0x8c], 0x80
jne 0x427c2b
cmp dword [ebp + 0x24], 0
jne 0x427c05
cmp dword [0x4a8e00], 0
je 0x427bcc
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0x10]
jmp 0x427bd8
push dword [0x4ab06c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], 0
je 0x427c05
cmp dword [0x4a8e00], 0
je 0x427bf2
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0x10]
jmp 0x427bfe
push dword [0x4ab06c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.00418d0c
pop ecx
cmp dword [0x4a8e00], 0
je 0x427c1c
mov eax, dword [ebx + edi*4]
mov ecx, dword [ebp + 0x24]
mov dword [eax + 0xc], ecx
jmp 0x427c2b
push dword [ebp + 0x24]
push dword [0x4ab05c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret