Function at 0x18008364c
Capabilities:
Read clipboard data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x180122658]
xor rax, rsp
mov qword [rbp - 0x10], rax
and qword [rbp - 0x48], 0
lea rax, [rbp - 0x28]
and qword [rbp - 0x30], 0
lea r8, [rbp - 0x38]
and qword [rbp - 0x38], 0
mov r13, rdx
movzx edx, word [0x180123348]
xor r9d, r9d
and qword [rbp - 0x28], 0
mov rdi, rcx
and qword [rbp - 0x40], 0
mov esi, 1
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov qword [rbp - 0x50], rcx
call fcn.18008318c
mov r14, qword [rbp - 0x28]
mov ebx, eax
test eax, eax
jne 0x1800838ca
mov rcx, qword [rbp - 0x38]
lea rdx, [rbp - 0x20]
call fcn.18009e7f0
mov ebx, eax
test eax, eax
jne 0x1800838ca
movzx ecx, word [0x1801232e4]
xor edi, edi
cmp dword [r13], esi
setne dil
call qword [sym.imp.USER32.dll_GetClipboardData]
mov r15, rax
test rax, rax
jne 0x180083710
mov ebx, 0x800401d3
mov esi, edi
jmp 0x1800838c6
lea rcx, [rbp - 0x20]
call sym.ole32.dll_CoIsOle1Class
test eax, eax
jne 0x1800837d9
lea r8, [rbp - 0x40]
xor edx, edx
mov rcx, r15
call qword [sym.imp.api_ms_win_core_com_l2_1_1.dll_CreateILockBytesOnHGlobal]
mov ebx, eax
mov esi, edi
test eax, eax
jne 0x1800838c6
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.api_ms_win_core_com_l2_1_1.dll_StgIsStorageILockBytes]
mov rcx, qword [rbp - 0x40]
mov ebx, eax
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [case.0x1800248fe.0]
and qword [rbp - 0x40], 0
test ebx, ebx
jne 0x1800837d9
mov edx, 0x2002
mov rcx, r15
call fcn.18001d0bc
mov qword [rbp - 0x30], rax
test rax, rax
jne 0x180083782
mov ebx, 0x8007000e
jmp 0x1800838c6
mov rcx, qword [rbp - 0x30]
lea r8, [rbp - 0x40]
mov edx, edi
call qword [sym.imp.api_ms_win_core_com_l2_1_1.dll_CreateILockBytesOnHGlobal]
mov ebx, eax
test eax, eax
jne 0x1800838c6
mov rcx, qword [rbp - 0x40]
lea rax, [rbp - 0x48]
and qword [rbp - 0x30], 0
lea r8d, [rbx + 0x12]
mov qword [rsp + 0x28], rax
xor r9d, r9d
and dword [rsp + 0x20], ebx
xor edx, edx
call qword [sym.imp.api_ms_win_core_com_l2_1_1.dll_StgOpenStorageOnILockBytes]
mov ebx, eax
test eax, eax
js 0x1800838c6
mov rcx, qword [rbp - 0x48]
call fcn.1800a13e8
jmp 0x18008385e
lea r9, [rbp - 0x40]
mov edx, edi
lea r8, [rbp - 0x48]
call fcn.18009fe94
mov ebx, eax
mov esi, edi
test eax, eax
jne 0x1800838c6
mov rcx, qword [rbp - 0x48]
lea rdx, [rbp - 0x20]
mov rax, qword [rcx]
mov rax, qword [rax + 0x78]
call qword [case.0x1800248fe.0]
mov ebx, eax
test eax, eax
jne 0x1800838c6
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov r8, qword [rbp - 0x38]
mov edx, eax
mov rcx, qword [rbp - 0x48]
call sym.ole32.dll_WriteFmtUserTypeStg
mov ebx, eax
test eax, eax
jne 0x1800838c6
mov rcx, qword [rbp - 0x48]
mov rdx, r15
call fcn.18009fa64
mov ebx, eax
test eax, eax
jne 0x1800838c6
test r14, r14
je 0x18008385e
cmp byte [r14], al
je 0x18008385e
mov rcx, qword [rbp - 0x48]
mov rdx, r14
call fcn.18009f9dc
mov rcx, qword [rbp - 0x48]
xor edx, edx
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1800248fe.0]
mov ebx, eax
mov esi, edi
test eax, eax
jne 0x1800838c6
cmp dword [r13], 8
lea rdx, [r13 + 8]
jne 0x180083898
mov r8, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x48]
mov rdi, r8
mov qword [r8 + 0x20], rcx
mov qword [rdx], rcx
jmp 0x1800838ca
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.api_ms_win_core_com_l2_1_1.dll_GetHGlobalFromILockBytes]
mov r8, qword [rbp - 0x50]
mov ebx, eax
mov rax, qword [r13 + 8]
mov rcx, qword [rbp - 0x48]
mov qword [r8 + 0x18], rax
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1800248fe.0]
and qword [rbp - 0x48], 0
mov rdi, qword [rbp - 0x50]
cmp qword [rbp - 0x38], 0
je 0x1800838db
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
test r14, r14
je 0x1800838e9
mov rcx, r14
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
test ebx, ebx
je 0x180083908
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x180083908
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1800248fe.0]
and qword [rdi + 0x20], 0
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x180083934
test ebx, ebx
jns 0x180083927
test esi, esi
jne 0x180083927
lea rdx, [rbp - 0x30]
call qword [sym.imp.api_ms_win_core_com_l2_1_1.dll_GetHGlobalFromILockBytes]
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1800248fe.0]
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x180083946
mov rcx, rax
call qword [sym.imp.KERNELBASE.dll_GlobalFree]
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180023ec0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret