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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5d0]
sub rsp, 0x6d0
mov rsi, r8
mov rbx, rdx
mov r14, rcx
test rdx, rdx
je 0x140069913
test r8, r8
je 0x140069913
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x140069913
lea rax, [0x1401b66b8]
mov qword [rsp + 0x40], rax
xor r12d, r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r12 + 3]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x1400696e1
xor bl, bl
jmp 0x1400698ed
xor edx, edx
mov r8d, 0x428
lea rcx, [rbp + 0x1a0]
call fcn.14014d290
lea r13, [0x1401b6738]
mov qword [rbp - 0x80], r13
lea rax, [rbp - 0x68]
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x70], r12d
mov dword [rbp - 0x6c], 0x104
mov word [rbp - 0x68], r12w
mov edx, 0x104
mov rcx, rsi
call fcn.14003c464
mov r15, rax
mov eax, dword [rbp - 0x6c]
cmp r15d, eax
jb 0x140069734
lea r15d, [rax - 1]
mov eax, r15d
lea rbx, [rax + rax]
mov r8, rbx
mov rdx, rsi
mov rcx, qword [rbp - 0x78]
call fcn.14014cbf0
mov dword [rbp - 0x70], r15d
mov rax, qword [rbp - 0x78]
mov word [rbx + rax], r12w
lea rax, [0x1401b6698]
mov qword [rbp - 0x80], rax
lea rdx, [rbp + 0x1a0]
lea rcx, [rsp + 0x64]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov qword [rbp + 0x1b0], r12
mov eax, dword [rsp + 0x50]
mov dword [rbp + 0x1b8], eax
mov qword [rbp + 0x628], r12
lea rdx, [rbp + 0x628]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, r12
test eax, eax
cmovne rcx, qword [rbp + 0x628]
mov qword [rbp + 0x5c0], rcx
mov r9d, dword [rbp - 0x70]
mov r8, qword [rbp - 0x78]
test r9d, r9d
je 0x1400697f0
test r8, r8
je 0x14006980d
mov ecx, r12d
test r9d, r9d
je 0x1400697f0
nop word [rax + rax]
mov eax, ecx
lea rdx, [r8 + rax*2]
cmp word [rdx], 0x5c
jne 0x1400697e9
mov word [rdx], 0x2f
mov r9d, dword [rbp - 0x70]
mov r8, qword [rbp - 0x78]
inc ecx
cmp ecx, r9d
jb 0x1400697d0
test r8, r8
je 0x14006980d
mov edx, 0x200
mov r9, 0xffffffffffffffff
lea rcx, [rbp + 0x1bc]
call fcn.14003c218
lea rdx, [rbp + 0x1a0]
mov rcx, r14
call fcn.1400688b0
test al, al
je 0x1400698df
cmp qword [r14 + 0x2f8], 0
jne 0x140069850
lea rdx, [0x14014fdc0]
mov ecx, 0x400080
call fcn.14002e8b0
mov qword [r14 + 0x2f8], rax
test rax, rax
je 0x1400698df
nop
mov rsi, qword [r14 + 0x2f8]
test rsi, rsi
je 0x140069906
mov ebx, r12d
nop dword [rax]
nop word [rax + rax]
mov dword [rbp + 0x618], r12d
mov r8d, 0x400000
sub r8d, ebx
mov edx, ebx
add rdx, rsi
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x618]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400698b2
mov eax, dword [rbp + 0x618]
test eax, eax
je 0x1400698b2
add ebx, eax
cmp ebx, 0x400000
jb 0x140069870
mov eax, ebx
lock add qword [0x1401f3d70], rax
test ebx, ebx
je 0x140069901
mov r8d, ebx
mov rdx, qword [r14 + 0x2f8]
mov rcx, r14
call fcn.140068750
mov rdi, qword [rsp + 0x48]
test al, al
jne 0x140069850
xor bl, bl
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], r12
mov dword [rbp - 0x70], r12d
cmp rdi, 0xffffffffffffffff
je 0x1400698fc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
jmp 0x140069915
mov rdi, qword [rsp + 0x48]
mov rcx, r14
call fcn.1400682e0
movzx ebx, al
jmp 0x1400698e1
xor al, al
mov rbx, qword [rsp + 0x710]
add rsp, 0x6d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret