Function at 0x14003e094
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x130
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x140139980]
xor rax, rsp
mov qword [rbp], rax
xor r12d, r12d
mov qword [rsp + 0x70], rdx
movsxd rdi, r8d
mov rbx, r9
lea rsi, [0x140000000]
mov r13, rdx
test r8d, r8d
je 0x14003e724
cmp byte [rdi + rsi + 0x142e70], r12b
je 0x14003e109
mov rdx, qword [str.text_plain]
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x14003e724
xor ecx, ecx
call qword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x14003e7a4
mov rdx, qword [str.text_plain]
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14003e1f9
lea ecx, [rax + 0xd]
call qword [sym.imp.user32.dll_GetClipboardData]
mov r14, rax
test rax, rax
je 0x14003e719
mov rcx, rax
call qword [sym.imp.kernel32.dll_GlobalLock]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov rbx, rax
lea rcx, [rax*4 + 1]
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
lea edx, [rbx*4]
mov r9d, ebx
mov r8, rdi
mov rcx, rax
mov rsi, rax
call fcn.140061994
mov ecx, eax
mov byte [rcx + rsi], r12b
mov rcx, r14
call qword [sym.imp.kernel32.dll_GlobalUnlock]
mov al, byte [rsi]
mov rcx, rsi
mov rdx, rsi
jmp 0x14003e1b2
inc rdx
cmp al, 0xd
jne 0x14003e1ab
cmp byte [rdx], 0xa
jne 0x14003e1ab
mov al, 0xa
jmp 0x14003e19b
mov byte [rcx], al
inc rcx
mov al, byte [rdx]
test al, al
jne 0x14003e19b
mov byte [rcx], r12b
mov edx, 0x11
mov rax, qword [str.text_plain]
sub ecx, esi
mov dword [0x140142b9c], ecx
mov rcx, r13
mov qword [0x1401362f8], rax
mov qword [0x1401362f0], rsi
mov rax, qword [r13]
call qword [rax + 0x10]
mov rcx, rsi
call fcn.140031d40
mov qword [0x1401362f0], r12
jmp 0x14003e719
mov rdx, qword [str.image]
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14003e719
lea ebx, [rax + 8]
mov ecx, ebx
call qword [sym.imp.user32.dll_GetClipboardData]
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14003e4ec
mov rcx, rax
call qword [sym.imp.kernel32.dll_GlobalLock]
mov rsi, rax
movzx ecx, word [rax + 0xe]
mov r14d, dword [rax + 4]
sub cx, 0x18
mov r15d, dword [rax + 8]
mov eax, 0xfff7
test ax, cx
jne 0x14003e37c
cmp dword [rsi + 0x10], r12d
jne 0x14003e37c
cmp dword [rsi + 0x20], r12d
jne 0x14003e37c
movzx edi, word [rsi + 0xe]
shr edi, 3
cmp edi, 3
jne 0x14003e285
lea eax, [r14 + 1]
lea eax, [rax + rax*2]
cdq
and edx, edi
lea ebx, [rdx + rax]
sar ebx, 2
jmp 0x14003e288
mov ebx, r14d
mov ecx, r15d
call sub.api_ms_win_crt_utility_l1_1_0.dll_abs
imul eax, edi
imul eax, r14d
movsxd rcx, eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsp + 0x68], rax
mov r9, rax
or eax, 0xffffffff
mov edx, 1
test r15d, r15d
mov r12d, r15d
not r12d
cmovg edx, eax
xor r8d, r8d
test r15d, r15d
mov dword [rsp + 0x60], edx
lea eax, [r15 - 1]
mov ecx, r8d
cmovg r12d, r8d
mov r11d, r8d
cmovg r11d, eax
mov eax, r8d
cmp r11d, r12d
setge cl
setle al
test r15d, r15d
cmovg eax, ecx
test eax, eax
je 0x14003e487
mov r10d, ebx
imul ebx, edx
imul r10d, r11d
shl r10d, 2
shl ebx, 2
movsxd r8, r10d
add r8, 0x28
add r8, rsi
test r14d, r14d
jle 0x14003e34d
mov r13, r14
mov al, byte [r8 + 2]
mov dl, byte [r8]
mov cl, byte [r8 + 1]
add r8, 3
mov byte [r9], al
mov byte [r9 + 1], cl
mov byte [r9 + 2], dl
add r9, 3
cmp edi, 4
jne 0x14003e343
mov al, byte [r8]
mov byte [r9], al
inc r9
inc r8
sub r13, 1
jne 0x14003e314
mov edx, dword [rsp + 0x60]
xor ecx, ecx
add r11d, edx
add r10d, ebx
cmp r11d, r12d
setge cl
xor eax, eax
cmp r11d, r12d
setle al
test r15d, r15d
cmovg eax, ecx
test eax, eax
jne 0x14003e302
mov r13, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
jmp 0x14003e48a
cmp dword [rsi + 0x10], 3
lea rbx, [rsi + 0x428]
mov qword [rsp + 0x60], rbx
jne 0x14003e399
lea rbx, [rsi + 0x34]
mov qword [rsp + 0x60], rbx
jmp 0x14003e3af
cmp dword [rsi + 0x20], r12d
jbe 0x14003e3af
mov eax, dword [rsi + 0x20]
add rax, 0xa
lea rax, [rsi + rax*4]
mov qword [rsp + 0x60], rax
mov ecx, 0x20
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rbx, rax
test rax, rax
je 0x14003e3e2
mov ecx, r15d
call sub.api_ms_win_crt_utility_l1_1_0.dll_abs
mov r8d, eax
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov edx, r14d
mov rcx, rbx
call fcn.14006266c
mov r12, rax
mov rcx, r12
call fcn.140061394
mov ecx, r15d
call sub.api_ms_win_crt_utility_l1_1_0.dll_abs
mov ecx, r15d
mov ebx, eax
call sub.api_ms_win_crt_utility_l1_1_0.dll_abs
mov rcx, qword [0x140142e28]
mov edi, eax
mov rdx, qword [rcx]
call qword [rdx + 0x2e0]
and dword [rsp + 0x58], 0
mov r9d, r14d
mov qword [rsp + 0x50], rsi
mov rcx, rax
mov rax, qword [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor edx, edx
mov dword [rsp + 0x40], ebx
xor ebx, ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edi
call qword [sym.imp.gdi32.dll_SetDIBitsToDevice]
mov ecx, r15d
call sub.api_ms_win_crt_utility_l1_1_0.dll_abs
mov r9d, r14d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov dword [rsp + 0x20], eax
xor edx, edx
xor ecx, ecx
call fcn.140062b78
mov rsi, rax
lea edi, [rbx + 3]
call fcn.14006135c
test r12, r12
je 0x14003e48a
mov rax, qword [r12]
lea edx, [rbx + 1]
mov rcx, r12
call qword [rax + 0x18]
jmp 0x14003e48a
mov rsi, r9
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.kernel32.dll_GlobalUnlock]
xor r12d, r12d
mov ebx, r12d
test rsi, rsi
je 0x14003e6c4
lea ecx, [r12 + 0x58]
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rbx, rax
test rax, rax
je 0x14003e4dd
mov ecx, r15d
call sub.api_ms_win_crt_utility_l1_1_0.dll_abs
mov r9d, eax
mov dword [rsp + 0x28], r12d
mov r8d, r14d
mov dword [rsp + 0x20], edi
mov rdx, rsi
mov rcx, rbx
call fcn.140047384
mov rbx, rax
jmp 0x14003e4e0
mov rbx, r12
mov dword [rbx + 0x38], 1
jmp 0x14003e6c9
mov ecx, 0xe
call qword [sym.imp.user32.dll_GetClipboardData]
mov r14, rax
test rax, rax
je 0x14003e719
lea r8, [rbp - 0x70]
mov edx, 0x6c
mov rcx, rax
call qword [sym.imp.gdi32.dll_GetEnhMetaFileHeader]
mov r15d, dword [rbp - 0x50]
xor ecx, ecx
mov r12d, dword [rbp - 0x4c]
sub r15d, dword [rbp - 0x58]
sub r12d, dword [rbp - 0x54]
inc r15d
inc r12d
call qword [sym.imp.user32.dll_GetDC]
mov rcx, rax
mov edx, 4
mov rsi, rax
call qword [sym.imp.gdi32.dll_GetDeviceCaps]
mov edx, ebx
mov rcx, rsi
movd xmm7, eax
call qword [sym.imp.gdi32.dll_GetDeviceCaps]
mov rdx, rsi
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.user32.dll_ReleaseDC]
cvtdq2ps xmm7, xmm7
movd xmm0, ebx
mulss xmm7, dword [0x14011c9d4]
cvtdq2ps xmm0, xmm0
divss xmm7, xmm0
call fcn.140033458
mov rcx, r13
mov rbx, rax
mov rdi, qword [rax]
call fcn.140035b98
mov rcx, qword [rax + 0xd0]
call fcn.14005fcf8
mov edx, eax
mov rcx, rbx
call qword [rdi + 0x10]
movaps xmm6, xmm0
call fcn.140035578
test rax, rax
jne 0x14003e5be
call fcn.140038274
movaps xmm1, xmm6
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0xa8]
movd xmm1, r12d
movaps xmm2, xmm6
mulss xmm2, xmm7
xor r12d, r12d
mov qword [rsp + 0x78], r12
movd xmm0, r15d
cvtdq2ps xmm0, xmm0
lea ecx, [r12 + 0x20]
cvtdq2ps xmm1, xmm1
divss xmm0, xmm2
divss xmm1, xmm2
cvttss2si ebx, xmm0
cvttss2si esi, xmm1
mov dword [rbp - 0x80], ebx
mov dword [rbp - 0x7c], esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test rax, rax
je 0x14003e61e
lea r9d, [r12 + 1]
mov qword [rsp + 0x20], r12
mov r8d, esi
mov edx, ebx
mov rcx, rax
call fcn.14006266c
mov rdi, rax
jmp 0x14003e621
mov rdi, r12
mov rcx, rdi
call fcn.140061394
mov rcx, qword [0x140142e28]
mov edx, 0xff
mov rax, qword [rcx]
call qword [rax + 0x260]
mov rcx, qword [0x140142e28]
mov r9d, ebx
xor r8d, r8d
mov dword [rsp + 0x20], esi
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0xd0]
movd xmm0, dword [rbp - 0x80]
movd xmm1, dword [rbp - 0x7c]
mov rcx, qword [0x140142e28]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
mulss xmm0, xmm6
mulss xmm1, xmm6
cvttss2si eax, xmm0
mov dword [rbp - 0x80], eax
cvttss2si eax, xmm1
mov dword [rbp - 0x7c], eax
mov rax, qword [rcx]
call qword [rax + 0x2e0]
lea r8, [rsp + 0x78]
mov rdx, r14
mov rcx, rax
call qword [sym.imp.gdi32.dll_PlayEnhMetaFile]
mov rcx, rdi
call fcn.140062a28
mov rbx, rax
call fcn.14006135c
test rdi, rdi
je 0x14003e6c4
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax + 0x18]
test rbx, rbx
je 0x14003e719
mov rax, qword [str.image]
mov edx, 0x11
mov qword [0x1401362f8], rax
mov rcx, r13
mov qword [0x140142ba0], rbx
mov rax, qword [r13]
call qword [rax + 0x10]
lea rcx, [0x14011a8e4]
mov qword [0x1401362f8], rcx
test eax, eax
jne 0x14003e719
mov qword [0x140142ba0], r12
test rbx, rbx
je 0x14003e719
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax + 0x18]
call qword [sym.imp.user32.dll_CloseClipboard]
jmp 0x14003e7a4
mov rbx, qword [rsi + rdi*8 + 0x142e50]
test rbx, rbx
je 0x14003e79d
mov eax, dword [rsi + rdi*4 + 0x142e60]
inc eax
movsxd rcx, eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rdi, rax
mov rcx, rax
jmp 0x14003e760
inc rbx
cmp dl, 0xd
jne 0x14003e75b
cmp byte [rbx], 0xa
jne 0x14003e75b
mov dl, 0xa
jmp 0x14003e74a
mov byte [rcx], dl
inc rcx
mov dl, byte [rbx]
test dl, dl
jne 0x14003e74a
mov byte [rcx], r12b
mov edx, 0x11
mov rax, qword [str.text_plain]
sub ecx, edi
mov dword [0x140142b9c], ecx
mov rcx, r13
mov qword [0x1401362f8], rax
mov qword [0x1401362f0], rdi
mov rax, qword [r13]
call qword [rax + 0x10]
mov rcx, rdi
call fcn.140031d40
mov qword [0x1401362f0], r12
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400a6970
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret