Function at 0x2100ff53
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 0x2100ff8e
push str.GetFileSize
call fcn.2100dfb1
jmp 0x2101016a
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x10]
jbe 0x2100ff9b
jmp 0x21010168
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 0x2100ffb4
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x28], ecx
jmp 0x2100ffba
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 0x2100ffd2
mov dword [ebp - 0xc], 1
jmp 0x21010166
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 0x2100fff8
push str.SetFilePointer
call fcn.2100dfb1
jmp 0x21010164
cmp dword [ebp - 0x10], 0x7fff
jae 0x21010009
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
jmp 0x21010010
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.21058728
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x21010048
push str.could_not_allocate_file_copy_buffer
call fcn.2100df3d
jmp 0x21010162
cmp dword [ebp + 0x14], 0
je 0x2101008c
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.21034a15
cmp dword [ebp - 0x10], 0
je 0x2101013e
cmp dword [ebp + 0x14], 0
je 0x210100b5
mov ecx, dword [ebp + 0x14]
call fcn.21034b1e
mov ecx, dword [ebp + 0x14]
call fcn.210345bb
test eax, eax
jne 0x210100b5
jmp 0x21010160
mov eax, dword [ebp - 0x18]
and eax, 0xffff
cmp dword [ebp - 0x10], eax
jae 0x210100ca
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x30], ecx
jmp 0x210100d6
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 0x2101010c
push 0x21071d4c
call fcn.2100dfb1
jmp 0x2101015e
mov edx, dword [ebp - 0x14]
and edx, 0xffff
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.2100fec6
test eax, eax
jne 0x21010128
jmp 0x2101015c
mov ecx, dword [ebp - 0x14]
and ecx, 0xffff
mov edx, dword [ebp - 0x10]
sub edx, ecx
mov dword [ebp - 0x10], edx
jmp 0x2101008c
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.21058751
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x2101016c
jmp 0x21010145
jmp 0x21010145
jmp 0x21010145
jmp 0x21010145
jmp 0x21010145
jmp 0x21010145
jmp 0x21010145
jmp 0x21010145
mov esp, ebp
pop ebp
ret 0x10