Function at 0x100da610
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ea8d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x38], ebx
call fcn.100da860
push 0xb8
call sub.MFC42u.DLL_operatornew
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [ebp - 0x34], esi
je 0x100da65c
mov ecx, 0x2e
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [ebp - 0x3c], 0x10204834
cmp esi, ebx
mov dword [ebp - 4], ebx
je 0x100da68a
call fcn.101c1870
push eax
push 0x10
push 0x10204820
push esi
call fcn.101c20a0
mov eax, 1
add esp, 0x10
mov dword [ebp - 0x38], eax
jmp 0x100da68f
mov eax, 1
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x18]
push eax
push ecx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100da6c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x100da6c8
lea edx, [ebp - 0x20]
push 0x10222ac0
push edx
mov dword [ebp - 0x20], eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0x18]
xor eax, eax
xor edx, edx
or eax, edi
or ecx, edx
cmp esi, ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
je 0x100da6ec
lea eax, [ebp - 0x30]
push 8
push eax
push esi
call fcn.101c20f0
add esp, 0xc
push 0x8000
call sub.MFC42u.DLL_operatornew
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100da72c
test esi, esi
mov dword [ebp - 4], 0xffffffff
je 0x100da719
push esi
call fcn.101c21a0
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, 0x2000
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
xor edi, edi
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push 0
push ecx
push 0x8000
push ebx
push edx
mov dword [ebp - 0x14], 0
call esi
test eax, eax
jne 0x100da780
test ebx, ebx
je 0x100da769
push ebx
call sub.MFC42u.DLL_operatordelete
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push 0x10222ac0
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x100da795
mov ecx, dword [ebp - 0x14]
push ecx
push ebx
push eax
call fcn.101c20f0
add esp, 0xc
mov eax, dword [ebp - 0x14]
add edi, eax
cmp eax, 0x8000
jb 0x100da7ad
mov eax, dword [ebp + 0x10]
cmp eax, 0xffffffff
je 0x100da73f
cmp edi, eax
jb 0x100da73f
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x7b]
mov byte [ebp - 0x7c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x34]
lea edx, [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x7c]
push edx
push eax
push ecx
mov dword [ebp + 8], 0
call fcn.101c2110
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
add esp, 0xc
mov ecx, esi
push 0xffffffffffffffff
push edx
call sub.MFC42u.DLL_CByteArray::SetSize
mov ecx, dword [ebp + 8]
mov edi, dword [esi + 4]
mov eax, ecx
lea esi, [ebp - 0x7c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
je 0x100da80f
push ebx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov esi, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x100da82c
push esi
call fcn.101c21a0
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret