Function at 0x41bf80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push ebx
mov ebx, dword [eax + 0x28]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
cmp dword [eax + 0x30], edi
jne 0x41c222
call fcn.0041a785
mov esi, eax
cmp dword [esi + 0xa8], edi
je 0x41bfc1
push edi
push 0xffffe8d5
call sym.AdobeCollabSync.exe_PR_SetError
pop ecx
pop ecx
or eax, 0xffffffff
jmp 0x41c022
push 0x14
lea eax, [esi + 0xac]
push edi
push eax
mov dword [ebp - 8], eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
lea eax, [esi + 0xb8]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call edi
mov dword [esi + 0xb4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
cmp dword [eax + 8], 1
jne 0x41c057
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c027
push 1
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push ebx
call edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3e5
jne 0x41c04c
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x41c013
call esi
push eax
call fcn.00429849
jmp 0x41bfbb
cmp dword [eax + 0x2c], 0
jne 0x41c071
push ebx
call fcn.0041b53d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
pop ecx
mov dword [eax + 0x2c], 1
cmp dword [0x4a8e34], 0
je 0x41c086
mov eax, dword [esi + 0x12c]
mov dword [esi + 0xbc], eax
lea edi, [esi + 0x3c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x8c]
test ax, 0x1000
jne 0x41c0c3
test al, 2
je 0x41c0c3
and eax, 0xfffffffd
push 0
push 0xffffe897
mov dword [esi + 0x8c], eax
call sym.AdobeCollabSync.exe_PR_SetError
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x41bfbc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esi + 0xa0], 1
mov dword [esi], 6
call edi
lea eax, [esi + 0xac]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
mov dword [esi + 0xa4], ebx
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov dword [ebp + 8], eax
jne 0x41c167
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
mov dword [ebp - 8], eax
je 0x41c167
lea ebx, [esi + 0x3c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x8c]
and dword [esi + 0xa0], 0
test ax, 0x1000
mov dword [esi], 2
jne 0x41c157
test al, 2
je 0x41c157
and eax, 0xfffffffd
push 0
push 0xffffe897
mov dword [esi + 0x8c], eax
call sym.AdobeCollabSync.exe_PR_SetError
pop ecx
pop ecx
push ebx
call edi
jmp 0x41bfbc
push ebx
call edi
push dword [ebp - 8]
call fcn.00429849
jmp 0x41bfbb
or edi, 0xffffffff
cmp dword [0x4a8e34], 0
je 0x41c1b1
cmp dword [ebp + 8], 0
je 0x41c1b1
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0041b1d2
pop ecx
pop ecx
xor ecx, ecx
cmp dword [esi + 0xa8], ecx
je 0x41c1d4
mov eax, dword [esi + 0x8c]
test ax, 0x1000
jne 0x41c1c5
test al, 2
je 0x41c1c5
and eax, 0xfffffffd
push ecx
mov dword [esi + 0x8c], eax
push 0xffffe897
jmp 0x41c1cb
push edi
mov eax, esi
call fcn.0041b343
cmp eax, edi
pop ecx
jne 0x41c186
mov eax, edi
jmp 0x41c022
push ecx
push 0xffffe89a
call sym.AdobeCollabSync.exe_PR_SetError
pop ecx
pop ecx
jmp 0x41c1be
cmp dword [esi + 0xe8], ecx
jne 0x41c1e9
push dword [esi + 0xf0]
call fcn.00429849
jmp 0x41c1d1
mov eax, dword [esi + 0xb4]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0xb8]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0xec]
cdq
add dword [ebp - 0x14], eax
push ecx
lea eax, [ebp - 0x10]
adc dword [ebp - 0x10], edx
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 0xec]
jmp 0x41c022
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41c01f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
jmp 0x41c15d