Function at 0x100ae8e4
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push 0x230
mov eax, 0x100e7e8b
call fcn.10001af6
mov edi, ecx
mov eax, dword [vtable.VprocessGlobals.0]
xor ebx, ebx
mov ecx, dword [eax + 0x24]
movsx eax, byte [edi + 8]
push eax
push dword [edi + 0x50]
push str.VdirectUpdateLock::internalPreCommit__InFilePath___s__Locked___d_n
push 3
push ebx
push 0x10178fec
call ecx
add esp, 0x18
mov byte [edi + 0x128], bl
and dword [ebp + 8], 8
je 0x100ae934
lea ecx, [edi + 0x68]
call fcn.100851b2
mov byte [edi + 0x128], 1
mov esi, dword [edi + 0x120]
lea ecx, [ebp - 0x230]
push 0xffffffffffffffff
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x230], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x22c], eax
call fcn.100aa27c
mov ecx, esi
mov dword [ebp - 0x224], eax
call fcn.100aa27c
mov ecx, dword [edi + 0x120]
mov dword [edi + 0x124], eax
test ecx, ecx
je 0x100ae97c
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [ebp - 0x21c]
mov dword [edi + 0x120], ebx
mov dword [edi + 0x64], ebx
call fcn.10005575
lea eax, [edi + 0x68]
push eax
call fcn.100aa27c
lea ecx, [edi + 0x10]
mov dword [ebp - 4], ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, eax
test esi, esi
jne 0x100aec4e
lea eax, [edi + 0x68]
push eax
lea ecx, [ebp - 0x238]
call sym.fpsrvutl.dll_Ordinal_4804
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 1
push eax
call sym.fpsrvutl.dll_Ordinal_4730
test al, al
je 0x100ae9f6
push dword [edi + 0x68]
push 5
pop edx
mov ecx, 0x20005
call fcn.1005ca7d
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], bl
mov esi, eax
call sym.fpsrvutl.dll_Ordinal_974
jmp 0x100aec4e
mov eax, dword [ebp - 0x238]
cmp dword [eax - 4], 0x7d00
jbe 0x100aea0f
push dword [edi + 0x68]
mov edx, 0xa1
jmp 0x100ae9d7
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], bl
call sym.fpsrvutl.dll_Ordinal_974
push ebx
push 0x80
push 4
push ebx
push 3
push 0xc0000000
lea eax, [ebp - 0x21c]
push eax
call fcn.100aa27c
mov ecx, eax
mov dword [edi + 0x12c], ecx
cmp ecx, 0xffffffff
jne 0x100aea63
cmp byte [edi + 0x14c], 0
jne 0x100aeb4c
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, 0x20002
jmp 0x100aec42
cmp byte [edi + 0x60], 0
je 0x100aea85
lea eax, [edi + 0x144]
push eax
lea eax, [edi + 0x13c]
push eax
push ebx
push ecx
call dword [sym.imp.kernel32.dll_GetFileTime]
mov ecx, dword [edi + 0x12c]
push ebx
push ecx
call dword [sym.imp.kernel32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x100aeb63
cmp esi, dword [ebp - 0x224]
jne 0x100aeb63
cmp dword [ebp + 8], 0
jne 0x100aeb63
cmp dword [0x1017ca10], 0
je 0x100aeabf
mov ecx, esi
call fcn.100aa27c
jmp 0x100aeac7
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
push ebx
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x22c], eax
push ecx
push esi
push eax
push dword [edi + 0x12c]
mov dword [ebp - 0x228], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x100aeb1c
cmp dword [ebp - 0x228], esi
mov esi, dword [ebp - 0x22c]
jne 0x100aeb22
push dword [ebp - 0x224]
push esi
push dword [edi + 0x124]
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x100aeb22
mov byte [ebp - 0x21d], bl
jmp 0x100aeb29
mov esi, dword [ebp - 0x22c]
mov byte [ebp - 0x21d], 1
push esi
call fcn.100aa27c
cmp byte [ebp - 0x21d], 0
pop ecx
jne 0x100aeb63
push dword [edi + 0x12c]
call dword [sym.imp.kernel32.dll_CloseHandle]
or dword [edi + 0x12c], 0xffffffff
mov edx, ebx
mov dword [edi + 0x134], edx
mov dword [edi + 0xb0], 1
jmp 0x100aec82
push 2
push ebx
push ebx
push dword [edi + 0x12c]
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov esi, eax
cmp esi, 0xffffffff
je 0x100aec37
mov eax, dword [ebp - 0x224]
mov edx, eax
cmp esi, eax
mov dword [edi + 0x138], esi
setb cl
mov byte [edi + 0x130], cl
jae 0x100aeb4e
push ebx
sub eax, esi
lea ecx, [ebp - 0x23c]
push ecx
push eax
mov dword [ebp - 0x224], eax
mov eax, dword [edi + 0x124]
add eax, esi
push eax
push dword [edi + 0x12c]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x100aebd8
mov eax, dword [ebp - 0x224]
cmp dword [ebp - 0x23c], eax
jne 0x100aebd8
mov edx, esi
jmp 0x100aeb4e
call dword [sym.imp.kernel32.dll_GetLastError]
push ebx
push ebx
push esi
push dword [edi + 0x12c]
mov dword [ebp - 0x228], eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, esi
jne 0x100aec37
push dword [edi + 0x12c]
call dword [sym.imp.kernel32.dll_SetEndOfFile]
test eax, eax
je 0x100aec37
push dword [edi + 0x12c]
call dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x100aec28
mov esi, dword [edi + 0x68]
call dword [sym.imp.kernel32.dll_GetLastError]
push esi
mov ecx, 0x20006
jmp 0x100aec45
or dword [edi + 0x12c], 0xffffffff
mov eax, dword [ebp - 0x228]
jmp 0x100aec3d
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, 0x2000c
push dword [edi + 0x68]
mov edx, eax
call fcn.1005ca7d
mov esi, eax
mov eax, dword [edi + 0x12c]
cmp eax, 0xffffffff
je 0x100aec67
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
or dword [edi + 0x12c], 0xffffffff
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
push dword [edi + 0x124]
call fcn.100aa27c
mov dword [edi + 0x124], ebx
mov ebx, esi
pop ecx
lea ecx, [ebp - 0x21c]
call fcn.100057a4
mov eax, ebx
call fcn.10001b2d
ret 4