Function at 0x1400248a0
Capabilities:
Get file size
Move file
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400e9180]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r13d, r13d
mov rdi, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400248da
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
xorps xmm0, xmm0
mov qword [rbp - 0x28], r13
mov r14, 0xffffffffffffffff
mov qword [rbp - 0x20], r13
movups xmmword [rbp - 0x38], xmm0
mov r15, rax
mov r8, r14
nop dword [rax]
inc r8
cmp word [rax + r8*2], r13w
jne 0x140024900
mov rdx, r15
mov qword [rsp + 0xb8], r12
lea rcx, [rbp - 0x38]
call fcn.140028870
lea rsi, [0x1400ffbe0]
mov rdx, rsi
lea r8, [rbp - 0x38]
lea rcx, [0x1400ffb20]
call fcn.140029bc0
mov rdx, qword [rbp - 0x20]
mov rbx, rax
cmp rdx, 8
jb 0x14002497b
mov rcx, qword [rbp - 0x38]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024976
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024cf4
call fcn.14006459c
cmp rbx, rsi
jne 0x140024cbe
cmp qword [rdi + 0x18], 8
mov rcx, rdi
jb 0x140024991
mov rcx, qword [rdi]
mov qword [rsp + 0x30], r13
mov esi, 3
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], esi
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, r14
je 0x140024cbe
lea rdx, [rbp - 0x18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400249e3
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140024cbe
mov rbx, qword [rbp - 0x18]
cmp rbx, 0x96000
jg 0x140024ac8
mov ecx, ebx
xor sil, sil
add rcx, 0x38
call fcn.1400648f0
lea r9, [rbp - 0x3c]
mov qword [rsp + 0x20], r13
mov r8d, ebx
mov rdx, rax
mov rcx, r12
mov r14, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140024abb
cmp dword [rbp - 0x3c], ebx
jne 0x140024abb
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r8d, dword [rbp - 0x3c]
lea r9, [0x1400ffaf8]
mov rcx, r14
lea rdx, [r14 + r8]
call fcn.14003f940
mov edx, dword [rbp - 0x3c]
add rdx, 0x38
lea ebx, [rax + 0x38]
mov ecx, ebx
cmp rcx, rdx
jne 0x140024abb
lea r9, [rbp - 0x40]
mov qword [rsp + 0x20], r13
mov r8d, ebx
mov rdx, r14
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140024abb
cmp dword [rbp - 0x40], ebx
jne 0x140024abb
lea r9, [rbp - 0x40]
mov qword [rsp + 0x20], r13
mov r8d, 0x78
lea rdx, [0x1400ffa80]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140024abb
cmp dword [rbp - 0x40], 0x78
mov eax, 1
movzx esi, sil
cmove esi, eax
mov rcx, r14
call fcn.14006459c
jmp 0x140024bf2
xorps xmm0, xmm0
mov qword [rbp - 0x28], r13
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x20], r13
nop word [rax + rax]
inc r14
cmp word [r15 + r14*2], r13w
jne 0x140024ae0
mov r8, r14
lea rcx, [rbp - 0x38]
mov rdx, r15
call fcn.140028870
lea r15, [0x140100080]
mov rdx, r15
lea r8, [rbp - 0x38]
lea rcx, [0x1400ffbe0]
call fcn.140029bc0
mov rdx, qword [rbp - 0x20]
mov r14, rax
cmp rdx, 8
jb 0x140024b56
mov rcx, qword [rbp - 0x38]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024b51
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024cf4
call fcn.14006459c
cmp r14, r15
je 0x140024be0
cmp rbx, 0x600000
jge 0x140024b6f
mov esi, 4
jmp 0x140024be0
cmp rbx, 0x3200000
jge 0x140024b7f
mov esi, 0x10
jmp 0x140024be0
cmp rbx, 0x6400000
jge 0x140024b8f
mov esi, 0x20
jmp 0x140024be0
cmp rbx, 0x1f400000
jge 0x140024b9f
mov esi, 0x40
jmp 0x140024be0
mov eax, 0x80000000
cmp rbx, rax
jge 0x140024bb0
mov esi, 0x80
jmp 0x140024be0
movabs rax, 0x300000000
cmp rbx, rax
jge 0x140024bc6
mov esi, 0x100
jmp 0x140024be0
movabs rax, 0x600000000
mov esi, 0x400
cmp rbx, rax
mov ecx, 0x200
cmovl esi, ecx
mov rdx, qword [rbp - 0x18]
mov r8d, esi
mov rcx, r12
call fcn.140024680
movzx esi, al
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test sil, sil
je 0x140024cbe
mov rcx, qword [rdi + 0x10]
movabs rax, 0x7ffffffffffffffe
mov rdx, qword [0x1400fa608]
sub rax, rcx
cmp rax, rdx
jb 0x140024cfa
cmp qword [rdi + 0x18], 8
mov r9, rdi
jb 0x140024c32
mov r9, qword [rdi]
cmp qword [0x1400fa610], 8
lea rax, [0x1400fa5f8]
mov qword [rsp + 0x30], rdx
cmovae rax, qword [0x1400fa5f8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x38]
call fcn.140029800
cmp qword [rbp - 0x20], 8
lea rdx, [rbp - 0x38]
cmovae rdx, qword [rbp - 0x38]
cmp qword [rdi + 0x18], 8
jb 0x140024c79
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x140024cbe
mov rcx, qword [rbp - 0x38]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024cb9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024cee
call fcn.14006459c
mov r12, qword [rsp + 0xb8]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140064540
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
call fcn.1400987f4
int3
call fcn.1400987f4
int3
call fcn.1400217a0
int3