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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x1400190a8]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rdx
xor r13d, r13d
mov rbx, rcx
mov qword [rsp + 0x30], r13
lea r8d, [r13 + 3]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp eax, 0xffffffff
jne 0x14000657a
mov rcx, rsi
call fcn.140006f60
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], r13
lea rdx, [0x140016804]
xor r8d, r8d
mov rcx, rbx
mov byte [rbx], r13b
call fcn.140006790
jmp 0x140006733
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rsi, eax
test eax, eax
je 0x140006554
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x1000
lea r9d, [rcx + 4]
mov qword [rsp + 0x110], r12
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea r9, [rbp - 0x59]
mov r8d, esi
mov rcx, rdi
mov rdx, rax
mov qword [rsp + 0x20], r13
mov r12, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.1qazse4
lea rcx, [rbp - 0x51]
mov r8d, 7
mov qword [rbp - 0x11], 0xf
mov qword [rbp - 0x19], r13
mov byte [rbp - 0x29], r13b
mov qword [rbp - 0x39], 0xf
mov qword [rbp - 0x41], r13
mov byte [rbp - 0x51], r13b
call fcn.140006790
lea r9, [rbp - 0x51]
lea rcx, [rbp - 1]
mov r8d, esi
mov rdx, r12
call fcn.1400071a0
mov rdi, rax
lea rax, [rbp - 0x29]
cmp rax, rdi
je 0x140006680
cmp qword [rbp - 0x11], 0x10
jb 0x140006632
mov rcx, qword [rbp - 0x29]
call fcn.140007ca4
mov qword [rbp - 0x11], 0xf
mov qword [rbp - 0x19], r13
mov byte [rbp - 0x29], r13b
cmp qword [rdi + 0x18], 0x10
jae 0x14000665e
mov r8, qword [rdi + 0x10]
lea rcx, [rbp - 0x29]
mov rdx, rdi
inc r8
call fcn.140007970
jmp 0x140006668
mov rax, qword [rdi]
mov qword [rbp - 0x29], rax
mov qword [rdi], r13
mov rax, qword [rdi + 0x10]
mov qword [rbp - 0x19], rax
mov rax, qword [rdi + 0x18]
mov qword [rbp - 0x11], rax
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], r13
cmp qword [rbp + 0x17], 0x10
jb 0x140006690
mov rcx, qword [rbp - 1]
call fcn.140007ca4
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r12, qword [rsp + 0x110]
lea rax, [rbp - 0x29]
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], r13
mov byte [rbx], r13b
cmp rbx, rax
je 0x140006723
cmp qword [rbx + 0x18], 0x10
jb 0x1400066d0
mov rcx, qword [rbx]
call fcn.140007ca4
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], r13
mov byte [rbx], r13b
mov rcx, qword [rbp - 0x11]
cmp rcx, 0x10
jae 0x14000670e
mov r8, qword [rbp - 0x19]
lea rdx, [rbp - 0x29]
mov rcx, rbx
inc r8
call fcn.140007970
mov rcx, qword [rbp - 0x11]
mov rax, qword [rbp - 0x19]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rcx
jmp 0x140006733
mov rax, qword [rbp - 0x29]
mov qword [rbx + 0x18], rcx
mov qword [rbx], rax
mov rax, qword [rbp - 0x19]
mov qword [rbx + 0x10], rax
jmp 0x140006733
cmp qword [rbp - 0x11], 0x10
jb 0x140006733
mov rcx, qword [rbp - 0x29]
call fcn.140007ca4
mov rax, rbx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400077a0
add rsp, 0xd0
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret