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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x2100cb4b
push str.GetFileSize
call fcn.2100a4db
jmp 0x2100cd27
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x10]
jbe 0x2100cb58
jmp 0x2100cd25
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x10]
jae 0x2100cb71
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x28], ecx
jmp 0x2100cb77
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x2100cb8f
mov dword [ebp - 0xc], 1
jmp 0x2100cd23
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x2100cbb5
push str.SetFilePointer
call fcn.2100a4db
jmp 0x2100cd21
cmp dword [ebp - 0x10], 0x7fff
jae 0x2100cbc6
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
jmp 0x2100cbcd
mov dword [ebp - 0x2c], 0x7fff
mov cx, word [ebp - 0x2c]
mov word [ebp - 0x18], cx
mov edx, dword [ebp - 0x18]
and edx, 0xffff
push edx
call fcn.2103d925
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x2100cc05
push str.could_not_allocate_file_copy_buffer
call fcn.2100a467
jmp 0x2100cd1f
cmp dword [ebp + 0x14], 0
je 0x2100cc49
mov ecx, dword [ebp - 0x18]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x18]
and edx, 0xffff
mov eax, dword [ebp - 0x10]
lea eax, [eax + edx - 1]
mov ecx, dword [ebp - 0x18]
and ecx, 0xffff
xor edx, edx
div ecx
mov edx, dword [ebp - 0x18]
and edx, 0xffff
imul eax, edx
push eax
push 0
mov ecx, dword [ebp + 0x14]
call fcn.21020853
cmp dword [ebp - 0x10], 0
je 0x2100ccfb
cmp dword [ebp + 0x14], 0
je 0x2100cc72
mov ecx, dword [ebp + 0x14]
call fcn.2102095c
mov ecx, dword [ebp + 0x14]
call fcn.2102048f
test eax, eax
jne 0x2100cc72
jmp 0x2100cd1d
mov eax, dword [ebp - 0x18]
and eax, 0xffff
cmp dword [ebp - 0x10], eax
jae 0x2100cc87
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x30], ecx
jmp 0x2100cc93
mov edx, dword [ebp - 0x18]
and edx, 0xffff
mov dword [ebp - 0x30], edx
mov ax, word [ebp - 0x30]
mov word [ebp - 0x14], ax
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
and edx, 0xffff
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x2100ccc9
push str.ReadFile
call fcn.2100a4db
jmp 0x2100cd1b
mov edx, dword [ebp - 0x14]
and edx, 0xffff
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.2100c4f9
test eax, eax
jne 0x2100cce5
jmp 0x2100cd19
mov ecx, dword [ebp - 0x14]
and ecx, 0xffff
mov edx, dword [ebp - 0x10]
sub edx, ecx
mov dword [ebp - 0x10], edx
jmp 0x2100cc49
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.2103d94e
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x2100cd29
jmp 0x2100cd02
jmp 0x2100cd02
jmp 0x2100cd02
jmp 0x2100cd02
jmp 0x2100cd02
jmp 0x2100cd02
jmp 0x2100cd02
jmp 0x2100cd02
mov esp, ebp
pop ebp
ret 0x10