Function at 0x100129f0
Capabilities:
Open clipboard
Read clipboard data
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100aefe8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x100e6008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x4c], eax
xor ecx, ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], cx
mov dword [ebp - 4], ecx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10012c2c
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x10012a71
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
jne 0x10012a7c
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x10012c2c
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10012a81
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.10006df0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
xor edi, edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], edi
mov ebx, 7
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
xor esi, esi
cmp dword [ebp - 0x30], esi
jbe 0x10012b20
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
movzx ecx, word [eax + esi*2]
cmp edi, ebx
jae 0x10012b03
lea eax, [edi + 1]
cmp ebx, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov word [eax + edi*2], cx
xor ecx, ecx
mov word [eax + edi*2 + 2], cx
jmp 0x10012b14
push ecx
mov byte [ebp - 0x48], 0
push dword [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x28]
call fcn.10012e90
mov ebx, dword [ebp - 0x14]
inc esi
mov edi, dword [ebp - 0x18]
cmp esi, dword [ebp - 0x30]
jb 0x10012ad3
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 0x41], 0
mov eax, dword [eax + 4]
mov byte [ebp - 4], 2
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne al
mov byte [ebp - 0x41], al
test al, al
jne 0x10012b4a
mov byte [ebp - 4], 1
jmp 0x10012c20
cmp ebx, 8
mov dword [ebp - 0x48], 0
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
lea edi, [edi*2 + 2]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 3
push edi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x10012be7
push esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x58], esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 4
test eax, eax
jne 0x10012ba3
mov byte [ebp - 4], 2
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x48], eax
jmp 0x10012beb
push edi
push dword [ebp - 0x50]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [ebp - 4], 3
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x10012bd8
mov byte [ebp - 4], 2
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x48], eax
jmp 0x10012beb
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 2
mov bl, 1
jmp 0x10012bed
mov byte [ebp - 4], 2
xor bl, bl
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
sete byte [ebp - 0x41]
test bl, bl
je 0x10012c20
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x10012c20
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push dword [ecx + 4]
push dword [ecx + 0x20]
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10006d80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10006d80
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ab466
mov esp, ebp
pop ebp
ret 0x10