Function at 0x1006fa20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10561040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
mov ecx, 0x108ce8bf
call fcn.10297320
nop
cmp dword [ebp + 0x10], 0
jg 0x1006fa55
jl 0x1006fa4c
cmp dword [ebp + 0xc], 0
ja 0x1006fa55
xor eax, eax
xor edx, edx
jmp 0x1006fbf7
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x38], 0
je 0x1006fa78
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
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__]
jmp 0x1006fbf7
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
cmp dword [edx], 0
je 0x1006faa2
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ecx]
mov dword [ebp - 0x1c], edx
jmp 0x1006faa9
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x1006fb45
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 8]
jae 0x1006fad3
lea edx, [ebp - 0xc]
mov dword [ebp - 0x20], edx
jmp 0x1006fad9
lea eax, [ebp - 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.VCRUNTIME140D.dll_memcpy]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x14]
mov dword [ebp + 8], edx
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x2c]
mov eax, dword [edx]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x2c]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ecx]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1c]
mov dword [ecx], edx
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x4c], 0
je 0x1006fbe8
mov ecx, dword [ebp - 0x10]
call fcn.10071850
mov dword [ebp - 0x48], 0xfff
cmp dword [ebp - 8], 0xfff
jbe 0x1006fbb6
mov eax, dword [ebp - 0x10]
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
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x18]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 8], ecx
cmp dword [ebp - 0x18], 0xfff
je 0x1006fbb4
xor edx, edx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
sbb ecx, edx
mov edx, ecx
jmp 0x1006fbf7
jmp 0x1006fb61
cmp dword [ebp - 8], 0
jbe 0x1006fbe8
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ucrtbased.dll_fread]
add esp, 0x10
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x3c]
mov dword [ebp - 8], ecx
xor edx, edx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
sbb ecx, edx
mov edx, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1019a1c0
mov esp, ebp
pop ebp
ret 0xc