Function at 0x100794e0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x10116d78
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x101e6198]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101e6198]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x6c]
mov esi, ecx
cmp byte [esi + 0xff], 0
je 0x10079901
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x10079901
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10079901
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
mov dword [esp + 0x38], ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10079560
sub eax, edx
sar eax, 1
mov edi, eax
xor eax, eax
mov dword [esp + 0x34], edi
test edi, edi
jle 0x100795a8
jmp 0x10079580
movzx ecx, word [ebp + eax*2]
mov edx, 0xff01
cmp cx, dx
jb 0x100795a3
mov edx, 0xffe3
cmp cx, dx
ja 0x100795a3
mov ecx, 0x2a
mov word [ebp + eax*2], cx
inc eax
cmp eax, edi
jl 0x10079580
mov edx, dword [esi + 0xe0]
shr edx, 4
mov eax, ebp
test dl, 1
lea edx, [eax + 2]
je 0x100795e0
jmp 0x100795c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100795c0
mov ebx, dword [esi + 0x58]
sub eax, edx
sar eax, 1
mov dword [esp + 0x2c], eax
jmp 0x10079642
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100795e0
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0x1000
sub eax, edx
push 0x101e9670
sar eax, 1
push eax
movzx eax, word [esi + 0x36]
push ebp
push 0
push eax
call edi
cmp dword [esi + 0x5c], 8
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x58]
jb 0x10079620
mov ecx, dword [esi + 0x48]
jmp 0x10079623
lea ecx, [esi + 0x48]
push 0
push 0
push 0x1000
push 0x101e9670
push eax
push ecx
movzx ecx, word [esi + 0x36]
push 0
push ecx
call edi
mov edi, dword [esp + 0x34]
mov ebx, eax
cmp byte [esi + 0xfc], 0
je 0x10079889
mov eax, dword [esi + 0xf4]
mov ecx, dword [esi + 0xf8]
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x1007966d
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
jg 0x10079671
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x14]
mov edi, 0
mov edx, edi
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], edi
mov word [esp + 0x40], dx
mov dword [esp + 0x64], edi
lea ecx, [esp + 0x3c]
jne 0x100796a5
push 0xffffffffffffffff
push eax
call fcn.1001af10
jmp 0x100796ac
push edi
push eax
call fcn.100765f0
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x40]
cmp edx, 8
jb 0x100796fd
mov ebp, eax
mov dword [esp + 0x20], ebp
cmp eax, edi
je 0x100796e6
mov ecx, eax
cmp edx, 8
jae 0x100796ce
lea ecx, [esp + 0x40]
cmp ecx, ebp
ja 0x100796e6
cmp edx, 8
jae 0x100796db
lea eax, [esp + 0x40]
mov edx, dword [esp + 0x50]
lea eax, [eax + edx*2]
cmp ebp, eax
jbe 0x100796eb
call fcn.100ef305
mov ecx, dword [esi + 0x5c]
lea edi, [esi + 0x44]
lea eax, [edi + 4]
cmp ecx, 8
jb 0x10079709
mov ebp, dword [eax]
jmp 0x1007970b
lea ecx, [esp + 0x40]
mov dword [esp + 0x20], ecx
mov ebp, ecx
jmp 0x100796c3
mov ebp, eax
test ebp, ebp
je 0x1007972f
cmp ecx, 8
jb 0x10079718
mov edx, dword [eax]
jmp 0x1007971a
mov edx, eax
cmp edx, ebp
ja 0x1007972f
cmp ecx, 8
jb 0x10079725
mov eax, dword [eax]
mov ecx, dword [edi + 0x14]
lea edx, [eax + ecx*2]
cmp ebp, edx
jbe 0x10079734
call fcn.100ef305
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebp
call fcn.10075a90
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], edx
call fcn.10075a90
mov ecx, dword [edi + 0x18]
lea eax, [edi + 4]
cmp ecx, 8
jb 0x10079774
mov ebp, dword [eax]
jmp 0x10079776
mov ebp, eax
test ebp, ebp
je 0x1007979a
cmp ecx, 8
jb 0x10079783
mov edx, dword [eax]
jmp 0x10079785
mov edx, eax
cmp edx, ebp
ja 0x1007979a
cmp ecx, 8
jb 0x10079790
mov eax, dword [eax]
mov ecx, dword [edi + 0x14]
lea edx, [eax + ecx*2]
cmp ebp, edx
jbe 0x1007979f
call fcn.100ef305
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebp
call fcn.10075a90
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x30]
mov byte [esp + 0x14], 0
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.10076160
mov eax, dword [esp + 0x60]
mov ebp, 8
add esp, 0x20
cmp dword [esp + 0x54], ebp
jae 0x100797fd
lea eax, [esp + 0x40]
mov edx, dword [esp + 0x50]
push 0
push 0
push 0x1000
push 0x101e9670
push edx
push eax
movzx eax, word [esi + 0x36]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub ebx, eax
add ebx, dword [esp + 0x2c]
cmp ebx, dword [esi + 0xc4]
jg 0x1007986c
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esi + 0xf8]
mov eax, dword [esi + 0xf4]
push edi
push ecx
push edx
push eax
mov ecx, esi
call sym.i3FrameworkDx.dll_public:_void___thiscall_i3Ime::ReplaceNChars_int__int__unsigned_short_int___int_
mov eax, dword [esi + 0xf4]
mov ecx, dword [esi + 0xf8]
cmp eax, ecx
jl 0x1007985d
mov eax, ecx
add eax, edi
mov dword [esi + 0xbc], eax
mov byte [esi + 0xfc], 0
mov dword [esp + 0x64], 0xffffffff
cmp dword [esp + 0x54], ebp
jb 0x100798ae
mov ecx, dword [esp + 0x40]
push ecx
call fcn.100ed384
add esp, 4
jmp 0x100798ae
mov edx, dword [esp + 0x2c]
add ebx, edx
cmp ebx, dword [esi + 0xc4]
jg 0x100798ae
mov eax, dword [esi + 0xbc]
push edi
push ebp
push eax
lea ecx, [esi + 0x44]
call fcn.10077690
add dword [esi + 0xbc], edi
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea edi, [esi + 0x98]
push edi
mov ecx, esi
mov dword [esi + 0xe4], 4
call sym.i3FrameworkDx.dll_public:_int___thiscall_i3Ime::GetText_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int____
cmp byte [esi + 0xe8], 0
jne 0x100798e7
mov ecx, edi
call fcn.10076a90
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x10079901
mov eax, dword [esi + 0xe4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
push 0
push eax
push esi
push 6
call edx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.100ed375
add esp, 0x54
ret 4