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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x280]
sub rsp, 0x380
mov rax, qword [0x140040010]
xor rax, rsp
mov qword [rbp + 0x270], rax
mov r15, rcx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
mov r8d, 0x104
lea rdx, [rbp + 0x160]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140006612
test rax, rax
je 0x14000695a
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call fcn.140006320
movsxd r14, eax
lea rdx, [rbp + 8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14000695a
mov ebx, dword [rbp + 8]
sub rbx, r14
mov rcx, rbx
call fcn.1400124f0
mov rsi, rax
mov dword [rbp - 0x48], r12d
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x48]
mov r8d, ebx
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140006949
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x60]
call fcn.14000dec0
mov edx, 3
lea r8d, [rdx - 2]
lea rcx, [rbp + 0x60]
call fcn.140007d90
nop
mov r8d, dword [rbp - 0x48]
mov rdx, rsi
lea rcx, [rbp + 0x70]
call fcn.140007fd0
nop
mov rcx, r12
mov qword [rbp - 0x30], rcx
mov ebx, 0xf
mov qword [rbp - 0x28], rbx
mov byte [rbp - 0x40], cl
mov dword [rsp + 0x40], 2
mov rdx, qword [rbp + 0xe8]
test dl, 2
jne 0x14000674f
mov rax, qword [rbp + 0xb8]
mov r8, qword [rax]
test r8, r8
je 0x14000674f
mov rax, qword [rbp + 0x98]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0xe0]
cmovb r8, qword [rbp + 0xe0]
sub r8, rdx
jmp 0x14000677d
test dl, 4
jne 0x14000678e
mov rax, qword [rbp + 0xb0]
mov r9, qword [rax]
test r9, r9
je 0x14000678e
mov rax, qword [rbp + 0x90]
mov rdx, qword [rax]
mov rax, qword [rbp + 0xc8]
movsxd r8, dword [rax]
sub r8, rdx
add r8, r9
lea rcx, [rbp - 0x40]
call fcn.140008800
mov rcx, qword [rbp - 0x30]
mov rbx, qword [rbp - 0x28]
test rcx, rcx
je 0x14000691c
mov qword [rbp + 0x48], r12
mov qword [rbp + 0x50], 0xf
mov byte [rbp + 0x38], 0
lea rax, [rcx - 0x10]
mov qword [rbp - 0x20], rax
mov qword [rsp + 0x48], rcx
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x20]
call fcn.1400042f0
lea rdx, [rbp - 0x40]
cmp rbx, 0x10
cmovae rdx, qword [rbp - 0x40]
mov r8, qword [rax]
lea rcx, [rbp + 0x38]
call fcn.140008800
nop
mov rax, qword [rbp - 0x30]
lea rbx, [rax - 0x10]
mov qword [rbp + 0x28], r12
mov qword [rbp + 0x30], 0xf
mov byte [rbp + 0x18], 0
cmp rax, rbx
jb 0x140006987
lfence
mov qword [rbp + 0x10], 0xffffffffffffffff
mov rax, qword [rbp - 0x30]
sub rax, rbx
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x10]
call fcn.1400042f0
mov r8, qword [rax]
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rdx, qword [rbp - 0x40]
add rdx, rbx
lea rcx, [rbp + 0x18]
call fcn.140008800
nop
lea rax, [rsp + 0x58]
mov qword [rbp - 0x20], rax
lea rdx, [rbp + 0x18]
lea rcx, [rsp + 0x58]
call fcn.1400081e0
mov rdi, rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
lea rdx, [0x140040bf8]
lea rcx, [rsp + 0x78]
call fcn.1400081e0
mov rbx, rax
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x68]
call fcn.1400081e0
nop
mov qword [rsp + 0x20], rdi
mov r9, rbx
mov r8, rax
lea rdx, [rbp - 0x18]
lea rcx, [0x140042bb8]
call fcn.14000a140
mov eax, dword [rbp - 8]
mov dword [r15], eax
lea rdx, [rbp - 0x18]
mov rdi, qword [rbp - 0x18]
mov rbx, qword [rbp]
cmp rbx, 0x10
cmovae rdx, rdi
mov r8, qword [rbp - 8]
mov rcx, rsi
call fcn.14000e160
cmp rbx, 0x10
jb 0x1400068d9
lea rdx, [rbx + 1]
mov rcx, rdi
call fcn.140004a10
mov qword [rbp - 8], r12
mov qword [rbp], 0xf
mov byte [rbp - 0x18], 0
mov rdx, qword [rbp + 0x30]
cmp rdx, 0x10
jb 0x140006900
inc rdx
mov rcx, qword [rbp + 0x18]
call fcn.140004a10
nop
mov rdx, qword [rbp + 0x50]
cmp rdx, 0x10
jb 0x140006916
inc rdx
mov rcx, qword [rbp + 0x38]
call fcn.140004a10
mov rbx, qword [rbp - 0x28]
jmp 0x140006927
mov rcx, rsi
call fcn.14001244c
mov rsi, r12
cmp rbx, 0x10
jb 0x14000693b
lea rdx, [rbx + 1]
mov rcx, qword [rbp - 0x40]
call fcn.140004a10
nop
lea rcx, [rbp + 0x60]
call fcn.140006990
mov rax, rsi
jmp 0x14000695c
mov rcx, rsi
call fcn.14001244c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.14000a750
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.140008dc0
nop
int3