Function at 0x10140ff0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x64]
mov ecx, 0x19
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x10191a80]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov ecx, 0x101997a3
call fcn.1014e9b0
cmp dword [ebp + 0x10], 0
jg 0x1014103b
jl 0x10141032
cmp dword [ebp + 0xc], 0
ja 0x1014103b
xor eax, eax
xor edx, edx
jmp 0x101411c4
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x10141067
mov esi, esp
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0xc]
call dword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
cmp esi, esp
call fcn.1014e980
jmp 0x101411c4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov esi, esp
mov ecx, dword [ebp - 0xc]
call dword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
cmp esi, esp
call fcn.1014e980
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jbe 0x101410f4
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.10004650
add esp, 8
mov edx, dword [eax]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
push eax
mov esi, esp
mov ecx, dword [ebp - 0xc]
call dword [sym.imp.MSVCP140D.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
cmp esi, esp
call fcn.1014e980
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10006880
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x40]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0x18], eax
mov esi, esp
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0xc]
call dword [sym.imp.MSVCP140D.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
cmp esi, esp
call fcn.1014e980
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x4c], 0
je 0x101411b5
mov ecx, dword [ebp - 0xc]
call fcn.10121e90
mov dword [ebp - 0x4c], 0xfff
cmp dword [ebp - 0x18], 0xfff
jbe 0x1014116e
mov esi, esp
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x4c]
push ecx
push 0xfff
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ucrtbased.dll_fread]
add esp, 0x10
cmp esi, esp
call fcn.1014e980
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x58]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x58]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x58], 0xfff
je 0x1014116c
xor eax, eax
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
sbb edx, eax
mov eax, ecx
jmp 0x101411c4
jmp 0x10141110
cmp dword [ebp - 0x18], 0
jbe 0x101411b5
mov esi, esp
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ucrtbased.dll_fread]
add esp, 0x10
cmp esi, esp
call fcn.1014e980
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x124], ecx
mov edx, dword [ebp - 0x124]
sub edx, dword [ebp - 0x120]
mov dword [ebp - 0x18], edx
xor eax, eax
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
sbb edx, eax
mov eax, ecx
push edx
mov ecx, ebp
push eax
lea edx, [0x101411f8]
call fcn.1014e920
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014e9f0
add esp, 0x124
cmp ebp, esp
call fcn.1014e980
mov esp, ebp
pop ebp
ret 0xc