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

Disassembly:
sub esp, 0x1f0
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x20c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [edi], ebx
call dword [sym.imp.USER32.dll_GetClipboardOwner]
mov esi, eax
mov eax, dword [0x42c2a4]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x408fa1
cmp dword [esp + 0x210], ebx
je 0x4093f7
mov ecx, dword [esp + 0x214]
push 0x10
push str.Error
push str.Cannot_open_clipboard
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4093f7
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x28], 1
call dword [sym.imp.UKHook40.dll_void___cdecl_VnConvGetOptions_struct__VnConvOptions__]
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.UKHook40.dll_void___cdecl_VnConvResetOptions_struct__VnConvOptions__]
mov ecx, dword [0x42c28c]
mov edx, dword [0x42c290]
mov eax, dword [0x42c294]
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x5c], eax
call dword [sym.imp.UKHook40.dll_void___cdecl_VnConvSetOptions_struct__VnConvOptions__]
mov eax, dword [0x42c288]
mov ebp, dword [esp + 0x210]
add esp, 0xc
cmp eax, ebx
jne 0x409044
mov edx, dword [esp + 0x214]
mov eax, dword [esp + 0x210]
mov ecx, dword [esp + 0x208]
push edx
push eax
push edi
push ecx
push ebp
call fcn.004088e0
add esp, 0x14
test eax, eax
je 0x409044
call dword [sym.imp.USER32.dll_CloseClipboard]
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.UKHook40.dll_void___cdecl_VnConvSetOptions_struct__VnConvOptions__]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1f0
ret
mov eax, dword [0x42c2a4]
xor edi, edi
cmp esi, eax
jne 0x4090b9
mov eax, dword [0x4222a8]
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
mov dword [esp + 0x10], eax
je 0x4090b9
push eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov ecx, dword [esp + 0x10]
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x4090bd
cmp esi, 0xc
jb 0x4090a6
lea edx, [esi + ebx - 0xc]
mov eax, dword [edx]
mov dword [esp + 0x34], eax
mov eax, dword [edx + 4]
mov ecx, dword [edx + 8]
cmp cx, 0xf1e3
mov dword [esp + 0x3c], ecx
jne 0x4090a6
mov edi, 1
mov ebp, eax
jmp 0x4090bd
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor ebx, ebx
mov dword [esp + 0x10], ebx
jmp 0x4090bd
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x208]
test eax, eax
je 0x4090d5
cmp eax, 4
mov dword [esp + 0x2c], 1
jne 0x4090dd
mov dword [esp + 0x2c], 0xd
test edi, edi
jne 0x4091a6
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x40910b
test ebp, ebp
je 0x409104
cmp ebp, 4
je 0x409104
cmp ebp, 0x14
je 0x409104
cmp ebp, 0x16
jne 0x40910b
mov edi, 0xd
jmp 0x409110
mov edi, 1
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x40914d
mov eax, dword [esp + 0x210]
test eax, eax
je 0x4093f7
mov eax, dword [esp + 0x214]
push 0x10
push str.Error
push str.Cannot_read_clipboard
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4093f7
push eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov ecx, dword [esp + 0x10]
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x4091a6
test ebp, ebp
je 0x4091a6
cmp ebp, 4
je 0x4091a6
cmp edi, 0xd
jne 0x4091a6
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov esi, eax
lea edi, [esi + 1]
push edi
call fcn.0040e344
add esp, 4
push 0
push 0
push edi
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0x4e4
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x4091aa
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4093f7
test esi, esi
jle 0x4093f7
mov edx, dword [esp + 0x208]
push esi
push edx
push ebp
call fcn.00408b20
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
add esp, 0xc
add eax, 0xc
push eax
push 2
mov dword [esp + 0x24], eax
call esi
test eax, eax
mov dword [esp + 0x14], eax
jne 0x409218
mov eax, dword [esp + 0x210]
test eax, eax
je 0x4093f7
mov eax, dword [esp + 0x214]
push 0x10
push str.Error
push str.Could_not_allocate_enough_memory_to_do_the_conversion
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4093f7
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [esp + 0x20], eax
je 0x4093f7
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x20c]
lea edx, [esp + 0x34]
push edx
push eax
push edi
push ecx
push ebp
mov dword [esp + 0x48], 0xffffffff
call dword [sym.imp.UKHook40.dll_VnConvert]
mov edx, dword [esp + 0x224]
xor ebp, ebp
add esp, 0x18
cmp eax, ebp
mov dword [edx], eax
je 0x4092a3
cmp dword [esp + 0x210], ebp
je 0x4093f7
push eax
lea eax, [esp + 0x74]
push 0x41ca84
push eax
call fcn.0040dfe8
mov edx, dword [esp + 0x220]
add esp, 0xc
push 0x30
push str.Result
lea ecx, [esp + 0x78]
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4093f7
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add eax, ecx
mov ecx, dword [esp + 0x208]
mov word [esp + 0x34], bp
mov edx, dword [esp + 0x34]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov word [esp + 0x3c], 0xf1e3
mov edx, dword [esp + 0x3c]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x1c]
add ecx, 0xc
cmp edi, ebx
mov dword [esp + 0x1c], ecx
je 0x4092ec
push edi
call fcn.0040e24d
add esp, 4
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push eax
call edi
mov ebp, dword [esp + 0x14]
push ebp
xor ebx, ebx
call edi
mov ecx, dword [esp + 0x1c]
push 2
push ecx
xor edi, edi
push ebp
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
cmp eax, edi
je 0x409320
mov dword [esp + 0x14], eax
mov ebp, eax
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebp
mov ebp, dword [esp + 0x30]
push ebp
call dword [sym.imp.USER32.dll_SetClipboardData]
cmp ebp, 0xd
mov dword [esp + 0x14], edi
mov dword [0x450518], edi
jne 0x40938e
mov eax, 0x41ca80
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409350
sub eax, edx
inc eax
push eax
push 2
call esi
mov edi, eax
push edi
mov esi, 0x41ca80
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [ecx]
mov cl, byte [esi]
inc esi
mov byte [eax], cl
inc eax
test cl, cl
jne 0x409370
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
xor edi, edi
jmp 0x4093c6
cmp ebp, 1
jne 0x4093c6
cmp dword [esp + 0x208], 5
jne 0x4093c6
push 4
push 2
call esi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, edi
je 0x4093bd
push esi
mov dword [eax], 0x42a
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0x10
call dword [sym.imp.USER32.dll_SetClipboardData]
cmp dword [esp + 0x210], edi
je 0x4093e9
mov edx, dword [esp + 0x214]
push 0x40
push str.Result
push str.Successfully_converted
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [0x4222a8], ebp
mov dword [esp + 0x28], 1
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.UKHook40.dll_void___cdecl_VnConvSetOptions_struct__VnConvOptions__]
add esp, 4
test ebx, ebx
je 0x409429
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40941e
cmp eax, ebx
je 0x40941e
push eax
call fcn.0040e24d
add esp, 4
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x20]
test eax, eax
mov esi, dword [esp + 0x14]
je 0x40943c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test esi, esi
je 0x409447
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x409455
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1f0
ret