Function at 0x1800078c0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x180034310]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r13, rcx
mov qword [rbp - 0x10], send
xor r14d, r14d
mov qword [rbp - 0x18], r14
mov byte [rbp - 0x28], r14b
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
call qword [sym.imp.USER32.dll_OpenClipboard]
lea ecx, [r14 + 1]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov r12, rax
or r15, 0xffffffffffffffff
test rax, rax
je 0x1800079ff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalSize]
lea ebx, [rax + 1]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
xor eax, eax
mov rcx, r15
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rsi
lea rcx, [rbp - 0x28]
call fcn.180009640
test rsi, rsi
je 0x1800079f6
cmp ebx, 0x3e8
jge 0x1800079f6
mov rax, rsi
mov r9, qword [0x18003bc88]
mov rdi, r9
sub rdi, rsi
nop
movzx ecx, byte [rax]
movzx edx, byte [rax + rdi]
sub ecx, edx
jne 0x1800079a2
inc rax
test edx, edx
jne 0x180007990
test ecx, ecx
je 0x1800079f6
movsxd rdi, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, r9
call fcn.180015b40
mov rcx, rdi
call fcn.180014f64
mov rdi, rax
mov byte [rax], 0xa
lea ecx, [rbx - 1]
movsxd r8, ecx
lea rcx, [rax + 1]
mov rdx, rsi
call fcn.180015b40
cmp dword [r13 + 0x10], 0
jne 0x1800079ee
mov rcx, qword [r13 + 8]
mov rax, qword [rcx]
mov r8d, ebx
mov rdx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, rdi
call fcn.180016660
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [r13 + 0x27c], 0
je 0x180007da2
lea rcx, [r13 + 0x280]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdi, qword [0x18003c280]
cmp rdi, qword [0x18003c288]
je 0x180007d94
nop word [rax + rax]
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], r14
mov byte [rbp - 0x68], 0
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], r14
mov byte [rbp - 0x50], 0
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x40], r14
mov byte [rbp - 0x38], 0
mov rbx, qword [rdi]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
call fcn.1800153e8
mov qword [rsp + 0x50], rax
call fcn.180015198
mov rsi, rax
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18001556c
mov rcx, qword [rsi + 8]
cmp rcx, 0xffffffffffffffff
jae 0x180007ab9
inc rcx
mov qword [rsi + 8], rcx
lea rcx, [rsp + 0x30]
call fcn.18001559c
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x180007ad3
mov rcx, qword [rbx]
jmp 0x180007ad6
mov rcx, rbx
mov rax, qword [rbx + 0x10]
lea r8, [rcx + rax]
cmp rdx, 0x10
jb 0x180007ae7
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.18000a810
nop
mov rsi, qword [rdi]
add rsi, 0x28
mov edx, send
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x10], r14
mov byte [rbp], 0
mov rbx, qword [rsi + 0x10]
cmp rbx, 0xffffffffffffffff
cmova rbx, r15
lea rax, [rbp]
cmp rax, rsi
jne 0x180007b41
mov r8, r15
mov rdx, rbx
lea rcx, [rbp]
call fcn.180009850
xor r8d, r8d
xor edx, edx
lea rcx, [rbp]
call fcn.180009850
jmp 0x180007bb3
cmp rbx, 0xfffffffffffffffe
ja 0x180007d87
cmp rbx, rdx
jbe 0x180007b65
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp]
call fcn.18000a080
mov rdx, qword [rbp + 0x18]
jmp 0x180007b71
test rbx, rbx
jne 0x180007b74
mov qword [rbp + 0x10], r14
mov byte [rbp], bl
test rbx, rbx
setne al
test al, al
je 0x180007bb3
cmp qword [rsi + 0x18], 0x10
jb 0x180007b85
mov rsi, qword [rsi]
lea rcx, [rbp]
cmp rdx, 0x10
cmovae rcx, qword [rbp]
mov r8, rbx
mov rdx, rsi
call fcn.180015b40
mov qword [rbp + 0x10], rbx
lea rax, [rbp]
cmp qword [rbp + 0x18], 0x10
cmovae rax, qword [rbp]
mov byte [rax + rbx], 0
lea r10, [rbp - 0x28]
mov r9, qword [rbp - 0x28]
mov r8, qword [rbp - 0x10]
cmp r8, 0x10
cmovae r10, r9
lea rdx, [rbp - 0x28]
cmovae rdx, r9
add rdx, qword [rbp - 0x18]
lea rcx, [rbp - 0x28]
cmp r8, 0x10
cmovae rcx, r9
mov qword [rsp + 0x28], r10
mov dword [rsp + 0x20], r14d
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x60]
call fcn.18000a4e0
test al, al
je 0x180007cb7
lea r9, [rbp]
lea r8, [rsp + 0x38]
lea rdx, [rbp - 0x28]
lea rcx, [rbp + 0x28]
call fcn.18000a370
mov rbx, rax
lea rax, [rbp - 0x28]
cmp rax, rbx
je 0x180007c80
cmp qword [rbp - 0x10], 0x10
jb 0x180007c32
mov rcx, qword [rbp - 0x28]
call fcn.180015af4
mov qword [rbp - 0x10], send
mov qword [rbp - 0x18], r14
mov byte [rbp - 0x28], 0
cmp qword [rbx + 0x18], 0x10
jae 0x180007c5e
mov r8, qword [rbx + 0x10]
inc r8
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.180015b40
jmp 0x180007c68
mov rax, qword [rbx]
mov qword [rbp - 0x28], rax
mov qword [rbx], r14
mov rax, qword [rbx + 0x10]
mov qword [rbp - 0x18], rax
mov rax, qword [rbx + 0x18]
mov qword [rbp - 0x10], rax
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
cmp qword [rbp + 0x40], 0x10
jb 0x180007c90
mov rcx, qword [rbp + 0x28]
call fcn.180015af4
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rcx, qword [rbp - 0x28]
mov edx, dword [rbp - 0x18]
inc edx
call fcn.180008bd0
lea rdx, [0x18002ce10]
mov rcx, r13
call fcn.180008c60
add rdi, 8
cmp qword [rbp + 0x18], 0x10
jb 0x180007ccb
mov rcx, qword [rbp]
call fcn.180015af4
mov qword [rbp + 0x18], send
mov qword [rbp + 0x10], r14
mov byte [rbp], 0
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x180007d10
dec dword [rax + 0x28]
jne 0x180007d10
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x180007d10
mov rcx, rbx
lea rax, [rbx + 0x10]
mov rbx, qword [rax]
mov qword [rax], r14
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
test rbx, rbx
jne 0x180007cf4
mov qword [rsp + 0x38], r14
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x180007d69
xor edx, edx
lea rcx, [rsp + 0x34]
call fcn.18001556c
mov rax, qword [rbx + 8]
test rax, rax
je 0x180007d41
cmp rax, 0xffffffffffffffff
jae 0x180007d41
dec rax
mov qword [rbx + 8], rax
mov rsi, r14
cmp qword [rbx + 8], r14
cmove rsi, rbx
lea rcx, [rsp + 0x34]
call fcn.18001559c
test rsi, rsi
je 0x180007d69
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180007d78
call fcn.180015af4
cmp rdi, qword [0x18003c288]
jne 0x180007a40
jmp 0x180007d94
lea rcx, str.string_too_long
call fcn.180014eac
nop
lea rcx, [r13 + 0x280]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
cmp qword [rbp - 0x10], 0x10
jb 0x180007db2
mov rcx, qword [rbp - 0x28]
call fcn.180015af4
xor eax, eax
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.180015b10
lea r11, [rsp + 0x160]
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