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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x457c70]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
push ebx
xor ebx, ebx
mov dword [ebp - 0x1dc], ecx
push esi
push edi
mov dword [ebp - 0x1d4], eax
xor esi, esi
mov dword [ebp - 0x1c8], ebx
xor edi, edi
mov dword [ebp - 0x1d0], ebx
mov dword [ebp - 0x1e4], ebx
mov dword [ebp - 0x1fc], ebx
mov dword [ebp - 0x1f4], ebx
mov dword [ecx], ebx
call dword [sym.imp.USER32.dll_GetClipboardOwner]
push dword [0x46346c]
mov dword [ebp - 0x1d8], eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x40ac80
cmp dword [ebp + 0x14], ebx
je 0x40ae75
push 0x10
push str.Error
push str.Cannot_open_clipboard
push dword [ebp - 0x1d4]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40ae75
lea eax, [ebp - 0x1c4]
mov dword [ebp - 0x1fc], 1
push eax
call fcn.00411030
lea eax, [ebp - 0x1ac]
push eax
call fcn.00411060
mov eax, dword [0x463454]
mov dword [ebp - 0x1a0], eax
mov eax, dword [0x463458]
mov dword [ebp - 0x1a4], eax
mov eax, dword [0x46345c]
mov dword [ebp - 0x19c], eax
lea eax, [ebp - 0x1ac]
push eax
call fcn.004110a0
add esp, 0xc
cmp dword [0x463450], ebx
mov ebx, dword [ebp + 8]
jne 0x40ad27
push dword [ebp - 0x1d4]
push dword [ebp + 0x14]
push dword [ebp - 0x1dc]
push dword [ebp + 0xc]
push ebx
call fcn.0040b270
add esp, 0x14
test eax, eax
je 0x40ad27
call dword [sym.imp.USER32.dll_CloseClipboard]
lea eax, [ebp - 0x1c4]
push eax
call fcn.004110a0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1d8]
cmp eax, dword [0x46346c]
jne 0x40ae26
push dword [0x453328]
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x1c8], eax
test eax, eax
je 0x40ae26
push eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push dword [ebp - 0x1c8]
mov esi, eax
mov dword [ebp - 0x1cc], esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x1d0], eax
test eax, eax
je 0x40add0
cmp esi, 0xc
jb 0x40adb6
movq xmm0, qword [esi + eax - 0xc]
mov eax, dword [esi + eax - 4]
mov dword [ebp - 0x1e8], eax
mov eax, 0xf1e3
movq qword [ebp - 0x1f0], xmm0
cmp word [ebp - 0x1e8], ax
jne 0x40adb6
mov ebx, dword [ebp - 0x1ec]
mov edx, 1
mov eax, dword [ebp - 0x1d0]
jmp 0x40add2
push dword [ebp - 0x1c8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor eax, eax
mov dword [ebp - 0x1d0], eax
mov dword [ebp - 0x1c8], eax
xor edx, edx
mov esi, dword [ebp - 0x1cc]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40adee
mov dword [ebp - 0x1d8], 1
cmp ecx, 4
jne 0x40adf8
mov dword [ebp - 0x1d8], 0xd
test edx, edx
jne 0x40af26
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x40ae32
test ebx, ebx
je 0x40ae1f
cmp ebx, 4
je 0x40ae1f
cmp ebx, 0x14
je 0x40ae1f
cmp ebx, 0x16
jne 0x40ae32
mov eax, 0xd
jmp 0x40ae37
mov esi, dword [ebp - 0x1f8]
xor eax, eax
xor edx, edx
jmp 0x40add8
mov eax, 1
push eax
mov dword [ebp - 0x1cc], eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x1c8], eax
test eax, eax
jne 0x40aeb1
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x40ae6d
push 0x10
push str.Error
push str.Cannot_read_clipboard
push dword [ebp - 0x1d4]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor esi, esi
mov ebx, dword [ebp - 0x1c8]
lea eax, [ebp - 0x1c4]
push eax
call fcn.004110a0
mov eax, dword [ebp - 0x1d0]
add esp, 4
test eax, eax
je 0x40b184
test edi, edi
je 0x40aea3
cmp edi, eax
je 0x40aea3
push edi
call fcn.0041e148
add esp, 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call ebx
jmp 0x40b18a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push dword [ebp - 0x1c8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x1d0], eax
test eax, eax
je 0x40af23
test ebx, ebx
je 0x40af23
cmp ebx, 4
je 0x40af23
cmp dword [ebp - 0x1cc], 0xd
jne 0x40af23
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1cc], eax
lea esi, [eax + 1]
push esi
call fcn.0041e13f
add esp, 4
mov edi, eax
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push dword [ebp - 0x1d0]
push 0
push 0x4e4
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, dword [ebp - 0x1cc]
mov ecx, dword [ebp + 0xc]
jmp 0x40af28
mov ecx, dword [ebp + 0xc]
mov edi, eax
test edi, edi
je 0x40ae6d
test esi, esi
jle 0x40ae6d
push esi
push ecx
push ebx
call fcn.0040b460
add esp, 0xc
add eax, 0xc
mov dword [ebp - 0x1e0], eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x40af83
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x40ae6f
push 0x10
push str.Error
push str.Could_not_allocate_enough_memory_to_do_the_conversion
push dword [ebp - 0x1d4]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40ae6f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x1e4], eax
test eax, eax
je 0x40ae6f
lea ecx, [ebp - 0x1e0]
mov dword [ebp - 0x1f8], 0xffffffff
push ecx
lea ecx, [ebp - 0x1f8]
push ecx
push eax
push edi
push dword [ebp + 0xc]
push ebx
call fcn.00410570
mov ecx, dword [ebp - 0x1dc]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x40b009
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x40ae6f
push eax
lea eax, [ebp - 0x194]
push str.Error__d_
push eax
call fcn.0041d8c8
add esp, 0xc
lea eax, [ebp - 0x194]
push 0x30
push str.Result
push eax
push dword [ebp - 0x1d4]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40ae6f
mov ecx, dword [ebp - 0x1e4]
mov eax, 0xf1e3
add ecx, dword [ebp - 0x1e0]
mov word [ebp - 0x1e8], ax
xor eax, eax
mov word [ebp - 0x1f0], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1ec], eax
movq xmm0, qword [ebp - 0x1f0]
mov eax, dword [ebp - 0x1e8]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
add dword [ebp - 0x1e0], 0xc
cmp edi, dword [ebp - 0x1d0]
je 0x40b062
push edi
call fcn.0041e148
add esp, 4
xor edi, edi
mov ebx, dword [ebp - 0x1c8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
mov dword [ebp - 0x1d0], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 2
push dword [ebp - 0x1e0]
mov dword [ebp - 0x1e4], 0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
test eax, eax
cmovne esi, eax
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push dword [ebp - 0x1d8]
call dword [sym.imp.USER32.dll_SetClipboardData]
mov eax, dword [ebp - 0x1d8]
xor esi, esi
mov dword [ebp - 0x1dc], esi
mov dword [0x4879d8], esi
cmp eax, 0xd
jne 0x40b10b
mov eax, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 4
push 2
call eax
mov ebx, eax
mov esi, 0x4448b4
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
sub eax, esi
mov cl, byte [esi]
lea esi, [esi + 1]
mov byte [eax + esi - 1], cl
test cl, cl
jne 0x40b0e5
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
push 1
call eax
mov ebx, dword [ebp - 0x1c8]
jmp 0x40b145
cmp eax, 1
jne 0x40b14b
cmp dword [ebp + 0xc], 5
jne 0x40b14b
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 0x40b13b
push esi
mov dword [eax], 0x42a
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [sym.imp.USER32.dll_SetClipboardData]
push esi
push 0x10
call eax
mov esi, dword [ebp - 0x1dc]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x40b16a
push 0x40
push str.Result
push str.Successfully_converted
push dword [ebp - 0x1d4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x1d8]
mov dword [0x453328], eax
mov dword [ebp - 0x1f4], 1
jmp 0x40ae75
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 0x1e4]
test ecx, ecx
je 0x40b197
push esi
call ebx
test esi, esi
je 0x40b1a2
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x1fc], 0
je 0x40b1b1
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1f4]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret