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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [edi], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
jne 0x10f1a77
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10f1a5e
test byte [eax + 0x1c], 1
je 0x10f1a5e
cmp byte [eax + 0x19], 2
jb 0x10f1a5e
push esi
push dword [ebp + 8]
push 0x1012880
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
mov eax, dword [0x111024c]
cmp esi, ebx
jle 0x10f1bf7
and esi, 0xffff
or esi, 0x80070000
jmp 0x10f1bf5
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10f1ad2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10f1ab9
test byte [eax + 0x1c], 1
je 0x10f1ab9
cmp byte [eax + 0x19], 2
jb 0x10f1ab9
push esi
push dword [ebp + 8]
push 0x1012880
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
cmp esi, ebx
jle 0x10f1be5
and esi, 0xffff
or esi, 0x80070000
jmp 0x10f1be5
cmp dword [esi + 4], ebx
je 0x10f1ae1
mov esi, 0x80780028
jmp 0x10f1be5
mov ebx, dword [esi]
test bl, 1
jne 0x10f1ad7
and dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
push 2
push ebx
call fcn.010e57fa
mov esi, eax
test esi, esi
jge 0x10f1b35
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10f1b2b
test byte [eax + 0x1c], 1
je 0x10f1b2b
cmp byte [eax + 0x19], 2
jb 0x10f1b2b
push 2
push ebx
push 0x1012880
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01083f04
mov esi, 0x80070216
jmp 0x10f1be5
push dword [ebp + 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x10f1b4f
mov esi, 0x8007000e
jmp 0x10f1bd6
push 0
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10f1bac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10f1b9a
test byte [eax + 0x1c], 1
je 0x10f1b9a
cmp byte [eax + 0x19], 2
jb 0x10f1b9a
push esi
push dword [ebp + 8]
push 0x1012880
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
test esi, esi
jle 0x10f1bd6
and esi, 0xffff
or esi, 0x80070000
jmp 0x10f1bd6
cmp dword [ebp - 4], ebx
je 0x10f1bc5
push 0x10128c0
push 0x8a
push 0x1012890
call fcn.0107b644
mov eax, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
shr ebx, 1
xor ecx, ecx
mov dword [edi], eax
mov word [eax + ebx*2], cx
cmp dword [ebp + 0xc], 0
je 0x10f1be5
push dword [ebp + 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x111024c]
xor ebx, ebx
cmp esi, ebx
jge 0x10f1c22
cmp eax, 0x111024c
je 0x10f1c22
test byte [eax + 0x1c], 1
je 0x10f1c22
cmp byte [eax + 0x19], 2
jb 0x10f1c22
push esi
push dword [ebp + 8]
push 0x1012880
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc