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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x113d0e7
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x115f604]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1161d94]
mov edx, dword [eax + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
mov ecx, 0x1161d94
mov dword [ebp - 0x120], ebx
call edx
add eax, 0x10
mov dword [ebp - 0x130], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x124], ebx
mov eax, dword [0x1161d94]
mov edx, dword [eax + 0xc]
mov ecx, 0x1161d94
mov byte [ebp - 4], 1
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x140], ebx
call edx
add eax, 0x10
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], ebx
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
or eax, ecx
mov byte [ebp - 4], 2
jge 0x10c8c38
push ebx
mov ecx, esi
call fcn.01080db0
mov eax, dword [esi]
cmp dword [eax - 8], ebx
jge 0x10c8c49
push 0x80070057
call fcn.01071710
push ebx
push 0x1025e88
lea ecx, [ebp - 0x120]
push ecx
push 0x1025e00
mov dword [eax - 0xc], ebx
mov eax, dword [esi]
lea edx, [ebp - 0x11c]
push 2
push edx
mov byte [eax], bl
call fcn.01075110
add esp, 0x18
mov eax, dword [0x11608f0]
push 0xffffffffffffffff
push eax
push ebx
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 3
call fcn.010c8ad0
test eax, eax
je 0x10c8e5f
mov ecx, dword [0x115f544]
push ecx
lea ecx, [ebp - 0x134]
call fcn.0107f6b0
lea edx, [ebp - 0x124]
push edx
push ebx
push ebx
lea eax, [ebp - 0x134]
push eax
mov byte [ebp - 4], 4
call fcn.0111f5a0
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x134]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10c8cea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x120], ebx
jge 0x10c8d3f
call fcn.01127f00
test al, al
je 0x10c8d1c
mov ecx, dword [0x115f544]
mov edx, dword [ebp - 0x120]
push ecx
push edx
push 0x1025db0
push 0x1025d28
push ebx
call fcn.01128b70
add esp, 0x14
mov eax, dword [ebp - 0x120]
cmp eax, 0x80070002
je 0x10c8d34
cmp eax, 0x80070003
jne 0x10c8ea4
mov dword [ebp - 0x120], ebx
jmp 0x10c8ea4
mov eax, dword [ebp - 0x124]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10c8d84
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10c8d6d
call esi
mov dword [ebp - 0x120], eax
jmp 0x10c8ea4
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x120], eax
jmp 0x10c8ea4
cmp edi, ebx
jne 0x10c8dc7
mov eax, dword [esi]
sub eax, 0x10
mov dword [ebp - 0x120], ebx
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
or eax, ecx
jge 0x10c8daa
push ebx
mov ecx, esi
call fcn.01080db0
mov eax, dword [esi]
cmp dword [eax - 8], ebx
jge 0x10c8dbb
push 0x80070057
call fcn.01071710
mov dword [eax - 0xc], ebx
mov ecx, dword [esi]
mov byte [ecx], bl
jmp 0x10c8ea4
lea edx, [edi + 1]
push edx
mov ecx, esi
call fcn.01081400
mov edx, dword [ebp - 0x124]
push ebx
lea ecx, [ebp - 0x12c]
push ecx
push edi
push eax
push edx
mov dword [ebp - 0x128], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10c8e45
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10c8e03
call esi
jmp 0x10c8e0f
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x120], eax
call fcn.01127f00
test al, al
je 0x10c8ea4
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x120]
push eax
push ecx
push 0x1025ce0
push 0x1025c58
push ebx
call fcn.01128b70
add esp, 0x14
jmp 0x10c8ea4
mov edx, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x128]
push 0xffffffffffffffff
mov ecx, esi
mov byte [edx + eax], bl
call fcn.010976b0
jmp 0x10c8ea4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10c8e6f
call esi
jmp 0x10c8e7b
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x120], eax
call fcn.01127f00
test al, al
je 0x10c8ea4
mov ecx, dword [ebp - 0x120]
push ecx
push 0x1025bc8
push 0x1025b40
push ebx
call fcn.01128b70
add esp, 0x10
mov edx, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x128], edx
mov byte [ebp - 4], 2
call fcn.01075230
cmp dword [ebp - 0x140], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x138]
mov byte [ebp - 4], 1
je 0x10c8ee2
cmp esi, ebx
je 0x10c8ee9
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp esi, ebx
je 0x10c8ee9
push esi
call edi
mov eax, dword [ebp - 0x13c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10c8f0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x124]
cmp eax, ebx
je 0x10c8f1e
push eax
call edi
mov dword [ebp - 0x124], ebx
mov eax, dword [ebp - 0x130]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10c8f47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.010840d6
mov esp, ebp
pop ebp
ret 4