Function at 0x140005ba8
Capabilities:
Open clipboard

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x140096008]
xor rax, rsp
mov qword [rbp + 0x410], rax
xor r14d, r14d
mov dword [rbp - 0x80], edx
mov r13d, edx
mov qword [rbp + 8], rcx
mov r12, rcx
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x48], r14
mov r15d, r14d
lea edx, [r14 + 8]
mov qword [rbp - 8], r14
mov qword [rbp - 0x50], r14
mov ebx, r14d
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], r14
mov dword [rbp - 0x7c], r14d
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x10], r14
mov dword [0x140096d1c], r14d
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
mov qword [rbp], rax
mov rdi, rax
test rax, rax
jne 0x140005c3d
mov eax, 0x2714
jmp 0x140006697
mov rcx, qword [0x1400970d8]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140005c73
movzx ecx, word [0x140096f1c]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
movzx ecx, word [0x140096f14]
mov r15d, eax
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
mov ebx, eax
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
lea rcx, [rbp - 0x74]
mov edx, r14d
mov qword [rsp + 0x20], rcx
lea r8, [rbp - 0x78]
test r15d, r15d
mov rcx, rax
mov r9d, 1
sete dl
call fcn.140060910
mov rcx, rdi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
test esi, esi
jne 0x140005cb6
xor eax, eax
jmp 0x140006697
cmp dword [rbp - 0x74], r14d
je 0x140005cc8
mov ecx, 0x16
call fcn.140055b80
jmp 0x140005caf
mov eax, dword [rbp - 0x78]
mov rcx, rdi
shr rax, 0x10
cwde
mov dword [rbp - 0x74], eax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r14, rax
test ebx, ebx
jne 0x140005cec
test r15d, r15d
je 0x14000666f
mov rcx, qword [0x1400b8a28]
call qword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [0x1400b8b40]
lea r9, [rbp - 0x38]
mov edx, 0x64
mov dword [0x140096f20], 1
lea r8d, [rdx + 6]
call fcn.14004564c
mov esi, eax
test eax, eax
jne 0x140006673
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, qword [rbp - 0x38]
movzx ebx, word [r14]
movzx edi, word [rax + 0x10]
mov eax, dword [rax + 0x16]
mov dword [rbp - 0x58], eax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp di, bx
jne 0x14000668b
mov ecx, dword [0x1400b8b40]
lea r9, [rbp - 0x68]
lea edx, [rsi + 0x64]
lea r8d, [rsi + 0x69]
call fcn.14004564c
mov esi, eax
test eax, eax
jne 0x140006673
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_GlobalSize]
lea ecx, [rsi + 2]
lea rdx, [rax - 0x10]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
mov ebx, 0x2714
mov rdi, rax
cmove esi, ebx
test esi, esi
jne 0x140006661
mov rcx, qword [rbp - 0x68]
mov rdx, rax
call fcn.140046f88
mov ecx, dword [0x1400b8b40]
lea r9, [rbp - 0x70]
lea edx, [rsi + 0x64]
lea r8d, [rsi + 0x6f]
call fcn.14004564c
mov esi, eax
test eax, eax
jne 0x140006661
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov rdx, rax
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, qword [rbp - 0x70]
mov rdx, rax
mov rsi, rax
mov qword [rbp - 0x68], rax
call fcn.140046f88
mov r9, qword [r14 + 0x1e6]
mov r8, rdi
mov rcx, qword [r14 + 0xba]
mov rdx, rsi
call fcn.140079fd4
mov esi, eax
test eax, eax
jne 0x14000664f
test rdi, rdi
je 0x140005e23
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [0x1400b8b40]
lea r9, [rbp - 0x50]
xor edi, edi
mov qword [rbp - 0x70], rdi
lea edx, [rdi + 0x64]
lea r8d, [rdi + 0x67]
call fcn.14004564c
mov esi, eax
test eax, eax
jne 0x14000664f
mov ecx, dword [r14 + 0x26]
lea r9, [r14 + 0xde]
lea edx, [rdi + 0x64]
lea r8d, [rdi + 0x67]
call fcn.140045710
mov esi, eax
test eax, eax
jne 0x14000664f
test r15d, r15d
je 0x140005eab
lea r8, [rbp - 0x7c]
mov rcx, r14
call fcn.1400056b4
mov esi, eax
test eax, eax
jne 0x14000664f
mov r9, qword [rbp - 0x68]
mov r8d, r13d
mov edx, dword [r14 + 0x26]
mov rcx, r12
call fcn.1400058f8
mov rcx, qword [rbp]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, ebx
jmp 0x140006697
mov ecx, dword [r14 + 0x26]
lea r15, [r14 + 0x1da]
mov edx, 0x64
mov r9, r15
lea r8d, [rdx + 4]
call fcn.140045710
mov esi, eax
test eax, eax
jne 0x14000664f
lea edx, [rax + 9]
mov rcx, r14
call fcn.140060aec
mov esi, eax
test eax, eax
jne 0x14000664f
lea r8, [rbp - 0x7c]
mov rcx, r14
call fcn.1400056b4
mov esi, eax
test eax, eax
jne 0x14000664f
mov rcx, qword [r14 + 0x1fa]
call fcn.140044844
mov esi, eax
test eax, eax
jne 0x14000664f
mov rcx, qword [r14 + 0x1fa]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdi, rax
mov rcx, qword [rax + 0x54]
call fcn.140044844
mov esi, eax
test eax, eax
jne 0x140005f3c
mov rcx, qword [rdi + 0x60]
call fcn.140044844
mov esi, eax
mov rcx, qword [r14 + 0x1fa]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
test esi, esi
jne 0x14000664b
mov r8d, dword [rbp - 0x74]
lea r9, [rbp - 0x48]
mov ecx, dword [r14 + 0x26]
lea edx, [rsi + 0x65]
call fcn.14004564c
mov esi, eax
test eax, eax
jne 0x14000664b
lea edx, [rax + 0xc]
lea ecx, [rax + 2]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
mov qword [rbp - 0x38], rax
cmove esi, ebx
test esi, esi
jne 0x140006639
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, qword [rbp - 0x38]
and dword [rax], esi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdi, qword [rbp - 0x48]
mov rcx, rdi
call fcn.14004708c
mov rcx, rdi
call fcn.140044844
mov esi, eax
test eax, eax
jne 0x140006639
mov rcx, qword [r15]
call fcn.14004708c
mov rcx, qword [r15]
call fcn.140044844
mov esi, eax
test eax, eax
jne 0x140006639
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
movsx esi, word [rbp - 0x78]
mov rbx, rax
mov edx, esi
mov rcx, rbx
mov eax, dword [rax + 0x38]
inc eax
mov dword [rbp - 0x60], eax
call fcn.140021bb8
mov r15d, dword [rax + 0x2c]
mov ecx, dword [rax + 0x10]
and r15d, 0x10
cmp dword [rbx + 0x34], 0x22
mov dword [rbp - 0x28], ecx
jne 0x14000601c
mov r13d, dword [rbx + 0x8c]
dec r13d
jmp 0x14000601f
mov r13d, esi
mov edx, r13d
mov rcx, rbx
call fcn.140021bb8
mov ecx, dword [rbx + 0x3c]
mov edx, dword [rax + 0x108]
mov eax, dword [rax]
inc edx
add ecx, edx
mov dword [rbp - 0x30], eax
mov dword [rbp - 0x7c], ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, dword [rbp - 0x80]
lea r8, [rbp - 0x5c]
mov edx, 0x66
mov ecx, ebx
call fcn.140047a28
mov esi, eax
test eax, eax
jne 0x140006639
cmp dword [rbp - 0x5c], 1
jne 0x140006156
test r15d, r15d
jne 0x140006156
lea r15d, [rax + 0x66]
xor r8d, r8d
mov edx, r15d
lea r9, [rbp - 0x80]
mov ecx, ebx
call fcn.140047ad4
mov esi, eax
test eax, eax
jne 0x140006639
mov r8d, dword [rbp - 0x80]
lea r9, [rbp - 0x50]
mov edx, r15d
mov ecx, ebx
call fcn.14004564c
mov esi, eax
test eax, eax
jne 0x140006639
mov r8d, dword [rbp - 0x28]
lea r9, [rbp - 0x40]
mov ecx, dword [r14 + 0x26]
mov edx, r15d
call fcn.14004564c
mov esi, eax
test eax, eax
jne 0x140006639
mov rbx, qword [rbp - 0x40]
mov rcx, rbx
call fcn.140044844
mov rcx, rbx
mov esi, eax
call fcn.14004708c
test esi, esi
jne 0x14000611b
mov rcx, qword [rbp - 0x50]
call fcn.1400226a8
mov edx, eax
mov rcx, rbx
call fcn.140044914
mov esi, eax
test eax, eax
jne 0x14000611b
mov rcx, rbx
call fcn.1400226a8
mov rcx, qword [rbp - 0x50]
mov rdx, rbx
mov r8d, eax
call fcn.140046f10
mov rcx, qword [rbp - 0x68]
mov rdx, rbx
call fcn.140004a04
test esi, esi
jne 0x140006639
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
movsx edx, word [rbp - 0x78]
mov rcx, rax
call fcn.140021bb8
mov rcx, rdi
or dword [rax + 0x2c], 2
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x140006568
mov ebx, dword [rbp - 0x30]
cmp ebx, 0xffffffff
je 0x1400061d4
mov ecx, dword [r14 + 0x26]
mov r8d, r13d
mov rdx, rdi
call fcn.140017ff4
mov esi, eax
test eax, eax
jne 0x140006639
mov ecx, dword [r14 + 0x26]
lea r9, [rbp - 0x48]
mov r8d, ebx
lea edx, [rax + 0x65]
call fcn.14004564c
mov esi, eax
test eax, eax
jne 0x140006639
mov rdi, qword [rbp - 0x48]
mov rcx, rdi
call fcn.14004708c
mov rcx, rdi
call fcn.140044844
mov esi, eax
test eax, eax
jne 0x140006639
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [rax + 0x38]
or dword [rax + 0x2c], 0xffffffff
mov dword [rbp - 0x60], ecx
mov ecx, dword [rax + 0x3c]
mov dword [rbp - 0x7c], ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [r14 + 0x1fa]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rbx, rax
mov rcx, qword [rax + 0x54]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, qword [rbx + 0x54]
mov eax, dword [rax + 0x10]
mov dword [rbp - 0x5c], eax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea r8, [rbp - 0x28]
mov rdx, rbx
mov rcx, r14
call fcn.14002e3f8
mov rcx, qword [rbx + 0x54]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, qword [rbx + 0x54]
mov eax, dword [rax + 0x10]
mov dword [rbp - 0x78], eax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [r14 + 0x1fa]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
test esi, esi
jne 0x140006639
mov ebx, dword [rbp - 0x28]
test ebx, ebx
je 0x14000625c
lea eax, [rbx + 1]
movsxd rdx, eax
lea ecx, [rsi + 0x42]
shl rdx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbp - 0x20], rax
mov r15d, dword [rbp - 0x80]
lea r9, [rbp - 0x18]
mov r8d, dword [rbp - 0x58]
mov ecx, r15d
mov edx, 0x65
call fcn.14004564c
mov esi, eax
test eax, eax
jne 0x140006639
mov rax, qword [rbp - 0x20]
test rax, rax
je 0x140006291
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8d, dword [r14 + 0x26]
mov r9d, r15d
mov dword [rsp + 0x78], ebx
mov rdx, r14
mov ebx, dword [rbp - 0x60]
mov rcx, r12
mov qword [rsp + 0x70], rax
and dword [rsp + 0x68], 0
mov qword [rbp - 0x40], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x60], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x58], rax
mov eax, dword [rbp - 0x7c]
mov dword [rsp + 0x50], eax
mov rax, qword [rbp - 0x18]
mov dword [rsp + 0x48], ebx
and dword [rsp + 0x40], 0
or dword [rsp + 0x38], 0xffffffff
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x38]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x20], rax
call fcn.140005310
mov r15, qword [rbp - 0x20]
mov esi, eax
test r15, r15
je 0x140006433
mov rcx, qword [r14 + 0x1fa]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rbp - 0x28], rax
mov rcx, qword [rax + 0x54]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
movsxd rdx, dword [rbp - 0x5c]
movsxd r12, dword [rbp - 0x78]
cmp rdx, r12
jge 0x140006402
mov rdi, qword [rbp - 0x40]
lea rcx, [rdx + 1]
imul r15, rcx, 0xd4
add r15, rax
sub r12, rdx
cmp dword [r15], 0
jl 0x1400063e6
movsxd rax, dword [r15]
lea r9, [rbp - 0x50]
mov edx, 0x66
mov r8d, dword [rdi + rax*4]
mov dword [r15], r8d
mov ecx, dword [r14 + 0x26]
call fcn.14004564c
test eax, eax
jne 0x1400063e2
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [r14 + 0x26]
lea r9, [rbp - 0x10]
mov edx, 0x65
mov qword [rbp - 0x40], rax
mov r8d, dword [rax + 0x14]
call fcn.14004564c
mov dword [rbp - 0x58], eax
test eax, eax
jne 0x1400063d2
mov rbx, qword [rbp - 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, qword [rbp - 0x40]
mov edx, dword [rcx + 0x18]
mov rcx, rax
call fcn.140021bb8
mov rcx, rbx
inc dword [rax + 0x90]
call fcn.14004708c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [rbp - 0x58], 0
je 0x1400063e6
or dword [r15], 0xffffffff
add r15, 0xd4
sub r12, 1
jne 0x14000634a
mov rdi, qword [rbp - 0x48]
mov ebx, dword [rbp - 0x60]
mov r15, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x28]
mov rcx, qword [rcx + 0x54]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [r14 + 0x1fa]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r12, qword [rbp + 8]
test esi, esi
jne 0x140006639
mov r15d, dword [rbp - 0x80]
lea r9, [rbp - 0x18]
mov ecx, dword [r14 + 0x26]
lea edx, [rsi + 0x65]
mov r8d, r15d
call fcn.14004564c
mov esi, eax
test eax, eax
jne 0x140006639
and dword [rsp + 0x28], eax
mov r8d, ebx
mov rax, qword [r14 + 0x1da]
mov rbx, qword [rbp - 0x18]
mov r9d, dword [rbp - 0x7c]
mov rdx, rbx
mov ecx, dword [r14 + 0x26]
mov qword [rsp + 0x20], rax
call fcn.1400173c8
mov esi, eax
test eax, eax
jne 0x140006639
cmp dword [rbp - 0x30], 0xffffffff
je 0x140006518
mov rax, qword [r14 + 0x1da]
lea r9d, [rsi + 1]
or dword [rsp + 0x28], 0xffffffff
lea rdx, [rbp - 0x48]
mov ecx, dword [r14 + 0x26]
mov r8, rbx
mov qword [rsp + 0x20], rax
call fcn.14000b94c
mov esi, eax
test eax, eax
jne 0x140006639
mov r8d, dword [rbp - 0x74]
lea r9, [rbp - 8]
mov ecx, dword [r14 + 0x26]
lea edx, [rax + 0x65]
call fcn.14004564c
mov esi, eax
test eax, eax
jne 0x140006639
mov rdi, qword [rbp - 0x48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, rdi
movsx ebx, word [rax]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
and qword [rsp + 0x30], 0
mov r9, rdi
mov rdx, qword [rbp - 8]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], ebx
jmp 0x140006552
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, rax
mov edx, r13d
call fcn.140021bb8
mov rcx, rdi
or dword [rax + 0x2c], 8
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
and qword [rsp + 0x30], 0
mov r9, rbx
mov dword [rsp + 0x28], 1
mov rdx, rdi
mov dword [rsp + 0x20], r15d
mov ecx, dword [r14 + 0x26]
mov r8d, r13d
call fcn.140017540
mov esi, eax
test eax, eax
jne 0x140006639
mov ecx, dword [r14 + 0x26]
mov r15d, 1
mov r9d, r15d
mov dword [rsp + 0x20], 8
mov rdx, rdi
lea r8d, [r15 + 1]
call fcn.140022328
mov r8d, dword [r14 + 0xf6]
lea rbx, [r14 + 0xea]
mov ecx, dword [r14 + 0x26]
lea edx, [r15 + 0x64]
mov r9, rbx
call fcn.140045710
mov esi, eax
test eax, eax
jne 0x140006639
mov r8, qword [rbx]
mov r9d, r15d
mov edx, dword [r14 + 0x26]
mov rcx, r12
mov dword [rsp + 0x20], r15d
call fcn.140026f40
mov r9, qword [rbx]
mov rcx, r12
mov r8d, dword [r14 + 0x1f6]
mov edi, eax
mov edx, dword [r14 + 0x26]
mov dword [rsp + 0x28], r15d
and dword [rsp + 0x20], esi
call fcn.1400218fc
test edi, edi
je 0x1400065f1
mov esi, edi
jmp 0x1400065f7
test eax, eax
je 0x1400065ff
mov esi, eax
lea eax, [rsi + 1]
cmp eax, r15d
ja 0x140006639
mov r8d, 0x6c
mov dword [rsp + 0x20], r15d
mov rdx, r14
mov rcx, r12
call fcn.14003cdf0
and dword [rsp + 0x20], 0
mov r8d, 0x6e
mov rdx, r14
mov rcx, r12
call fcn.14003cdf0
xor r8d, r8d
mov rdx, r14
mov rcx, r12
call fcn.14000c56c
mov rbx, qword [rbp - 0x38]
test rbx, rbx
je 0x14000664b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rdi, qword [rbp - 0x70]
mov rax, qword [rbp - 0x68]
test rax, rax
je 0x140006661
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test rdi, rdi
je 0x14000666f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test esi, esi
je 0x14000668b
xor edx, edx
mov rcx, r12
call fcn.1400013b0
test eax, eax
je 0x140006686
or dword [r14 + 0x22], 0x40
and dword [r14 + 0x4a], 0
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, esi
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.14008a940
mov rbx, qword [rsp + 0x570]
add rsp, 0x520
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret