Function at 0x4215fc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x4a9e4c], 0
jne 0x421610
call sym.AdobeCollabSync.exe_PR_Init
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x42162b
call fcn.004215a2
mov edi, eax
test edi, edi
jne 0x42162b
or eax, 0xffffffff
jmp 0x421801
push ebx
mov ebx, dword [ebp + 0xc]
and dword [ebx + 0x14], 0
push esi
lea esi, [ebx + 0xc]
mov dword [esi], 1
push dword [edi + 0x14]
call sym.AdobeCollabSync.exe_PR_Lock
cmp dword [edi + 0x10], 0
pop ecx
je 0x42166e
push 0
push 0xffffe8d5
mov dword [esi], 0xfffffffd
call sym.AdobeCollabSync.exe_PR_SetError
push dword [edi + 0x14]
call sym.AdobeCollabSync.exe_PR_Unlock
add esp, 0xc
jmp 0x421769
lea eax, [edi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x3c]
cmp word [eax], 0
jne 0x421698
call sym.AdobeCollabSync.exe_PR_IntervalNow
mov dword [edi + 0x38], eax
jmp 0x421698
push edi
call fcn.00420d04
mov esi, eax
test esi, esi
pop ecx
jne 0x4216a9
mov ecx, dword [edi + 0x3c]
push ebx
call fcn.00420c75
mov esi, eax
cmp esi, 1
pop ecx
je 0x42168b
lea eax, [edi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [edi + 0x20]
call sym.AdobeCollabSync.exe_PR_NotifyCondVar
push dword [edi + 0x14]
neg esi
sbb esi, esi
mov dword [ebp + 8], esi
call sym.AdobeCollabSync.exe_PR_Unlock
push 0x30
push 1
call sym.AdobeCollabSync.exe_PR_Calloc
mov esi, eax
add esp, 0x10
test esi, esi
mov dword [ebp - 4], esi
jne 0x4216fc
push eax
push 0xffffe890
call sym.AdobeCollabSync.exe_PR_SetError
push dword [ebx + 8]
mov esi, edi
call fcn.00420e84
add esp, 0xc
jmp 0x4217fc
mov dword [esi + 0x14], 0x49
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], edi
mov eax, dword [ebx + 0x10]
cmp eax, 0xffffffff
je 0x421749
push esi
push 0x420e20
push eax
call fcn.00420ab1
add esp, 0xc
test eax, eax
mov dword [esi + 0x28], eax
jne 0x421749
push dword [ebx + 8]
mov esi, edi
call fcn.00420e84
push dword [ebp - 4]
call sym.AdobeCollabSync.exe_PR_Free
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xffffe8aa
jmp 0x421762
push 0
push dword [ebx + 8]
call sym.AdobeCollabSync.exe_PR_GetIdentitiesLayer
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
jne 0x421771
push eax
push 0xffffe89d
call sym.AdobeCollabSync.exe_PR_SetError
pop ecx
pop ecx
or eax, 0xffffffff
jmp 0x4217ff
mov eax, dword [eax + 4]
cmp dword [eax + 0x2c], 0
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0xc], ecx
jne 0x421794
push ecx
call fcn.0041b336
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
pop ecx
mov dword [eax + 0x2c], 1
push esi
push 0
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4217fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
mov dword [ebp - 0xc], eax
je 0x4217fc
cmp dword [ebx + 0x10], 0xffffffff
je 0x4217ef
push 1
push 0xffffffffffffffff
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 1
jne 0x4217db
mov esi, dword [esi + 0x28]
call fcn.00420b47
push dword [ebx + 8]
mov esi, edi
call fcn.00420e84
push dword [ebp - 4]
call sym.AdobeCollabSync.exe_PR_Free
pop ecx
pop ecx
push dword [ebp - 0xc]
call fcn.00429d25
or dword [ebp + 8], 0xffffffff
pop ecx
mov eax, dword [ebp + 8]
pop esi
pop ebx
pop edi
leave
ret