Function at 0x4cff70
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x300
mov rbp, rsp
mov qword [rbp + 0x98], rcx
mov qword [rbp + 0xa0], rdx
mov dword [rbp + 0xac], r8d
mov qword [rbp + 0xb0], r9
mov qword [rbp + 0xb8], 0
mov qword [rbp + 0xd8], 0
mov qword [rbp + 0xd0], 0
mov qword [rbp + 0xc8], 0
mov qword [rbp + 0xc0], 0
mov qword [rbp + 0xe8], 0
mov qword [rbp + 0xe0], 0
mov qword [rbp + 0xf0], 0
nop
mov rcx, qword [rbp + 0xa0]
xor rdx, rdx
xor r8, r8
xor r9, r9
call sub.kernel32.dll_SetFilePointer
mov rax, qword [rbp + 0x98]
movzx rax, byte [rax + 0xd7]
mov byte [rbp + 0x97], al
movzx rax, byte [rbp + 0x97]
test al, al
je 0x4d02c4
cmp byte [0x00b2db62], 0
jne 0x4d0045
mov rcx, qword [rbp + 0xb0]
call fcn.004ab4c0
test al, al
je 0x4d0099
lea rcx, [rbp + 0xe0]
mov rdx, qword [rbp + 0xb0]
call fcn.00427ef0
lea rcx, [rbp + 0xe8]
mov rdx, qword [rbp + 0xe0]
call fcn.004447b0
lea rcx, [rbp + 0xf0]
mov edx, 3
lea r8, [0x004d0390]
mov r9, qword [rbp + 0xe8]
lea rax, [0x004d03a8]
mov qword [rsp + 0x20], rax
call fcn.004111f0
jmp 0x4d00af
lea rcx, [rbp + 0xf0]
mov rdx, qword [rbp + 0xb0]
xor r8, r8
call fcn.00411660
lea rcx, [rbp + 0xd0]
mov rdx, qword [0x00b30a98]
xor r8, r8
call fcn.00410cf0
lea rcx, [rbp + 0xc8]
mov rdx, qword [rbp + 0xb0]
call fcn.004cbde0
lea rcx, [rbp + 0xc0]
mov rdx, qword [rbp + 0xc8]
xor r8, r8
call fcn.00411660
lea rcx, [rbp + 0xd8]
mov edx, 0x10
lea r8, [0x004d03b8]
mov r9, qword [rbp + 0xd0]
lea rax, [0x004d03c8]
mov qword [rsp + 0x20], rax
lea rax, [0x004d03d8]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0xc0]
mov qword [rsp + 0x30], rax
lea rax, [0x004d03f4]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 0xf0]
mov qword [rsp + 0x40], rax
lea rax, [0x004d040c]
mov qword [rsp + 0x48], rax
lea rax, [0x004d03c8]
mov qword [rsp + 0x50], rax
lea rax, [0x004d041c]
mov qword [rsp + 0x58], rax
lea rax, [0x004d03c8]
mov qword [rsp + 0x60], rax
lea rax, [0x004d044c]
mov qword [rsp + 0x68], rax
mov rax, qword [rbp + 0xf0]
mov qword [rsp + 0x70], rax
lea rax, [0x004d040c]
mov qword [rsp + 0x78], rax
lea rax, [0x004d03c8]
mov qword [rsp + 0x80], rax
lea rax, [0x004d03c8]
mov qword [rsp + 0x88], rax
call fcn.004111f0
mov rcx, qword [rbp + 0x98]
mov rdx, qword [rbp + 0xd8]
call fcn.004ce740
mov ebx, dword [rbp + 0xac]
test ebx, ebx
jbe 0x4d02c3
cmp ebx, 0xff
jbe 0x4d01ed
mov esi, 0xff
jmp 0x4d01ef
mov esi, ebx
mov rcx, qword [rbp + 0xa0]
lea rdx, [rbp + 0xfb]
mov r8d, esi
lea r9, [rbp + 0x2fc]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x4d0221
cmp esi, dword [rbp + 0x2fc]
je 0x4d0242
mov rcx, qword [rbp + 0x98]
lea rdx, [0x004d03c8]
call fcn.004ce740
xor rax, rax
mov byte [rbp + 0x97], al
jmp 0x4d02c3
lea rcx, [rbp + 0xb8]
lea rdx, [rbp + 0xfb]
mov r8d, esi
call fcn.004445c0
lea rcx, [rbp + 0xb8]
lea rdx, [0x004d03c8]
call fcn.00410e60
mov rcx, qword [rbp + 0x98]
mov rdx, qword [rbp + 0xb8]
call fcn.004ce740
sub ebx, esi
cmp qword [rbp + 0x340], 0
je 0x4d02bb
mov rcx, qword [rbp + 0x340]
mov eax, dword [rbp + 0xac]
sub eax, ebx
imul eax, eax, 0x3e8
xor edx, edx
mov r8d, dword [rbp + 0xac]
div r8d
mov rdx, rax
mov rax, qword [rbp + 0x340]
mov rsi, qword [rax]
call qword [rsi + 0x30]
test ebx, ebx
ja 0x4d01dd
nop
mov rcx, qword [rbp + 0x340]
mov rax, qword [rbp + 0x340]
mov rbx, qword [rax]
call qword [rbx + 0x48]
nop
lea rcx, [rbp + 0xb8]
mov edx, 2
call fcn.00410190
lea rcx, [rbp + 0xc8]
call fcn.00410080
lea rcx, [rbp + 0xd0]
mov edx, 5
call fcn.00410190
movzx rax, byte [rbp + 0x97]
lea rsp, [rbp + 0x300]
pop rbx
pop rsi
pop rbp
ret