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

Disassembly:
push 0xffffffffffffffff
push 0x1000c3cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
mov al, byte [0x1000f6d4]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov byte [esp + 0x40], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x41]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x154]
xor edi, edi
cmp eax, edi
je 0x10006f79
push eax
lea ecx, [esp + 0x44]
push 0x104
push ecx
call fcn.100072d0
jmp 0x10006f8e
push str.libspyer.dat
lea edx, [esp + 0x44]
push 0x1000f808
push edx
call dword [0x1000d1a8]
lea eax, [esp + 0x40]
push eax
call dword [0x1000d1cc]
test eax, eax
je 0x10007195
xor ebp, ebp
mov dword [esp + 0x18], ebp
push edi
push 0x80
push 3
push edi
push 1
lea ecx, [esp + 0x54]
push 0x80000000
push ecx
mov dword [esp + 0x168], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x10007013
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x10006fe4
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
jne 0x10007195
lea edx, [esp + 0x1c]
push edx
push edi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 4]
cmp eax, ecx
mov ecx, dword [esp + 0x20]
jne 0x1000701b
cmp ecx, dword [esi + 8]
jne 0x1000701b
cmp ebp, edi
jmp 0x1000717a
mov ebp, eax
mov dword [esp + 0x18], ebp
jmp 0x10006fea
push edi
mov dword [esi + 4], eax
push ebp
mov dword [esi + 8], ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [esp + 0x10]
push edi
push eax
lea ecx, [esp + 0x2c]
push 0x1c
push ecx
push ebp
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10007117
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x10007061
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
jne 0x1000718a
cmp dword [esp + 0x24], 0x52453351
jne 0x1000718a
cmp dword [esp + 0x2c], 1
ja 0x1000718a
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
lea ecx, [eax + edx + 0x20]
cmp ecx, ebx
jne 0x1000718a
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 0xc]
test eax, eax
lea edi, [edx*8]
je 0x100070b6
push eax
call fcn.1000bdea
add esp, 4
mov dword [esi + 0xc], 0
add edi, ebx
push edi
call fcn.1000be34
add esp, 4
mov dword [esi + 0xc], eax
xor edi, edi
lea eax, [esp + 0x14]
push edi
push eax
push edi
push ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100070e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x10]
push edi
push ecx
push ebx
push eax
push ebp
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10007123
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1000712d
and eax, 0xffff
or eax, 0x80070000
jmp 0x1000712b
cmp dword [esp + 0x10], 0x1c
jne 0x1000718a
jmp 0x10007067
cmp dword [esp + 0x10], ebx
jne 0x1000718a
jmp 0x1000712f
cmp eax, edi
jne 0x1000718a
mov eax, dword [esi + 0xc]
lea edx, [ebx - 0x1c]
push edx
add eax, 0x1c
push 0x4f484951
push eax
call fcn.100071c0
mov esi, dword [esi + 0xc]
add esp, 0xc
xor edx, edx
lea edi, [esi + 0x1c]
lea ecx, [esi + ebx]
mov esi, dword [esp + 0x30]
mov eax, edi
test esi, esi
jbe 0x10007178
mov esi, dword [eax + 4]
mov dword [ecx], esi
mov esi, eax
sub esi, edi
mov dword [ecx + 4], esi
mov esi, dword [eax]
add ecx, 8
add eax, esi
mov esi, dword [esp + 0x30]
inc edx
cmp edx, esi
jb 0x1000715c
test ebp, ebp
je 0x10007183
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x10007197
test ebp, ebp
je 0x10007195
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x140
ret 4