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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x488250]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x68], eax
xor ebx, ebx
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x70], eax
xor esi, esi
mov eax, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x78], ebx
mov dword [ecx], ebx
call dword [sym.imp.USER32.dll_GetClipboardOwner]
push dword [0x483d84]
mov dword [ebp - 0x60], eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x422b50
cmp dword [ebp - 0x70], ebx
je 0x422b49
push 0x30
push 0x468c80
mov eax, 0x468c4c
mov ecx, 0x468bcc
cmp dword [ebp - 0x68], 1
cmove eax, ecx
push eax
push dword [ebp - 0x58]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor edi, edi
jmp 0x422fd9
lea eax, [ebp - 0x48]
mov dword [ebp - 0x80], 1
push eax
call fcn.00435560
lea eax, [ebp - 0x28]
push eax
call fcn.00435580
movzx eax, byte [0x48c18a]
mov dword [ebp - 0x1c], eax
movzx eax, byte [0x48c18b]
mov dword [ebp - 0x20], eax
movzx eax, byte [0x48c18c]
mov dword [ebp - 0x18], eax
movzx eax, byte [0x48c18d]
mov dword [ebp - 0x14], eax
movzx eax, byte [0x48c18e]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
push eax
call fcn.004355c0
mov eax, dword [ebp - 0x60]
add esp, 0xc
mov dword [ebp - 0x6c], ebx
cmp eax, dword [0x483d84]
jne 0x422c2c
push dword [0x483d48]
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x422c2c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push dword [ebp - 0x50]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x422c2f
cmp esi, 0xc
jb 0x422c1b
movq xmm0, qword [esi + eax - 0xc]
mov eax, dword [esi + eax - 4]
mov dword [ebp - 0x84], eax
mov eax, 0xf1e3
movq qword [ebp - 0x8c], xmm0
cmp word [ebp - 0x84], ax
jne 0x422c1b
mov edi, dword [ebp - 0x88]
mov dword [ebp - 0x6c], 1
jmp 0x422c2f
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x50], ebx
jmp 0x422c2f
mov esi, dword [ebp - 0x7c]
push dword [ebp - 0x58]
push dword [ebp - 0x70]
push dword [ebp - 0x68]
push dword [ebp - 0x64]
push edi
call fcn.00423690
mov ecx, dword [ebp - 0x64]
add esp, 0x14
mov dword [ebp - 0x74], eax
test ecx, ecx
je 0x422c61
cmp ecx, 4
je 0x422c61
cmp ecx, 0x1e
je 0x422c61
cmp ecx, 0x1f
je 0x422c61
xor eax, eax
jmp 0x422c66
mov eax, 1
test al, al
mov dword [ebp - 0x60], 0xd
mov edx, 1
cmovne edx, dword [ebp - 0x60]
mov dword [ebp - 0x60], edx
cmp dword [ebp - 0x6c], ebx
jne 0x422d70
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x422caf
test edi, edi
je 0x422ca8
cmp edi, 4
je 0x422ca8
cmp edi, 0x1e
je 0x422ca8
cmp edi, 0x1f
je 0x422ca8
cmp edi, 0x16
jne 0x422caf
mov eax, 0xd
jmp 0x422cb4
mov eax, 1
push eax
mov dword [ebp - 0x54], eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
mov dword [ebp - 0x50], eax
test esi, esi
jne 0x422d03
push 1
mov dword [ebp - 0x54], 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
mov dword [ebp - 0x50], esi
test esi, esi
jne 0x422d03
cmp dword [ebp - 0x74], ebx
jne 0x422d03
cmp dword [ebp - 0x70], ebx
je 0x422b49
push 0x30
push 0x468d10
mov eax, str.Cannot_read_the_Clipboard
mov ecx, 0x468ca0
jmp 0x422b38
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push dword [ebp - 0x50]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x5c], eax
test edi, edi
je 0x422d69
cmp edi, 4
je 0x422d69
cmp edi, 0x1e
je 0x422d69
cmp edi, 0x1f
je 0x422d69
cmp dword [ebp - 0x54], 0xd
jne 0x422d69
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x54], eax
lea esi, [eax + 1]
push esi
call fcn.0043821e
add esp, 4
mov ebx, eax
push 0
push 0
push esi
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x5c]
push 0
push 0x4e4
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x64]
jmp 0x422d73
mov ecx, dword [ebp - 0x64]
mov ebx, eax
jmp 0x422d73
mov ebx, dword [ebp - 0x5c]
test ebx, ebx
je 0x422dc8
test esi, esi
jle 0x422dc8
push esi
push ecx
push edi
call fcn.004239f0
add esp, 0xc
add eax, 0xc
mov dword [ebp - 0x4c], eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x6c], eax
test eax, eax
jne 0x422dd2
cmp dword [ebp - 0x74], eax
jne 0x422dd2
cmp dword [ebp - 0x70], eax
je 0x422dc8
cmp dword [ebp - 0x68], 1
mov ecx, 0x468d30
push 0x30
push 0x468db8
mov eax, 0x468d80
cmove eax, ecx
push eax
push dword [ebp - 0x58]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, dword [ebp - 0x50]
xor edi, edi
jmp 0x422fd9
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x422dc8
push 1
lea eax, [ebp - 0x4c]
mov dword [ebp - 8], 0xffffffff
push eax
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [ebp - 0x64]
push edi
call fcn.004341c0
mov ecx, dword [ebp - 0x7c]
add esp, 0x1c
mov dword [ecx], eax
test eax, eax
je 0x422e3f
cmp dword [ebp - 0x74], 0
jne 0x422e3f
cmp dword [ebp - 0x70], 0
je 0x422dc8
cmp dword [ebp - 0x68], 1
mov ecx, 0x468dd8
push 0x30
push 0x468e60
mov eax, 0x468e28
cmove eax, ecx
push eax
push dword [ebp - 0x58]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, dword [ebp - 0x50]
xor edi, edi
jmp 0x422fd9
mov ecx, dword [ebp - 0x4c]
mov eax, 0xf1e3
mov word [ebp - 0x84], ax
xor eax, eax
mov word [ebp - 0x8c], ax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x88], eax
movq xmm0, qword [ebp - 0x8c]
mov eax, dword [ebp - 0x84]
movq qword [ecx + esi], xmm0
mov dword [ecx + esi + 8], eax
add dword [ebp - 0x4c], 0xc
cmp ebx, dword [ebp - 0x5c]
je 0x422e8d
push 1
push ebx
call fcn.00438210
add esp, 8
xor ebx, ebx
mov esi, dword [ebp - 0x50]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edi, dword [ebp - 0x6c]
push edi
mov dword [ebp - 0x5c], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 2
push dword [ebp - 0x4c]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov dword [ebp - 0x7c], eax
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp - 0x74]
mov edi, dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x422ed3
push eax
call fcn.00423070
push eax
call edi
push dword [ebp - 0x7c]
push dword [ebp - 0x60]
call edi
mov dword [ebp - 0x6c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x60]
cmp edx, 0xd
jne 0x422f25
push 0x468e80
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 2
call eax
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0x468e80
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
jmp 0x422f58
cmp edx, 1
jne 0x422f60
cmp dword [ebp - 0x64], 5
jne 0x422f60
mov eax, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 4
push 2
call eax
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x422f55
push esi
mov dword [eax], 0x42a
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0x10
call edi
mov edx, dword [ebp - 0x60]
mov esi, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x6c]
test ecx, ecx
jne 0x422f6e
test eax, eax
je 0x422f7b
mov dword [ebp - 0x78], 1
mov dword [0x483d48], edx
cmp dword [ebp - 0x70], 0
je 0x422fd6
test ecx, ecx
jne 0x422faf
test eax, eax
jne 0x422faf
xor edi, edi
mov ecx, 0x468e98
cmp dword [ebp - 0x68], 1
mov eax, str.There_was_converting_error
push 0x30
push 0x468f20
cmove eax, ecx
push eax
push dword [ebp - 0x58]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x422fd9
cmp dword [ebp - 0x68], 1
push 0x40
jne 0x422fc3
push 0x468f40
push 0x468f60
jmp 0x422fcd
push 0x468fa0
push str.Clipboard_has_just_converted_successfully.
push dword [ebp - 0x58]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, dword [ebp - 0x78]
lea eax, [ebp - 0x48]
push eax
call fcn.004355c0
mov eax, dword [ebp - 0x5c]
add esp, 4
test eax, eax
je 0x423006
test ebx, ebx
je 0x422fff
cmp ebx, eax
je 0x422fff
push 1
push ebx
call fcn.00438210
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x80], 0
je 0x423012
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004380af
mov esp, ebp
pop ebp
ret