Function at 0x1ffba950
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
sub esp, 8
mov dword [esp + 4], 0
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
push ebp
test esi, esi
je 0x1ffba989
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
cmp eax, 0x8000
je 0x1ffba989
push esi
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalLock]
call ebp
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x1ffba991
xor edi, edi
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalLock]
test edi, edi
jne 0x1ffba9a4
mov eax, 0xfffffff3
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0x18
mov eax, dword [edi + 0x14]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1ffba9be
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0x18
cmp dword [esp + 0x28], 0
je 0x1ffba9cb
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x1ffba9e7
cmp ecx, 1
je 0x1ffbaa28
cmp ecx, 4
je 0x1ffba9e7
mov esi, 0xfffffff0
jmp 0x1ffbab69
mov eax, dword [esp + 0x30]
push 0
mov edx, dword [esp + 0x30]
push eax
lea ebx, [esp + 0x1c]
push edx
mov eax, dword [esp + 0x30]
push 0
push ebx
push eax
push ecx
push esi
call fcn.1ffaeb60
cmp eax, 1
mov esi, eax
jne 0x1ffbab69
mov eax, dword [esp + 0x14]
mov ecx, dword [0x1ffe7e34]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x1ffbab69
mov ebx, edi
test edi, edi
je 0x1ffbaa3e
cmp dword [edi + 4], 0
je 0x1ffbaa3e
xor eax, eax
mov ebx, dword [ebx + 4]
cmp dword [ebx + 4], eax
jne 0x1ffbaa36
push 0x10
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1ffbaa5a
mov esi, 0xffffffff
jmp 0x1ffbab69
mov eax, dword [esp + 0x10]
push eax
call ebp
mov dword [eax], 1
mov esi, eax
mov eax, dword [ebx + 0x118]
push 0
sub eax, dword [ebx + 0x110]
mov dword [esi + 4], eax
mov eax, dword [ebx + 0x11c]
sub eax, dword [ebx + 0x114]
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_CreateMetaFileA]
mov ebx, eax
test ebx, ebx
jne 0x1ffbaaa3
lea edi, [esi + 0xc]
mov dword [edi], 0
jmp 0x1ffbab26
mov ebp, edi
test edi, edi
je 0x1ffbaab9
cmp dword [edi + 4], 0
je 0x1ffbaab9
xor eax, eax
mov ebp, dword [ebp + 4]
cmp dword [ebp + 4], eax
jne 0x1ffbaab1
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetMapMode]
push 0
mov eax, dword [ebp + 0x114]
push eax
mov ecx, dword [ebp + 0x110]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
push 0
mov eax, dword [ebp + 0x11c]
sub eax, dword [ebp + 0x114]
push eax
mov eax, dword [ebp + 0x118]
sub eax, dword [ebp + 0x110]
mov ebp, dword [sym.imp.GDI32.dll_SetWindowExtEx]
push eax
push ebx
call ebp
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
push ecx
push eax
push edx
push 0
push 0
push edi
push 0
push ebx
lea edi, [esi + 0xc]
call fcn.1ffad950
push ebx
call dword [sym.imp.GDI32.dll_CloseMetaFile]
mov dword [edi], eax
cmp dword [edi], 0
jne 0x1ffbab4c
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
push eax
mov esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1ffbab69
mov eax, dword [esp + 0x10]
mov esi, 1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
push eax
push 3
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0x18