Function at 0x140023df0
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 0x140023e2a
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 0x140023e50
mov rdx, r15
mov qword [rsp + 0xb8], r12
lea rcx, [rbp - 0x38]
call fcn.1400276c0
lea rsi, [0x1400f6aa0]
mov rdx, rsi
lea r8, [rbp - 0x38]
lea rcx, [0x1400f69e0]
call fcn.140029130
mov rdx, qword [rbp - 0x20]
mov rbx, rax
cmp rdx, 7
jbe 0x140023ecb
mov rcx, qword [rbp - 0x38]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140023ec6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024244
call fcn.14005ff0c
cmp rbx, rsi
jne 0x14002420e
cmp qword [rdi + 0x18], 7
mov rcx, rdi
jbe 0x140023ee1
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 0x14002420e
lea rdx, [rbp - 0x18]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
jne 0x140023f33
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x14002420e
mov rbx, qword [rbp - 0x18]
cmp rbx, 0x96000
jg 0x140024018
mov ecx, ebx
xor sil, sil
add rcx, 0x38
call fcn.140060250
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 0x14002400b
cmp dword [rbp - 0x3c], ebx
jne 0x14002400b
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.14003ba70
mov edx, dword [rbp - 0x3c]
add rdx, 0x38
lea ebx, [rax + 0x38]
mov ecx, ebx
cmp rcx, rdx
jne 0x14002400b
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 0x14002400b
cmp dword [rbp - 0x40], ebx
jne 0x14002400b
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 0x14002400b
cmp dword [rbp - 0x40], 0x78
mov eax, 1
movzx esi, sil
cmove esi, eax
mov rcx, r14
call fcn.14005ff0c
jmp 0x140024142
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 0x140024030
mov r8, r14
lea rcx, [rbp - 0x38]
mov rdx, r15
call fcn.1400276c0
lea r15, [0x1400f6f40]
mov rdx, r15
lea r8, [rbp - 0x38]
lea rcx, [0x1400f6aa0]
call fcn.140029130
mov rdx, qword [rbp - 0x20]
mov r14, rax
cmp rdx, 7
jbe 0x1400240a6
mov rcx, qword [rbp - 0x38]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400240a1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024244
call fcn.14005ff0c
cmp r14, r15
je 0x140024130
cmp rbx, 0x600000
jge 0x1400240bf
mov esi, 4
jmp 0x140024130
cmp rbx, 0x3200000
jge 0x1400240cf
mov esi, 0x10
jmp 0x140024130
cmp rbx, 0x6400000
jge 0x1400240df
mov esi, 0x20
jmp 0x140024130
cmp rbx, 0x1f400000
jge 0x1400240ef
mov esi, 0x40
jmp 0x140024130
mov eax, 0x80000000
cmp rbx, rax
jge 0x140024100
mov esi, 0x80
jmp 0x140024130
movabs rax, 0x300000000
cmp rbx, rax
jge 0x140024116
mov esi, 0x100
jmp 0x140024130
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.140023bd0
movzx esi, al
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test sil, sil
je 0x14002420e
mov rcx, qword [rdi + 0x10]
movabs rax, 0x7ffffffffffffffe
mov rdx, qword [0x1400f16e8]
sub rax, rcx
cmp rax, rdx
jb 0x14002424a
cmp qword [rdi + 0x18], 7
mov r9, rdi
jbe 0x140024182
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.140028d70
cmp qword [rbp - 0x20], 7
lea rdx, [rbp - 0x38]
cmova rdx, qword [rbp - 0x38]
cmp qword [rdi + 0x18], 7
jbe 0x1400241c9
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_MoveFileW]
mov rdx, qword [rbp - 0x20]
cmp rdx, 7
jbe 0x14002420e
mov rcx, qword [rbp - 0x38]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024209
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002423e
call fcn.14005ff0c
mov r12, qword [rsp + 0xb8]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14005feb0
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.140091ac4
int3
call fcn.140091ac4
int3
call fcn.140020b30
int3