Function at 0x140023de0
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 [0x1400e0180]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r13d, r13d
mov rdi, rcx
cmp qword [rcx + 0x18], 7
jbe 0x140023e1a
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 0x140023e40
mov rdx, r15
mov qword [rsp + 0xb8], r12
lea rcx, [rbp - 0x38]
call fcn.1400276b0
lea rsi, [0x1400f6aa0]
mov rdx, rsi
lea r8, [rbp - 0x38]
lea rcx, [0x1400f69e0]
call fcn.140029120
mov rdx, qword [rbp - 0x20]
mov rbx, rax
cmp rdx, 7
jbe 0x140023ebb
mov rcx, qword [rbp - 0x38]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140023eb6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024234
call fcn.14005ff8c
cmp rbx, rsi
jne 0x1400241fe
cmp qword [rdi + 0x18], 7
mov rcx, rdi
jbe 0x140023ed1
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 0x1400241fe
lea rdx, [rbp - 0x18]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
jne 0x140023f23
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x1400241fe
mov rbx, qword [rbp - 0x18]
cmp rbx, 0x96000
jg 0x140024008
mov ecx, ebx
xor sil, sil
add rcx, 0x38
call fcn.1400602d0
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 0x140023ffb
cmp dword [rbp - 0x3c], ebx
jne 0x140023ffb
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, [0x1400f69b8]
mov rcx, r14
lea rdx, [r14 + r8]
call fcn.14003bab0
mov edx, dword [rbp - 0x3c]
add rdx, 0x38
lea ebx, [rax + 0x38]
mov ecx, ebx
cmp rcx, rdx
jne 0x140023ffb
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 0x140023ffb
cmp dword [rbp - 0x40], ebx
jne 0x140023ffb
lea r9, [rbp - 0x40]
mov qword [rsp + 0x20], r13
mov r8d, 0x78
lea rdx, [0x1400f6940]
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x140023ffb
cmp dword [rbp - 0x40], 0x78
mov eax, 1
movzx esi, sil
cmove esi, eax
mov rcx, r14
call fcn.14005ff8c
jmp 0x140024132
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 0x140024020
mov r8, r14
lea rcx, [rbp - 0x38]
mov rdx, r15
call fcn.1400276b0
lea r15, [0x1400f6f40]
mov rdx, r15
lea r8, [rbp - 0x38]
lea rcx, [0x1400f6aa0]
call fcn.140029120
mov rdx, qword [rbp - 0x20]
mov r14, rax
cmp rdx, 7
jbe 0x140024096
mov rcx, qword [rbp - 0x38]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024091
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024234
call fcn.14005ff8c
cmp r14, r15
je 0x140024120
cmp rbx, 0x600000
jge 0x1400240af
mov esi, 4
jmp 0x140024120
cmp rbx, 0x3200000
jge 0x1400240bf
mov esi, 0x10
jmp 0x140024120
cmp rbx, 0x6400000
jge 0x1400240cf
mov esi, 0x20
jmp 0x140024120
cmp rbx, 0x1f400000
jge 0x1400240df
mov esi, 0x40
jmp 0x140024120
mov eax, 0x80000000
cmp rbx, rax
jge 0x1400240f0
mov esi, 0x80
jmp 0x140024120
movabs rax, 0x300000000
cmp rbx, rax
jge 0x140024106
mov esi, 0x100
jmp 0x140024120
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.140023bc0
movzx esi, al
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test sil, sil
je 0x1400241fe
mov rcx, qword [rdi + 0x10]
movabs rax, 0x7ffffffffffffffe
mov rdx, qword [0x1400f16e8]
sub rax, rcx
cmp rax, rdx
jb 0x14002423a
cmp qword [rdi + 0x18], 7
mov r9, rdi
jbe 0x140024172
mov r9, qword [rdi]
cmp qword [0x1400f16f0], 7
lea rax, [0x1400f16d8]
mov qword [rsp + 0x30], rdx
cmova rax, qword [0x1400f16d8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x38]
call fcn.140028d60
cmp qword [rbp - 0x20], 7
lea rdx, [rbp - 0x38]
cmova rdx, qword [rbp - 0x38]
cmp qword [rdi + 0x18], 7
jbe 0x1400241b9
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_MoveFileW]
mov rdx, qword [rbp - 0x20]
cmp rdx, 7
jbe 0x1400241fe
mov rcx, qword [rbp - 0x38]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400241f9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002422e
call fcn.14005ff8c
mov r12, qword [rsp + 0xb8]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14005ff30
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.140091b44
int3
call fcn.140091b44
int3
call fcn.140020b30
int3