Function at 0x1401590dc
Capabilities:
Read clipboard data

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x168
lea rcx, [0x14020276c]
call qword [sym.imp.USER32.dll_RegisterClipboardFormatA]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x140159192
mov ecx, dword [rsp + 0x4c]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x140159192
mov ecx, dword [rsp + 0x4c]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x140159192
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.140159fe4
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 0x140159192
mov al, 1
jmp 0x140159652
lea rcx, [rsp + 0x90]
call fcn.14015a720
lea rcx, [rsp + 0x90]
call fcn.14015ab00
movzx eax, al
test eax, eax
jne 0x1401591ba
xor al, al
jmp 0x140159652
lea rcx, [rsp + 0xc0]
call fcn.1400e65b8
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x90]
call fcn.14015ab40
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x120]
call fcn.140139380
nop
movzx eax, word [rsp + 0xa8]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 8
je 0x14015939c
cmp dword [rsp + 0x30], 0x10
je 0x140159223
cmp dword [rsp + 0x30], 0x18
je 0x140159223
cmp dword [rsp + 0x30], 0x20
je 0x140159223
jmp 0x140159627
mov qword [rsp + 0x40], 0
cmp dword [rsp + 0xac], 0
je 0x140159240
cmp dword [rsp + 0xac], 3
jne 0x14015929f
cmp qword [rsp + 0x90], 0
je 0x14015926a
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 0x140159287
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 0x14015929f
mov rax, qword [rsp + 0x40]
add rax, 0xc
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140159371
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 0x14015931d
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 0x140159371
lea rcx, [rsp + 0x120]
call fcn.14001ff98
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.140086984
jmp 0x1401592f5
movzx eax, word [rsp + 0xa8]
cmp eax, 0x20
jne 0x140159397
cmp dword [rsp + 0xdc], 0
je 0x140159397
xor edx, edx
lea rcx, [rsp + 0x120]
call fcn.14015b870
jmp 0x140159627
cmp qword [rsp + 0x98], 0
jne 0x1401593c2
mov r8d, 0x24d
lea rdx, str.lib_clip_clip_win.cpp
lea rcx, str.bi.bi
call fcn.140189910
xor eax, eax
mov rax, qword [rsp + 0x98]
cmp dword [rax + 0x20], 0
jbe 0x1401593e1
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x58], eax
jmp 0x1401593e9
mov dword [rsp + 0x58], pe_nt_image_headers64
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x48]
call fcn.14000824c
movsxd rcx, dword [rsp + 0x28]
mov r8, rax
mov rdx, rcx
lea rcx, [rsp + 0x108]
call fcn.14015b4d4
nop
mov dword [rsp + 0x24], 0
jmp 0x140159428
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x24], eax
jge 0x1401594c7
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.140017424
mov ecx, dword [rsp + 0x7c]
mov dword [rax], ecx
jmp 0x14015941e
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 0x14015953b
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 0x14015960a
lea rcx, [rsp + 0x120]
call fcn.14001ff98
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 0x1401595a1
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 0x140159605
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jge 0x1401595cb
mov dword [rsp + 0x2c], 0
jmp 0x1401595df
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x2c], eax
jl 0x1401595df
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.140017424
mov rcx, qword [rsp + 0x88]
mov eax, dword [rax]
mov dword [rcx], eax
jmp 0x140159576
jmp 0x140159519
lea rcx, [rsp + 0x108]
call fcn.140016208
jmp 0x140159627
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0x178]
call fcn.14015b470
mov byte [rsp + 0x21], 1
lea rcx, [rsp + 0x120]
call fcn.1401394f0
mov al, byte [rsp + 0x21]
add rsp, 0x168
ret