Function at 0x1004ad90
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c08e9
mov eax, dword fs:[0]
push eax
sub esp, 0x14
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 edi, ecx
mov ecx, dword [edi + 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 0x1004afb9
mov eax, dword [ecx - 0x50]
mov eax, dword [eax + 4]
test eax, eax
je 0x1004adda
mov eax, dword [eax + 8]
test eax, 0x800
jne 0x1004afa7
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
cmp eax, 0x100468a0
jne 0x1004afc0
call dword [sym.imp.HncIMM.dll__HncImeGetWindowHandle_0]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1004afa7
lea ecx, [ebp - 0x10]
call dword [sym.imp.HncFoundation.dll_public:_void___thiscall_CHncStringW::constructor_void_]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call dword [sym.imp.HncFoundation.dll_public:_int___thiscall_CHncStringW::Empty_void_]
push 0xd
mov esi, 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ecx, eax
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
cmove esi, eax
test esi, esi
je 0x1004ae60
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor ecx, ecx
mov dword [ebp - 0x18], eax
test eax, eax
cmove esi, ecx
mov ecx, dword [ebp - 0x1c]
mov eax, dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x14], 0
test esi, esi
je 0x1004ae86
push ecx
call eax
mov ecx, eax
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x14], ecx
cmove esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GlobalLock]
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
je 0x1004aea6
push dword [ebp - 0x18]
call eax
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
jne 0x1004aeea
cmp dword [ebp - 0x14], eax
je 0x1004aea6
push dword [ebp - 0x1c]
call ebx
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x1004af31
mov eax, dword [sym.imp.KERNEL32.dll_GlobalSize]
push esi
call eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1004af31
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x1004af1e
call dword [sym.imp.USER32.dll_CloseClipboard]
push dword [ebp - 0x14]
call ebx
jmp 0x1004af9e
push dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov eax, dword [sym.imp.KERNEL32.dll_GlobalSize]
push ebx
call eax
shr eax, 1
push eax
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
add esp, 0xc
push dword [ebp - 0x1c]
call esi
call dword [sym.imp.USER32.dll_CloseClipboard]
push ebx
call esi
push dword [ebp - 0x20]
jmp 0x1004af65
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x1004af39
push esi
call ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x1004af9e
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
shr eax, 1
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
push esi
call ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
push dword [ebp - 0x14]
call ebx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
call dword [sym.imp.HncFoundation.dll_public:_int___thiscall_CHncStringW::Assign_unsigned_short_int_const__]
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
je 0x1004af9e
test byte [edi + 0x1c], 1
je 0x1004af94
push 0
push 0x1c0800
push 0x1408
push 0
call dword [sym.imp.HncIMM.dll_HimControl]
mov eax, dword [ebp - 0x10]
push 1
push eax
mov ecx, edi
call fcn.10049e70
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 0x1004adda
mov ecx, edi
call eax
jmp 0x1004adfb