Function at 0x1001eec0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov eax, dword [edi + 0x168]
sub eax, ecx
je 0x1001efa5
sub eax, 1
je 0x1001ef9a
sub eax, 2
jne 0x1001efab
mov ecx, dword [esi + 0x7c]
test ecx, ecx
jne 0x1001ef1c
push 0
push 0
push 0x27
push 0
push 0
lea ecx, [edi + 8]
xor edx, edx
call fcn.10009cc0
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x60]
mov ebx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
sub eax, dword [esi + 0x6c]
mov dword [ebp - 0x18], eax
cmp eax, ebx
jg 0x1001ef31
mov ebx, eax
test ebx, ebx
je 0x1001ef7c
mov eax, dword [edx]
add eax, dword [esi + 0x6c]
push 0
push eax
push ecx
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1001eefb
push dword [esi + 0x7c]
push 1
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
test eax, eax
jne 0x1001ef79
push ecx
lea edx, [eax + 0x27]
mov ecx, edi
call fcn.10004b40
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x1001ef85
mov dword [ecx], ebx
cmp ebx, eax
jl 0x1001f119
or dword [esi + 0x70], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x2b4]
mov ecx, dword [eax + 0x1c]
jmp 0x1001efa8
mov ecx, dword [edi + 0x1c]
mov dword [ebp - 8], ecx
mov ebx, dword [ebp + 0x10]
mov edx, dword [esi + 0x6c]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], edx
test ebx, ebx
je 0x1001f075
mov eax, dword [ecx + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x1001efd0
mov dword [ebp - 0x14], 0xffff
cmp ebx, 0xffff
jg 0x1001efe2
mov dword [ebp - 0x14], ebx
movsx eax, word [esi + 0x44]
movzx ecx, word [esi]
push edx
lea edx, [ebp - 0x1c]
push edx
push eax
push dword [ebp - 0x14]
push dword [ebp - 0xc]
push ecx
push dword [ebp - 8]
push 7
push 0x15
push dword [edi]
call fcn.100101c0
add esp, 0x28
test eax, eax
jne 0x1001f05b
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ecx + 4]
jne 0x1001f03a
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
test eax, eax
jle 0x1001f034
add dword [ebp - 0xc], eax
add edx, eax
sub ebx, eax
mov dword [ebp - 0x10], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x18], eax
jne 0x1001efd0
jmp 0x1001f07b
or dword [esi + 0x70], 1
jmp 0x1001f07b
push 0
push 0
push 0x55
push 0
push 0
lea ecx, [edi + 8]
xor edx, edx
call fcn.10009cc0
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [edi]
mov edx, dword [ebp - 8]
lea ecx, [edi + 8]
call fcn.10009dd0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
cmp word [ebp + 8], 0xfffe
jne 0x1001f0fd
test byte [esi + 0x70], 1
jne 0x1001f0fd
mov eax, dword [ecx + 4]
movzx ecx, word [esi]
mov ebx, dword [ebp - 8]
push edx
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x14]
movsx eax, word [esi + 0x44]
push edx
push eax
push 1
lea eax, [ebp - 1]
push eax
push ecx
push ebx
push 7
push 0x15
push dword [edi]
call fcn.100101c0
add esp, 0x28
test eax, eax
je 0x1001f0d1
push dword [edi]
lea ecx, [edi + 8]
mov edx, ebx
call fcn.10009dd0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebx + 4]
je 0x1001f0f3
push ecx
mov edx, 0x55
mov ecx, edi
call fcn.10004b40
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x14], 0
jg 0x1001f0fd
or dword [esi + 0x70], 1
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x20]
cmp word [esi + 8], 8
jne 0x1001f110
mov ecx, dword [ebp - 0xc]
mov byte [ecx], 0
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x1001f119
mov dword [ecx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret