Function at 0x482170
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
sub esp, 0x50
mov eax, dword [0x5bd254]
xor eax, esp
mov dword [esp + 0x4c], eax
push esi
push edi
push 4
lea eax, [esp + 0x18]
push eax
push 0x580dd0
push str.CopyToClipboardInUnicode
xor esi, esi
push str.Text_Options
mov dword [esp + 0x24], esi
call sym.convertifd.exe_GetJetFormIniStr
movsx ecx, byte [esp + 0x14]
push ecx
call fcn.00511e5d
xor edx, edx
add esp, 4
cmp eax, 0x4e
setne dl
mov edi, edx
cmp edi, esi
mov dword [esp + 0xc], edi
je 0x4821f3
lea eax, [esp + 0x20]
push eax
call sym.convertifd.exe_SymbolSetConversionStatus
lea ecx, [esp + 0x24]
push ecx
call fcn.00572c96
push 3
lea edx, [esp + 0x2c]
push 0x5822f4
push edx
call fcn.00513bae
add esp, 0x14
test eax, eax
jne 0x4821f3
mov dword [esp + 0xc], esi
mov edi, esi
mov eax, dword [0x60683c]
push eax
push 0x6a2d18
call sym.convertifd.exe_PointToEntity
mov ecx, dword [0x6a26c8]
add esp, 8
cmp ecx, 0xffffffff
mov dword [0x606844], eax
jne 0x48222a
pop edi
lea eax, [ecx + 2]
pop esi
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00511a80
add esp, 0x50
ret
push ebx
push ebp
mov ebp, dword [0x6a26cc]
sub ebp, ecx
add ebp, 1
cmp ebp, esi
mov ebx, ecx
mov dword [esp + 0x10], ebx
jle 0x482254
lea ecx, [ebx + ebp]
push ecx
call fcn.00481ad0
add esp, 4
test eax, eax
je 0x482254
add ebp, 1
lea edx, [ebp*4 + 4]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, esi
mov dword [esp + 0x20], eax
je 0x482447
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test edi, edi
mov esi, eax
je 0x482341
mov eax, ebx
add ebp, eax
xor edi, edi
cmp eax, ebp
mov dword [esp + 0x24], ebp
jge 0x482322
mov eax, dword [0x606844]
mov ecx, dword [eax + 0x38]
mov edx, dword [eax + 0x34]
push ebx
push ecx
mov ecx, dword [eax + 0x20]
push edx
mov edx, dword [eax + 0x1c]
movsx eax, byte [eax + 8]
push ecx
push edx
push eax
call sym.convertifd.exe_GetFontForChar
push eax
call sym.convertifd.exe_GetFontSymbolset
mov ecx, dword [0x606844]
mov edx, dword [ecx + 0x30]
push 2
lea ebp, [edi + esi]
push ebp
push 2
add edx, ebx
push edx
push 0x67
push eax
mov dword [esp + 0x44], eax
call sym.convertifd.exe_CV_CvtSymbolSet
add esp, 0x34
cmp byte [ebp], 0xa
jne 0x4822f9
cmp edi, 2
jl 0x4822ee
cmp byte [edi + esi - 2], 0xd
je 0x4822f9
add edi, 2
mov byte [ebp], 0xd
mov byte [edi + esi], 0xa
mov eax, dword [0x606844]
mov ecx, dword [eax + 0x30]
movzx edx, byte [ecx + ebx]
mov eax, dword [esp + 0x10]
push edx
push eax
add edi, 2
call sym.convertifd.exe_CV_NBytesInChar
add ebx, eax
add esp, 8
cmp ebx, dword [esp + 0x24]
jl 0x482293
mov byte [edi + esi], 0
mov byte [edi + esi + 1], 0
cmp byte [esi], 0
jne 0x48233a
cmp byte [esi + 1], 0
jne 0x48233a
xor esi, esi
jmp 0x4823a5
mov esi, 1
jmp 0x4823a5
xor edi, edi
xor ebx, ebx
test ebp, ebp
jle 0x482398
lea esp, [esp]
mov ecx, dword [0x606844]
mov edx, dword [ecx + 0x30]
mov eax, dword [esp + 0x10]
add edx, ebx
movzx eax, byte [edx + eax]
cmp al, 0x7f
jbe 0x482370
push eax
call sym.convertifd.exe_Roman8ToAnsi
add esp, 4
cmp al, 0xa
mov byte [edi + esi], al
jne 0x48238e
cmp edi, 1
jl 0x482383
cmp byte [edi + esi - 1], 0xd
je 0x48238e
mov byte [edi + esi], 0xd
add edi, 1
mov byte [edi + esi], 0xa
add ebx, 1
add edi, 1
cmp ebx, ebp
jl 0x482350
xor ecx, ecx
mov byte [edi + esi], 0
cmp byte [esi], cl
setne cl
mov esi, ecx
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test esi, esi
jne 0x4823d1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebp
pop ebx
pop edi
lea eax, [esi + 1]
pop esi
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00511a80
add esp, 0x50
ret
mov edx, dword [sym.convertifd.exe_i_window]
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x482423
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esp + 0x14]
neg eax
sbb eax, eax
and eax, 0xc
push edi
add eax, 1
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebp
pop ebx
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00511a80
add esp, 0x50
ret
push 0xfffffc5f
call sym.convertifd.exe_IpMessage
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00511a80
add esp, 0x50
ret
push 0xfffffc5f
call sym.convertifd.exe_IpMessage
mov ecx, dword [esp + 0x60]
add esp, 4
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00511a80
add esp, 0x50
ret