Function at 0x140154100
Capabilities:
Read clipboard data

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x168
lea rcx, [0x1401e19bc]
call qword [sym.imp.USER32.dll_RegisterClipboardFormatA]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x1401541b6
mov ecx, dword [rsp + 0x4c]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x1401541b6
mov ecx, dword [rsp + 0x4c]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x1401541b6
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.140155008
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 0x1401541b6
mov al, 1
jmp 0x140154676
lea rcx, [rsp + 0x90]
call fcn.140155704
lea rcx, [rsp + 0x90]
call fcn.140155adc
movzx eax, al
test eax, eax
jne 0x1401541de
xor al, al
jmp 0x140154676
lea rcx, [rsp + 0xc0]
call fcn.1401347fc
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x90]
call fcn.140155b1c
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x120]
call fcn.140134424
nop
movzx eax, word [rsp + 0xa8]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 8
je 0x1401543c0
cmp dword [rsp + 0x30], 0x10
je 0x140154247
cmp dword [rsp + 0x30], 0x18
je 0x140154247
cmp dword [rsp + 0x30], 0x20
je 0x140154247
jmp 0x14015464b
mov qword [rsp + 0x40], 0
cmp dword [rsp + 0xac], 0
je 0x140154264
cmp dword [rsp + 0xac], 3
jne 0x1401542c3
cmp qword [rsp + 0x90], 0
je 0x14015428e
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 0x1401542ab
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 0x1401542c3
mov rax, qword [rsp + 0x40]
add rax, 0xc
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140154395
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 0x140154341
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 0x140154395
lea rcx, [rsp + 0x120]
call fcn.14001d748
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.140081f04
jmp 0x140154319
movzx eax, word [rsp + 0xa8]
cmp eax, 0x20
jne 0x1401543bb
cmp dword [rsp + 0xdc], 0
je 0x1401543bb
xor edx, edx
lea rcx, [rsp + 0x120]
call fcn.1401567ac
jmp 0x14015464b
cmp qword [rsp + 0x98], 0
jne 0x1401543e6
mov r8d, 0x242
lea rdx, str.lib_clip_clip_win.cpp
lea rcx, str.bi.bi
call fcn.140183df0
xor eax, eax
mov rax, qword [rsp + 0x98]
cmp dword [rax + 0x20], 0
jbe 0x140154405
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x58], eax
jmp 0x14015440d
mov dword [rsp + 0x58], pe_nt_image_headers64
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x48]
call fcn.140006408
movsxd rcx, dword [rsp + 0x28]
mov r8, rax
mov rdx, rcx
lea rcx, [rsp + 0x108]
call fcn.1401564a4
nop
mov dword [rsp + 0x24], 0
jmp 0x14015444c
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x24], eax
jge 0x1401544eb
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.140015154
mov ecx, dword [rsp + 0x7c]
mov dword [rax], ecx
jmp 0x140154442
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 0x14015455f
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 0x14015462e
lea rcx, [rsp + 0x120]
call fcn.14001d748
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 0x1401545c5
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 0x140154629
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jge 0x1401545ef
mov dword [rsp + 0x2c], 0
jmp 0x140154603
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x2c], eax
jl 0x140154603
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.140015154
mov rcx, qword [rsp + 0x88]
mov eax, dword [rax]
mov dword [rcx], eax
jmp 0x14015459a
jmp 0x14015453d
lea rcx, [rsp + 0x108]
call fcn.140013f40
jmp 0x14015464b
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0x178]
call fcn.140156440
mov byte [rsp + 0x21], 1
lea rcx, [rsp + 0x120]
call fcn.140134598
mov al, byte [rsp + 0x21]
add rsp, 0x168
ret