Function at 0x41bd79
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 0x41c01b
call fcn.0041a4ae
mov esi, eax
cmp dword [esi + 0xa8], edi
je 0x41bdba
push edi
push 0xffffe8d5
call sym.AdobeCollabSync.exe_PR_SetError
pop ecx
pop ecx
or eax, 0xffffffff
jmp 0x41be1b
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 0x41be50
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 0x41be20
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 0x41be45
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 0x41be0c
call esi
push eax
call fcn.00429d25
jmp 0x41bdb4
cmp dword [eax + 0x2c], 0
jne 0x41be6a
push ebx
call fcn.0041b336
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
pop ecx
mov dword [eax + 0x2c], 1
cmp dword [0x4a9e50], 0
je 0x41be7f
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 0x41bebc
test al, 2
je 0x41bebc
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 0x41bdb5
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 0x41bf60
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
mov dword [ebp - 8], eax
je 0x41bf60
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 0x41bf50
test al, 2
je 0x41bf50
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 0x41bdb5
push ebx
call edi
push dword [ebp - 8]
call fcn.00429d25
jmp 0x41bdb4
or edi, 0xffffffff
cmp dword [0x4a9e50], 0
je 0x41bfaa
cmp dword [ebp + 8], 0
je 0x41bfaa
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0041afcb
pop ecx
pop ecx
xor ecx, ecx
cmp dword [esi + 0xa8], ecx
je 0x41bfcd
mov eax, dword [esi + 0x8c]
test ax, 0x1000
jne 0x41bfbe
test al, 2
je 0x41bfbe
and eax, 0xfffffffd
push ecx
mov dword [esi + 0x8c], eax
push 0xffffe897
jmp 0x41bfc4
push edi
mov eax, esi
call fcn.0041b13c
cmp eax, edi
pop ecx
jne 0x41bf7f
mov eax, edi
jmp 0x41be1b
push ecx
push 0xffffe89a
call sym.AdobeCollabSync.exe_PR_SetError
pop ecx
pop ecx
jmp 0x41bfb7
cmp dword [esi + 0xe8], ecx
jne 0x41bfe2
push dword [esi + 0xf0]
call fcn.00429d25
jmp 0x41bfca
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 0x41be1b
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 0x41be18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
jmp 0x41bf56