Function at 0x1400404c0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x210
mov rax, qword [0x14005b080]
xor rax, rsp
mov qword [rsp + 0x208], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140040816
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 2
mov rdx, qword [rsp + 0x220]
lea rcx, [rsp + 0xc0]
call fcn.140006460
nop
mov ecx, 2
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x140040724
mov ecx, 2
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x50], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.GDI32.dll_SelectObject]
lea r8, [rsp + 0x70]
mov edx, 0x20
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.GDI32.dll_GetObjectA]
mov eax, 0x4d42
mov word [rsp + 0x1d0], ax
mov eax, dword [rsp + 0x74]
imul eax, dword [rsp + 0x78]
shl eax, 2
cdqe
add rax, 0x36
mov dword [rsp + 0x1d2], eax
xor eax, eax
mov word [rsp + 0x1d6], ax
xor eax, eax
mov word [rsp + 0x1d8], ax
mov dword [rsp + 0x1da], 0x36
mov dword [rsp + 0x1e0], 0x28
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x1e4], eax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x1e8], eax
mov eax, 1
mov word [rsp + 0x1ec], ax
movzx eax, word [rsp + 0x82]
mov word [rsp + 0x1ee], ax
mov dword [rsp + 0x1f0], 0
mov dword [rsp + 0x1f4], 0
mov dword [rsp + 0x1f8], 0
mov dword [rsp + 0x1fc], 0
mov dword [rsp + 0x200], 0
mov dword [rsp + 0x204], 0
mov eax, dword [rsp + 0x7c]
imul eax, dword [rsp + 0x78]
cdqe
mov rcx, rax
call fcn.140011eb4
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x1e0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x78]
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.GDI32.dll_GetDIBits]
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov r8d, 0xe
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0xc0]
call fcn.140006640
mov r8d, 0x28
lea rdx, [rsp + 0x1e0]
lea rcx, [rsp + 0xc0]
call fcn.140006640
mov eax, dword [rsp + 0x7c]
imul eax, dword [rsp + 0x78]
cdqe
mov r8, rax
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0xc0]
call fcn.140006640
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x98]
call fcn.140011e70
jmp 0x1400407d6
mov ecx, 1
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x14004075d
mov ecx, 1
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0xc0]
call fcn.14000d280
jmp 0x1400407d6
mov ecx, 0xd
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x140040796
mov ecx, 0xd
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0xa8], rax
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0xc0]
call fcn.14000d280
jmp 0x1400407d6
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
call fcn.1400403d0
mov rcx, rax
call fcn.140005070
mov qword [rsp + 0xb0], rax
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0xc0]
call fcn.14000d280
lea rcx, [rsp + 0xc0]
call fcn.140006360
call qword [sym.imp.USER32.dll_CloseClipboard]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0xc0]
call fcn.140003510
nop
mov rcx, qword [rsp + 0x220]
call fcn.140006f90
mov eax, dword [rsp + 0x44]
jmp 0x140040841
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0x220]
call fcn.140006f90
mov eax, dword [rsp + 0x48]
jmp 0x140040841
mov rcx, qword [rsp + 0x208]
xor rcx, rsp
call fcn.140011e50
add rsp, 0x210
pop rdi
ret