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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102a0505
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x10373f78]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 4], 0
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x1009b66e
mov eax, dword [ebx]
push 0
push 0x80
push 3
push 0
push 0
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0xa8]
lea eax, [ebp - 0x58]
mov dword [ebp - 0xa8], vtable.std::_Func_impl_no_alloc_bool____cdecl___void____bool__void__.0
push eax
mov dword [ebp - 0xa4], 0x10087150
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x34], 0
call fcn.10087300
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x34], eax
test ecx, ecx
je 0x1009b6e5
mov edx, dword [ecx]
lea eax, [ebp - 0xa8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x84], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x1009b8e1
cmp eax, 0xffffffff
je 0x1009b8e1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov byte [ebp - 4], 4
push edi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x64], edi
call fcn.1009bba0
push 0
lea eax, [ebp - 0x78]
mov dword [ebp - 4], 1
push eax
push edi
mov edi, dword [ebp - 0x74]
push edi
push dword [ebp - 0x60]
mov dword [ebp - 0x78], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1009b7ec
call fcn.10048fd0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.100882e0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 6
push eax
push ebx
push 0x10335558
push 2
mov ecx, esi
call fcn.10051390
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x1009b7aa
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1009b7a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009b9a2
push edx
push ecx
call fcn.1026505f
add esp, 8
lea ecx, [ebp - 0x60]
call fcn.100871d0
test edi, edi
je 0x1009b984
mov ecx, dword [ebp - 0x6c]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x1009b7dd
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009b9a2
push ecx
push edi
call fcn.1026505f
add esp, 8
jmp 0x1009b984
lea eax, [ebp - 0x74]
cmp esi, eax
je 0x1009b826
mov ebx, dword [ebp - 0x70]
mov ecx, dword [esi]
sub ebx, edi
mov eax, dword [esi + 8]
sub eax, ecx
mov dword [ebp - 0x68], ecx
cmp ebx, eax
jbe 0x1009b813
push ebx
mov ecx, esi
call fcn.1009e570
mov ecx, dword [esi]
mov dword [ebp - 0x68], ecx
push ebx
push edi
push ecx
call fcn.10266cf0
mov eax, dword [ebp - 0x68]
add esp, 0xc
add eax, ebx
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x60]
cmp dword [ebp - 0x78], eax
sete bl
call fcn.100871d0
test edi, edi
je 0x1009b868
mov ecx, dword [ebp - 0x6c]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x1009b85e
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009b9a2
push ecx
push edi
call fcn.1026505f
add esp, 8
mov al, bl
jmp 0x1009b986
call fcn.10048fd0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.100882e0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
push ebx
push 0x10335318
push 2
mov ecx, esi
call fcn.10051390
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x1009b949
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1009b93f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009b9a2
push edx
push ecx
call fcn.1026505f
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x1009b96c
cmp eax, 0xffffffff
je 0x1009b96c
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x1009b984
mov dword [ebp - 0x64], eax
lea edx, [ebp - 0x64]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x1009b984
mov edx, dword [ecx]
lea eax, [ebp - 0x58]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.102649e4
mov esp, ebp
pop ebp
ret
call fcn.10275373
int3