Function at 0x140024910
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 [0x1400e8180]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r13d, r13d
mov rdi, rcx
cmp qword [rcx + 0x18], 8
jb 0x14002494a
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 0x140024970
mov rdx, r15
mov qword [rsp + 0xb8], r12
lea rcx, [rbp - 0x38]
call fcn.140028840
lea rsi, [0x1400feb40]
mov rdx, rsi
lea r8, [rbp - 0x38]
lea rcx, [0x1400fea80]
call fcn.140029b90
mov rdx, qword [rbp - 0x20]
mov rbx, rax
cmp rdx, 8
jb 0x1400249eb
mov rcx, qword [rbp - 0x38]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400249e6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024d64
call fcn.14006127c
cmp rbx, rsi
jne 0x140024d2e
cmp qword [rdi + 0x18], 8
mov rcx, rdi
jb 0x140024a01
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 0x140024d2e
lea rdx, [rbp - 0x18]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
jne 0x140024a53
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x140024d2e
mov rbx, qword [rbp - 0x18]
cmp rbx, 0x96000
jg 0x140024b38
mov ecx, ebx
xor sil, sil
add rcx, 0x38
call fcn.1400615d0
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 0x140024b2b
cmp dword [rbp - 0x3c], ebx
jne 0x140024b2b
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, [0x1400fea58]
mov rcx, r14
lea rdx, [r14 + r8]
call fcn.14003c5f0
mov edx, dword [rbp - 0x3c]
add rdx, 0x38
lea ebx, [rax + 0x38]
mov ecx, ebx
cmp rcx, rdx
jne 0x140024b2b
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 0x140024b2b
cmp dword [rbp - 0x40], ebx
jne 0x140024b2b
lea r9, [rbp - 0x40]
mov qword [rsp + 0x20], r13
mov r8d, 0x78
lea rdx, [0x1400fe9e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x140024b2b
cmp dword [rbp - 0x40], 0x78
mov eax, 1
movzx esi, sil
cmove esi, eax
mov rcx, r14
call fcn.14006127c
jmp 0x140024c62
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 0x140024b50
mov r8, r14
lea rcx, [rbp - 0x38]
mov rdx, r15
call fcn.140028840
lea r15, [0x1400fefe0]
mov rdx, r15
lea r8, [rbp - 0x38]
lea rcx, [0x1400feb40]
call fcn.140029b90
mov rdx, qword [rbp - 0x20]
mov r14, rax
cmp rdx, 8
jb 0x140024bc6
mov rcx, qword [rbp - 0x38]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024bc1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024d64
call fcn.14006127c
cmp r14, r15
je 0x140024c50
cmp rbx, 0x600000
jge 0x140024bdf
mov esi, 4
jmp 0x140024c50
cmp rbx, 0x3200000
jge 0x140024bef
mov esi, 0x10
jmp 0x140024c50
cmp rbx, 0x6400000
jge 0x140024bff
mov esi, 0x20
jmp 0x140024c50
cmp rbx, 0x1f400000
jge 0x140024c0f
mov esi, 0x40
jmp 0x140024c50
mov eax, 0x80000000
cmp rbx, rax
jge 0x140024c20
mov esi, 0x80
jmp 0x140024c50
movabs rax, 0x300000000
cmp rbx, rax
jge 0x140024c36
mov esi, 0x100
jmp 0x140024c50
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.1400246f0
movzx esi, al
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test sil, sil
je 0x140024d2e
mov rcx, qword [rdi + 0x10]
movabs rax, 0x7ffffffffffffffe
mov rdx, qword [0x1400f9608]
sub rax, rcx
cmp rax, rdx
jb 0x140024d6a
cmp qword [rdi + 0x18], 8
mov r9, rdi
jb 0x140024ca2
mov r9, qword [rdi]
cmp qword [0x1400f9610], 8
lea rax, [0x1400f95f8]
mov qword [rsp + 0x30], rdx
cmovae rax, qword [0x1400f95f8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x38]
call fcn.1400297d0
cmp qword [rbp - 0x20], 8
lea rdx, [rbp - 0x38]
cmovae rdx, qword [rbp - 0x38]
cmp qword [rdi + 0x18], 8
jb 0x140024ce9
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_MoveFileW]
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x140024d2e
mov rcx, qword [rbp - 0x38]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024d29
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024d5e
call fcn.14006127c
mov r12, qword [rsp + 0xb8]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140061220
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.1400954d0
int3
call fcn.1400954d0
int3
call fcn.140021780
int3