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

Disassembly:
push 0x314
push 0x1008c188
call fcn.10063360
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2e4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2f4], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x2f8], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x2fc], ecx
mov dword [ebp - 0x2d8], 0x1f
or dword [ebp - 0x2dc], 0xffffffff
xor ebx, ebx
mov dword [ebp - 0x2e0], ebx
mov dword [ebp - 0x2f0], ebx
mov dword [ebp - 4], ebx
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ecx
push ebx
push ebx
push 3
push ebx
push ecx
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2dc], eax
cmp eax, 0xffffffff
jne 0x1002877d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2d8], eax
jmp 0x10028b5c
push 0x60
push ebx
lea eax, [ebp - 0x2d4]
push eax
call fcn.100620c0
add esp, 0xc
push ebx
lea eax, [ebp - 0x2e0]
push eax
push 0x60
lea eax, [ebp - 0x2d4]
push eax
push dword [ebp - 0x2dc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002876c
cmp dword [ebp - 0x2e0], 0x60
je 0x100287c8
mov dword [ebp - 0x2d8], 0x3e4
jmp 0x10028b5c
push 4
pop ecx
mov edi, 0x10001a34
lea esi, [ebp - 0x2d4]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x100287eb
mov dword [ebp - 0x2d8], 0xb
jmp 0x10028b5c
cmp byte [ebp - 0x2c2], bl
ja 0x100287dc
cmp word [ebp - 0x2c0], 1
ja 0x100287dc
push ebx
push ebx
push dword [ebp - 0x284]
push dword [ebp - 0x2dc]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call esi
cmp eax, dword [ebp - 0x284]
jne 0x1002876c
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x324]
rep stosd dword es:[edi], eax
push ebx
lea eax, [ebp - 0x2e0]
push eax
push 0x18
lea eax, [ebp - 0x324]
push eax
push dword [ebp - 0x2dc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002876c
cmp dword [ebp - 0x2e0], 0x18
jne 0x100287b9
push ebx
push ebx
push dword [ebp - 0x310]
push dword [ebp - 0x2dc]
call esi
cmp eax, dword [ebp - 0x310]
jne 0x1002876c
push 0x71b4
push ebx
mov esi, dword [ebp - 0x2e4]
push esi
call fcn.100620c0
add esp, 0xc
mov dword [esi + 0x7020], ebx
mov eax, dword [ebp - 0x2f4]
mov byte [eax], 1
mov dword [ebp - 0x2ec], ebx
movzx eax, byte [ebp - 0x31a]
mov edi, dword [ebp - 0x2ec]
cmp edi, eax
jae 0x10028b3f
imul edi, edi, 0x50
push ebx
push ebx
mov eax, dword [ebp - 0x310]
add eax, edi
push eax
push dword [ebp - 0x2dc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x310]
add edi, ecx
cmp eax, edi
jne 0x1002876c
push 0x50
push ebx
lea eax, [ebp - 0x274]
push eax
call fcn.100620c0
add esp, 0xc
push ebx
lea eax, [ebp - 0x2e0]
push eax
push 0x50
lea eax, [ebp - 0x274]
push eax
push dword [ebp - 0x2dc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002876c
cmp dword [ebp - 0x2e0], 0x50
jne 0x100287b9
test byte [ebp - 0x274], 7
jbe 0x10028b34
mov al, byte [ebp - 0x273]
and al, 0x38
cmp al, 8
jne 0x100287dc
push ebx
push ebx
push dword [ebp - 0x240]
push dword [ebp - 0x2dc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [ebp - 0x240]
jne 0x1002876c
xor eax, eax
lea edi, [ebp - 0x30c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
lea eax, [ebp - 0x2e0]
push eax
push 0x10
lea eax, [ebp - 0x30c]
push eax
push dword [ebp - 0x2dc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002876c
cmp dword [ebp - 0x2e0], 0x10
jne 0x100287b9
mov al, byte [ebp - 0x274]
and al, 7
cmp al, 2
jbe 0x100289b7
mov ecx, dword [ebp - 0x2f4]
mov byte [ecx], 2
cmp al, 1
jne 0x100289cc
mov eax, dword [esi + 0x7020]
imul eax, eax, 0x11f
mov byte [eax + esi + 4], 1
lea eax, [esi + 0x7020]
mov ecx, dword [ebp - 0x304]
add ecx, 0xffffff6a
mov edx, dword [eax]
mov dword [esi + edx*4 + 0x7024], ecx
inc dword [eax]
push ebx
push ebx
push dword [ebp - 0x30c]
push dword [ebp - 0x2dc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [ebp - 0x30c]
jne 0x1002876c
mov edi, 0x104
push edi
push ebx
lea eax, [ebp - 0x120]
push eax
call fcn.100620c0
add esp, 0xc
push ebx
lea eax, [ebp - 0x2e0]
push eax
push edi
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x2dc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002876c
lea ecx, [ebp - 0x120]
mov edx, dword [ebp - 0x2f8]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x10028a4f
cmp dword [ebp - 0x304], ebx
jne 0x10028b34
push edi
push ebx
lea eax, [ebp - 0x224]
push eax
call fcn.100620c0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x2fc]
push 0x10001a2c
lea eax, [ebp - 0x224]
push eax
call fcn.10062ada
add esp, 0x1c
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1002876c
lea eax, [ebp - 0x2f0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2e4], eax
cmp eax, 0xffffffff
jne 0x10028aea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2d8], eax
cmp eax, ebx
je 0x10028aea
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10028b5c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2e4]
mov dword [ebp - 0x2e8], ecx
mov eax, dword [ebp - 0x2f0]
mov dword [ebp - 0x2e4], eax
push ebx
push 0x990
push eax
push ecx
call fcn.10063260
mov dword [ebp - 0x2e8], eax
mov dword [ebp - 0x2e4], edx
add eax, 0xffffff6a
mov ecx, dword [esi + 0x7020]
mov dword [esi + ecx*4 + 0x7020], eax
inc dword [ebp - 0x2ec]
jmp 0x100288a4
mov eax, dword [esi + 0x7020]
cmp eax, ebx
jle 0x10028b56
lea eax, [esi + eax*4 + 0x7020]
add dword [eax], 0x96
mov dword [ebp - 0x2d8], ebx
mov dword [ebp - 4], ebx
call fcn.10028b66
jmp 0x10028b8f
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x2d8]
call fcn.100633a8
ret 0x14