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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fa940
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x1013f030]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [edi + 0x2c]
push eax
mov esi, ecx
mov dword [ebp - 0x34], vtable.ProtocolFilters::AutoLock.0
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.10009840
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x3c]
push ecx
mov esi, edi
mov byte [ebp - 4], 1
call fcn.1000f7c0
mov esi, dword [ebp - 0x3c]
mov edx, dword [edi + 0x18]
mov eax, dword [edi]
mov dword [ebp - 0x40], edx
test esi, esi
je 0x1000a2c5
cmp esi, eax
je 0x1000a2ca
call fcn.10031672
mov ebx, dword [ebp - 0x38]
cmp ebx, dword [ebp - 0x40]
jne 0x1000a307
cmp dword [ebp - 0x14], 0x10
jb 0x1000a2e4
mov eax, dword [ebp - 0x28]
push eax
call fcn.10031f94
add esp, 4
mov ecx, dword [ebp - 0x30]
push ecx
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x1000a43f
test esi, esi
jne 0x1000a3ac
call fcn.10031672
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x1000a320
call fcn.10031672
mov edx, dword [ebx + 0x30]
mov eax, dword [edi + 0x28]
push 0
push edx
push eax
call fcn.1003170c
mov ecx, dword [edi + 0x28]
add esp, 0xc
push ecx
push 0x10
lea edx, [ebp - 0x54]
push 1
push edx
call fcn.10031405
add esp, 0x10
cmp eax, 0x10
jne 0x1000a2d2
test esi, esi
jne 0x1000a3b3
call fcn.10031672
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x1000a360
call fcn.10031672
mov edx, dword [ebx + 0x30]
mov eax, dword [edi + 0x28]
push 0
push edx
push eax
call fcn.1003170c
mov edx, dword [edi + 0x28]
add esp, 0xc
push edx
push 0x10
lea eax, [ebp - 0x54]
xor ecx, ecx
push 1
push eax
mov word [ebp - 0x52], cx
call fcn.10031afe
add esp, 0x10
cmp eax, 0x10
je 0x1000a3b7
cmp dword [ebp - 0x14], 0x10
jb 0x1000a3a3
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.10031f94
add esp, 4
mov edx, dword [ebp - 0x30]
push edx
jmp 0x1000a2e8
mov eax, dword [esi]
jmp 0x1000a316
mov eax, dword [esi]
jmp 0x1000a356
test esi, esi
jne 0x1000a45a
call fcn.10031672
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x1000a3d0
call fcn.10031672
cmp dword [ebx + 0x48], 0
je 0x1000a3f7
lea esi, [ebp - 0x3c]
call fcn.1000f840
mov esi, dword [eax + 0x38]
test esi, esi
je 0x1000a3f4
push esi
call fcn.1000b2f0
push esi
call fcn.10031f94
add esp, 4
mov esi, dword [ebp - 0x3c]
push ebx
push esi
lea eax, [ebp - 0x44]
push eax
push edi
call fcn.1000f4b0
mov ecx, dword [edi + 0x28]
push ecx
call fcn.10032323
add esp, 4
cmp dword [ebp - 0x14], 0x10
jb 0x1000a421
mov edx, dword [ebp - 0x28]
push edx
call fcn.10031f94
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10030c80
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
jmp 0x1000a3c6