Function at 0x1000ade0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fa8d8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
mov eax, dword [0x1013f030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [edi + 0x2c]
push eax
mov dword [ebp - 0x18], vtable.ProtocolFilters::AutoLock.0
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x50], vtable.ProtocolFilters::IOB.0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0x6400000
mov dword [ebp - 0x3c], 1
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.10009840
push eax
lea eax, [ebp - 0x20]
push eax
mov esi, edi
mov byte [ebp - 4], 2
call fcn.1000f7c0
cmp dword [ebp - 0x54], 0x10
jb 0x1000ae6f
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.10031f94
add esp, 4
mov ebx, dword [ebp - 0x20]
mov edx, dword [edi + 0x18]
mov eax, dword [edi]
mov dword [ebp - 0x24], edx
test ebx, ebx
je 0x1000ae82
cmp ebx, eax
je 0x1000ae87
call fcn.10031672
mov esi, dword [ebp - 0x1c]
cmp esi, dword [ebp - 0x24]
jne 0x1000aeae
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test ebx, ebx
jne 0x1000af2e
call fcn.10031672
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x1000aec3
call fcn.10031672
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], edx
test ebx, ebx
jne 0x1000af32
call fcn.10031672
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x1000aee4
call fcn.10031672
mov eax, dword [esi + 0x30]
mov ecx, dword [edi + 0x28]
push 0
push eax
push ecx
call fcn.1003170c
mov edx, dword [edi + 0x28]
add esp, 0xc
push edx
push 0x10
lea eax, [ebp - 0x38]
push 1
push eax
call fcn.10031405
add esp, 0x10
cmp eax, 0x10
je 0x1000af36
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx]
jmp 0x1000aeb9
mov eax, dword [ebx]
jmp 0x1000aeda
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
test ebx, ebx
jne 0x1000afab
call fcn.10031672
cmp esi, dword [ebx + 0x18]
jne 0x1000af55
call fcn.10031672
mov ecx, dword [esi + 0x30]
mov edx, dword [edi + 0x28]
push 0
push ecx
push edx
call fcn.1003170c
mov eax, dword [edi + 0x28]
add esp, 0xc
push eax
push 0x10
lea ecx, [ebp - 0x38]
push 1
push ecx
call fcn.10031afe
add esp, 0x10
cmp eax, 0x10
je 0x1000afaf
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.10013810
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [ebx]
jmp 0x1000af4b
mov eax, dword [edi + 0x28]
push eax
call fcn.10032323
add esp, 4
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.10013810
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc