Function at 0x1004aad0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c08b9
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x1023c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
cmp eax, sym.HncOfficeFramework.dll_protected_virtual:_unsigned_long_int___thiscall_CHDCEditBase::vGetStyle_void_const
jne 0x1004aca9
mov eax, dword [ecx - 0x50]
mov eax, dword [eax + 4]
test eax, eax
je 0x1004ab1a
mov eax, dword [eax + 8]
test al, 0x20
jne 0x1004ac97
lea ecx, [ebp - 0x10]
call dword [sym.imp.HncFoundation.dll_public:_void___thiscall_CHncStringW::constructor_void_]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.1004b5b0
test eax, eax
je 0x1004ac8e
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
cmp eax, 0x100468a0
jne 0x1004acb0
call dword [sym.imp.HncIMM.dll__HncImeGetWindowHandle_0]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1004ac8e
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x1004ac88
mov eax, dword [ebp - 0x10]
mov edi, dword [eax - 8]
inc edi
lea eax, [edi + edi]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x1004abb3
push esi
call ebx
test eax, eax
je 0x1004abb3
push dword [ebp - 0x10]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
push 0xd
call esi
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 8]
lea eax, [eax*4 + 4]
push eax
push 0x42
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x1004ac83
push edi
call ebx
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1004ac83
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], eax
xorps xmm0, xmm0
mov eax, dword [ebp - 0x10]
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1004ac74
cmp word [eax], 0
jne 0x1004ac1b
mov ebx, 0x101d3481
jmp 0x1004ac64
mov esi, eax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1004ac20
sub esi, ecx
sar esi, 1
lea esi, [esi*4 + 4]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
lea ecx, [ebp - 0x2c]
mov ebx, eax
push ebx
call fcn.10002250
push 0
push esi
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x14]
push 0
push 0
call dword [sym.imp.HncFoundation.dll_HncUnicodeToAnsi]
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [ebp - 0x2c]
call fcn.10002630
push edi
push 1
call esi
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [ebp - 0x10]
call dword [sym.imp.HncFoundation.dll_public:_void___thiscall_CHncStringW::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call eax
jmp 0x1004ab1a
mov ecx, esi
call eax
jmp 0x1004ab5b