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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xf0
mov rdi, rdx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
xor r12d, r12d
mov qword [rbp - 0x79], r12
cmp qword [rcx + 0x18], 0x10
jb 0x140068bb9
mov rcx, qword [rcx]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140068c96
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test eax, eax
je 0x140068c96
mov ecx, esi
mov r9, qword [rsp + 0x48]
mov r8, r9
mov rdx, qword [rsp + 0x40]
sub r8, rdx
cmp rsi, r8
jae 0x140068c20
add rcx, rdx
mov qword [rsp + 0x48], rcx
jmp 0x140068c5f
jbe 0x140068c5f
mov rax, qword [rbp - 0x79]
sub rax, rdx
cmp rcx, rax
jbe 0x140068c41
lea r8, [rbp + 0x67]
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.14000ef10
jmp 0x140068c5a
sub rcx, r8
lea rbx, [r9 + rcx]
mov r8, rcx
xor edx, edx
mov rcx, r9
call fcn.140137f50
mov qword [rsp + 0x48], rbx
mov rdx, qword [rsp + 0x40]
mov dword [rbp + 0x77], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x77]
mov r8d, esi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140068c8c
cmp dword [rbp + 0x77], esi
je 0x140068c96
mov rsi, qword [rsp + 0x40]
mov rbx, rsi
jmp 0x140068ca0
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov r15, qword [rbp - 0x79]
mov qword [rbp - 0x41], r15
mov qword [rbp - 0x49], rbx
mov qword [rbp - 0x51], rsi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
mov qword [rbp - 0x79], r12
mov r14, rsi
cmp rsi, rbx
jne 0x140068ccd
xor bl, bl
jmp 0x140068db6
lea rcx, [rbp - 0x39]
call fcn.140016530
sub rbx, r14
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp - 0x39]
call fcn.140016640
lea rdx, [rbp - 0x71]
lea rcx, [rbp - 0x39]
call fcn.140016730
mov r9, qword [rdi + 0x10]
cmp r9, qword [rbp - 0x61]
jne 0x140068d68
lea r12, [rbp - 0x71]
mov rcx, qword [rbp - 0x71]
mov rax, qword [rbp - 0x59]
cmp rax, 0x10
cmovae r12, rcx
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140068d20
mov rdx, qword [rdi]
lea r13, [rdx + r9]
jb 0x140068d29
mov rdi, qword [rdi]
cmp rdi, r13
je 0x140068d64
sub r12, rdi
movsx r14d, byte [rdi]
movsx eax, byte [r12 + rdi]
cmp r14b, al
je 0x140068d54
mov ecx, eax
call fcn.140172bec
mov ebx, eax
mov ecx, r14d
call fcn.140172bec
cmp eax, ebx
jne 0x140068d68
inc rdi
cmp rdi, r13
jne 0x140068d31
mov rax, qword [rbp - 0x59]
mov rcx, qword [rbp - 0x71]
mov bl, 1
jmp 0x140068d72
xor bl, bl
mov rax, qword [rbp - 0x59]
mov rcx, qword [rbp - 0x71]
cmp rax, 0x10
jb 0x140068da2
lea rdx, [rax + 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140068d9d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140068e0e
call fcn.140133e68
mov qword [rbp - 0x61], 0
mov qword [rbp - 0x59], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x71], 0
test rsi, rsi
je 0x140068dea
sub r15, rsi
mov rax, rsi
cmp r15, 0x1000
jb 0x140068ddf
add r15, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140068e08
mov rdx, r15
mov rcx, rsi
call fcn.140133e68
movzx eax, bl
mov rbx, qword [rsp + 0x138]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1401462a8
nop
call fcn.1401462a8
nop
int3