Function at 0x100092d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x5c]
mov ecx, 0x17
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x1016d640]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov ecx, 0x1017121a
call fcn.10009c40
cmp dword [ebp + 0x10], 0
jg 0x1000931b
jl 0x10009312
cmp dword [ebp + 0xc], 0
ja 0x1000931b
xor eax, eax
xor edx, edx
jmp 0x1000948e
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x10009347
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.10009c10
jmp 0x1000948e
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.10009c10
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jbe 0x100093d4
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.100037b0
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.10009c10
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10007b30
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.10009c10
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x4c], 0
je 0x1000947f
mov ecx, dword [ebp - 0xc]
call fcn.10007460
mov dword [ebp - 0x4c], 0xfff
cmp dword [ebp - 0x18], 0xfff
jbe 0x1000944e
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.10009c10
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 0x1000944c
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 0x1000948e
jmp 0x100093f0
cmp dword [ebp - 0x18], 0
jbe 0x1000947f
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.10009c10
mov ecx, dword [ebp - 0x18]
sub ecx, eax
mov dword [ebp - 0x18], ecx
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, [0x100094c0]
call fcn.10009bb0
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10009c80
add esp, 0x11c
cmp ebp, esp
call fcn.10009c10
mov esp, ebp
pop ebp
ret 0xc