Function at 0x14016226c
Capabilities:
Read clipboard data

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x168
lea rcx, [0x14020dd0c]
call qword [sym.imp.USER32.dll_RegisterClipboardFormatA]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x140162322
mov ecx, dword [rsp + 0x4c]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x140162322
mov ecx, dword [rsp + 0x4c]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x140162322
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov qword [rsp + 0xf0], rax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0xf8], rax
xor r9d, r9d
mov r8, qword [rsp + 0x178]
mov edx, dword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf8]
call fcn.140163174
mov byte [rsp + 0x20], al
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140162322
mov al, 1
jmp 0x1401627e2
lea rcx, [rsp + 0x90]
call fcn.1401638b0
lea rcx, [rsp + 0x90]
call fcn.140163c90
movzx eax, al
test eax, eax
jne 0x14016234a
xor al, al
jmp 0x1401627e2
lea rcx, [rsp + 0xc0]
call fcn.1400e6440
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x90]
call fcn.140163cd0
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x120]
call fcn.1401426e8
nop
movzx eax, word [rsp + 0xa8]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 8
je 0x14016252c
cmp dword [rsp + 0x30], 0x10
je 0x1401623b3
cmp dword [rsp + 0x30], 0x18
je 0x1401623b3
cmp dword [rsp + 0x30], 0x20
je 0x1401623b3
jmp 0x1401627b7
mov qword [rsp + 0x40], 0
cmp dword [rsp + 0xac], 0
je 0x1401623d0
cmp dword [rsp + 0xac], 3
jne 0x14016242f
cmp qword [rsp + 0x90], 0
je 0x1401623fa
mov rax, qword [rsp + 0x90]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x140162417
mov rax, qword [rsp + 0x98]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x98]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0xac], 3
jne 0x14016242f
mov rax, qword [rsp + 0x40]
add rax, 0xc
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140162501
movzx eax, word [rsp + 0xa8]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
mov ecx, dword [rsp + 0xc0]
imul ecx, eax
mov eax, ecx
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
and eax, 3
mov ecx, 4
sub ecx, eax
mov eax, ecx
and eax, 3
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0xc4]
dec eax
mov dword [rsp + 0x34], eax
jmp 0x1401624ad
mov eax, dword [rsp + 0x34]
dec eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x70]
mov ecx, dword [rsp + 0x50]
add ecx, eax
mov eax, ecx
cdqe
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x34], 0
jl 0x140162501
lea rcx, [rsp + 0x120]
call fcn.140020088
mov ecx, dword [rsp + 0x34]
imul ecx, dword [rsp + 0xcc]
mov ecx, ecx
add rax, rcx
mov qword [rsp + 0x100], rax
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov r8, qword [rsp + 0x100]
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call fcn.1400866dc
jmp 0x140162485
movzx eax, word [rsp + 0xa8]
cmp eax, 0x20
jne 0x140162527
cmp dword [rsp + 0xdc], 0
je 0x140162527
xor edx, edx
lea rcx, [rsp + 0x120]
call fcn.140164a00
jmp 0x1401627b7
cmp qword [rsp + 0x98], 0
jne 0x140162552
mov r8d, 0x24d
lea rdx, str.lib_clip_clip_win.cpp
lea rcx, str.bi.bi
call fcn.140192ba0
xor eax, eax
mov rax, qword [rsp + 0x98]
cmp dword [rax + 0x20], 0
jbe 0x140162571
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x58], eax
jmp 0x140162579
mov dword [rsp + 0x58], 0x100
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x48]
call fcn.14000833c
movsxd rcx, dword [rsp + 0x28]
mov r8, rax
mov rdx, rcx
lea rcx, [rsp + 0x108]
call fcn.140164664
nop
mov dword [rsp + 0x24], 0
jmp 0x1401625b8
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x24], eax
jge 0x140162657
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x98]
movzx eax, byte [rcx + rax*4 + 0x2a]
mov ecx, dword [rsp + 0xe0]
shl eax, cl
movsxd rcx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x98]
movzx ecx, byte [rdx + rcx*4 + 0x29]
mov dword [rsp + 0x74], ecx
mov edx, dword [rsp + 0xe4]
mov cl, dl
mov edx, dword [rsp + 0x74]
shl edx, cl
mov ecx, edx
or eax, ecx
movsxd rcx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x98]
movzx ecx, byte [rdx + rcx*4 + 0x28]
mov dword [rsp + 0x78], ecx
mov edx, dword [rsp + 0xe8]
mov cl, dl
mov edx, dword [rsp + 0x78]
shl edx, cl
mov ecx, edx
or eax, ecx
mov dword [rsp + 0x7c], eax
movsxd rax, dword [rsp + 0x24]
mov rdx, rax
lea rcx, [rsp + 0x108]
call fcn.140017514
mov ecx, dword [rsp + 0x7c]
mov dword [rax], ecx
jmp 0x1401625ae
mov rax, qword [rsp + 0x98]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x98]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x28]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0xc0]
and eax, 3
mov ecx, 4
sub ecx, eax
mov eax, ecx
and eax, 3
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0xc4]
dec eax
mov dword [rsp + 0x38], eax
jmp 0x1401626cb
mov eax, dword [rsp + 0x38]
dec eax
mov dword [rsp + 0x38], eax
movsxd rax, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
cmp dword [rsp + 0x38], 0
jl 0x14016279a
lea rcx, [rsp + 0x120]
call fcn.140020088
mov ecx, dword [rsp + 0x38]
imul ecx, dword [rsp + 0xcc]
mov ecx, ecx
add rax, rcx
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x54], 0
jmp 0x140162731
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x60]
inc rax
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x88]
add rax, 3
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0xc0]
cmp dword [rsp + 0x54], eax
jae 0x140162795
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jge 0x14016275b
mov dword [rsp + 0x2c], 0
jmp 0x14016276f
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x2c], eax
jl 0x14016276f
mov eax, dword [rsp + 0x28]
dec eax
mov dword [rsp + 0x2c], eax
movsxd rax, dword [rsp + 0x2c]
mov rdx, rax
lea rcx, [rsp + 0x108]
call fcn.140017514
mov rcx, qword [rsp + 0x88]
mov eax, dword [rax]
mov dword [rcx], eax
jmp 0x140162706
jmp 0x1401626a9
lea rcx, [rsp + 0x108]
call fcn.1400162f8
jmp 0x1401627b7
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0x178]
call fcn.140164600
mov byte [rsp + 0x21], 1
lea rcx, [rsp + 0x120]
call fcn.140142858
mov al, byte [rsp + 0x21]
add rsp, 0x168
ret