Function at 0x140024830
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 [0x1400ea180]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r13d, r13d
mov rdi, rcx
cmp qword [rcx + 0x18], 8
jb 0x14002486a
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 0x140024890
mov rdx, r15
mov qword [rsp + 0xb8], r12
lea rcx, [rbp - 0x38]
call fcn.140028760
lea rsi, [0x140100be0]
mov rdx, rsi
lea r8, [rbp - 0x38]
lea rcx, [0x140100b20]
call fcn.140029ab0
mov rdx, qword [rbp - 0x20]
mov rbx, rax
cmp rdx, 8
jb 0x14002490b
mov rcx, qword [rbp - 0x38]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024906
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024c84
call fcn.1400652cc
cmp rbx, rsi
jne 0x140024c4e
cmp qword [rdi + 0x18], 8
mov rcx, rdi
jb 0x140024921
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 0x140024c4e
lea rdx, [rbp - 0x18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140024973
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140024c4e
mov rbx, qword [rbp - 0x18]
cmp rbx, 0x96000
jg 0x140024a58
mov ecx, ebx
xor sil, sil
add rcx, 0x38
call fcn.140065620
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 0x140024a4b
cmp dword [rbp - 0x3c], ebx
jne 0x140024a4b
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, [0x140100af8]
mov rcx, r14
lea rdx, [r14 + r8]
call fcn.140040140
mov edx, dword [rbp - 0x3c]
add rdx, 0x38
lea ebx, [rax + 0x38]
mov ecx, ebx
cmp rcx, rdx
jne 0x140024a4b
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 0x140024a4b
cmp dword [rbp - 0x40], ebx
jne 0x140024a4b
lea r9, [rbp - 0x40]
mov qword [rsp + 0x20], r13
mov r8d, 0x78
lea rdx, [0x140100a80]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140024a4b
cmp dword [rbp - 0x40], 0x78
mov eax, 1
movzx esi, sil
cmove esi, eax
mov rcx, r14
call fcn.1400652cc
jmp 0x140024b82
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 0x140024a70
mov r8, r14
lea rcx, [rbp - 0x38]
mov rdx, r15
call fcn.140028760
lea r15, [0x140101080]
mov rdx, r15
lea r8, [rbp - 0x38]
lea rcx, [0x140100be0]
call fcn.140029ab0
mov rdx, qword [rbp - 0x20]
mov r14, rax
cmp rdx, 8
jb 0x140024ae6
mov rcx, qword [rbp - 0x38]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024ae1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024c84
call fcn.1400652cc
cmp r14, r15
je 0x140024b70
cmp rbx, 0x600000
jge 0x140024aff
mov esi, 4
jmp 0x140024b70
cmp rbx, 0x3200000
jge 0x140024b0f
mov esi, 0x10
jmp 0x140024b70
cmp rbx, 0x6400000
jge 0x140024b1f
mov esi, 0x20
jmp 0x140024b70
cmp rbx, 0x1f400000
jge 0x140024b2f
mov esi, 0x40
jmp 0x140024b70
mov eax, 0x80000000
cmp rbx, rax
jge 0x140024b40
mov esi, 0x80
jmp 0x140024b70
movabs rax, 0x300000000
cmp rbx, rax
jge 0x140024b56
mov esi, 0x100
jmp 0x140024b70
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.140024610
movzx esi, al
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test sil, sil
je 0x140024c4e
mov rcx, qword [rdi + 0x10]
movabs rax, 0x7ffffffffffffffe
mov rdx, qword [0x1400fb608]
sub rax, rcx
cmp rax, rdx
jb 0x140024c8a
cmp qword [rdi + 0x18], 8
mov r9, rdi
jb 0x140024bc2
mov r9, qword [rdi]
cmp qword [0x1400fb610], 8
lea rax, [0x1400fb5f8]
mov qword [rsp + 0x30], rdx
cmovae rax, qword [0x1400fb5f8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x38]
call fcn.1400296f0
cmp qword [rbp - 0x20], 8
lea rdx, [rbp - 0x38]
cmovae rdx, qword [rbp - 0x38]
cmp qword [rdi + 0x18], 8
jb 0x140024c09
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x140024c4e
mov rcx, qword [rbp - 0x38]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024c49
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024c7e
call fcn.1400652cc
mov r12, qword [rsp + 0xb8]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140065270
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.140099524
int3
call fcn.140099524
int3
call fcn.1400217a0
int3