Function at 0x1800150f0
Capabilities:
Get file size
Open clipboard
Read file on windows
Write clipboard data

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0xd0
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x180035020]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r13, rcx
xor r12d, r12d
mov qword [rbp - 9], r12
mov qword [rbp - 1], r12
mov r14d, r12d
mov qword [rbp - 9], r12
mov r15d, 7
mov qword [rbp - 1], r15
mov word [rbp - 0x19], r12w
cmp qword [rcx + 0x88], r12
je 0x180015551
mov rdx, qword [rcx + 0x80]
test rdx, rdx
je 0x180015551
add rdx, 8
lea rcx, [rbp + 7]
call fcn.1800057e0
nop
lea ecx, [r12 + 8]
call fcn.180021574
mov qword [rbp - 0x41], rax
mov qword [rax], 0xffffffffffffffff
mov qword [rbp - 0x69], rax
mov dword [rsp + 0x20], 3
lea r9d, [r12 + 2]
mov r8d, 0x80000000
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x69]
call fcn.1800192c0
mov rbx, qword [rbp - 0x69]
test al, al
je 0x180015326
test rbx, rbx
je 0x180015326
cmp qword [rbx], 0xffffffffffffffff
je 0x1800151f0
mov qword [rbp - 0x41], r12
xor r9d, r9d
lea r8, [rbp - 0x3d]
xor edx, edx
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp - 0x41], eax
cmp eax, 0xffffffff
jne 0x1800151f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x18001530c
lea rdx, [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
jne 0x18001521c
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18001530c
mov edi, dword [rbp - 0x41]
shl rdi, 0x20
add rdi, rsi
lea rax, [rdi - 1]
cmp rax, 0x31ffffe
ja 0x18001530c
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x29], r12
mov byte [rbp - 0x71], 0
lea edx, [rdi + 8]
lea rax, [rbp - 0x39]
mov qword [rbp - 0x61], rax
lea rax, [rbp - 0x71]
mov qword [rbp - 0x59], rax
movaps xmm0, xmmword [rbp - 0x61]
movdqa xmmword [rbp - 0x61], xmm0
lea r8, [rbp - 0x61]
lea rcx, [rbp - 0x39]
call fcn.180016e10
mov dword [rbp - 0x41], r12d
mov rdx, qword [rbp - 0x39]
test rdx, rdx
je 0x1800152c3
cmp qword [rbx], 0xffffffffffffffff
je 0x1800152c3
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x41]
mov r8d, edi
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800152c3
mov eax, dword [rbp - 0x41]
mov edx, eax
cmp rax, rdi
jne 0x1800152c3
cmp eax, 3
jbe 0x1800152c3
mov rcx, qword [rbp - 0x39]
add rcx, 3
lea r8, [rbp - 0x19]
call fcn.18001a0e0
mov r15, qword [rbp - 1]
mov r14, qword [rbp - 9]
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x18001530c
mov rdx, qword [rbp - 0x29]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800152fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800152fb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180021994
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x29], r12
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x180015326
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x180015326
mov qword [rbx], 0xffffffffffffffff
test rbx, rbx
je 0x180015352
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x180015341
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r12
mov edx, 8
mov rcx, rbx
call fcn.180021994
mov qword [rbp - 0x69], r12
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x180015395
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180015390
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015390
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180021994
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x1f], 7
mov word [rbp + 7], r12w
test r14, r14
je 0x180015551
mov rcx, qword [r13 + 8]
mov byte [rbp - 0x71], 0
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne al
mov byte [rbp - 0x71], al
mov rdi, qword [rbp - 0x19]
test al, al
jne 0x1800153d2
jmp 0x180015481
lea rsi, [rbp - 0x19]
cmp r15, 8
cmovae rsi, rdi
lea r14, [r14*2 + 2]
mov qword [rbp - 0x41], r12
mov rdx, r14
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x18001546b
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x61], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rbp - 0x59], rax
test rax, rax
jne 0x180015429
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbp - 0x41], rax
jmp 0x18001546b
mov r8, r14
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rbx
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
jne 0x180015463
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbp - 0x41], rax
jmp 0x18001546b
mov qword [rbp - 0x41], r12
mov bl, 1
jmp 0x18001546d
xor bl, bl
call qword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
sete byte [rbp - 0x71]
test bl, bl
jne 0x180015555
lea rcx, [rbp + 7]
call fcn.180018720
nop
cmp qword [rax + 0x18], 8
jb 0x180015495
mov rax, qword [rax]
mov r8, rax
mov edx, 0x9cdb
lea rcx, [rbp - 0x39]
call fcn.1800074d0
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x1800154ea
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800154e5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800154e5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180021994
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x1f], 7
mov word [rbp + 7], r12w
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x18001553e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180015539
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015539
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180021994
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x21], 7
mov word [rbp - 0x39], r12w
jmp 0x180015555
mov rdi, qword [rbp - 0x19]
cmp r15, 8
jb 0x180015593
lea rdx, [r15*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x18001558b
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001558b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.180021994
mov qword [rbp - 9], r12
mov qword [rbp - 1], 7
mov word [rbp - 0x19], r12w
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.180021550
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret