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

Disassembly:
sub esp, 0x128
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x144]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [edi], ebx
call dword [sym.imp.USER32.dll_GetClipboardOwner]
mov esi, eax
mov eax, dword [0x42350c]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x408e71
cmp dword [esp + 0x148], ebx
je 0x4092db
mov ecx, dword [esp + 0x14c]
push 0x10
push str.Error
push str.Cannot_open_clipboard
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4092db
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x2c], 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 [0x4234f4]
mov edx, dword [0x4234f8]
mov eax, dword [0x4234fc]
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 [0x4234f0]
mov ebp, dword [esp + 0x148]
add esp, 0xc
cmp eax, ebx
jne 0x408f14
mov edx, dword [esp + 0x14c]
mov eax, dword [esp + 0x148]
mov ecx, dword [esp + 0x140]
push edx
push eax
push edi
push ecx
push ebp
call fcn.004087b0
add esp, 0x14
test eax, eax
je 0x408f14
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, 0x128
ret
mov eax, dword [0x42350c]
xor edi, edi
cmp esi, eax
jne 0x408f89
mov eax, dword [0x41fdd0]
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
mov dword [esp + 0x10], eax
je 0x408f89
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 0x408f8d
cmp esi, 0xc
jb 0x408f76
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 0x408f76
mov edi, 1
mov ebp, eax
jmp 0x408f8d
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor ebx, ebx
mov dword [esp + 0x10], ebx
jmp 0x408f8d
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x140]
test eax, eax
je 0x408fa5
cmp eax, 4
mov dword [esp + 0x24], 1
jne 0x408fad
mov dword [esp + 0x24], 0xd
test edi, edi
jne 0x409076
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x408fdb
test ebp, ebp
je 0x408fd4
cmp ebp, 4
je 0x408fd4
cmp ebp, 0x14
je 0x408fd4
cmp ebp, 0x16
jne 0x408fdb
mov edi, 0xd
jmp 0x408fe0
mov edi, 1
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x40901d
mov eax, dword [esp + 0x148]
test eax, eax
je 0x4092db
mov eax, dword [esp + 0x14c]
push 0x10
push str.Error
push str.Cannot_read_clipboard
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4092db
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 0x409076
test ebp, ebp
je 0x409076
cmp ebp, 4
je 0x409076
cmp edi, 0xd
jne 0x409076
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov esi, eax
lea edi, [esi + 1]
push edi
call fcn.0040e0e9
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 0x40907a
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4092db
test esi, esi
jle 0x4092db
mov edx, dword [esp + 0x140]
push esi
push edx
push ebp
call fcn.004089f0
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 0x4090e8
mov eax, dword [esp + 0x148]
test eax, eax
je 0x4092db
mov eax, dword [esp + 0x14c]
push 0x10
push str.Error
push str.Could_not_allocate_enough_memory_to_do_the_conversion
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4092db
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [esp + 0x20], eax
je 0x4092db
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x144]
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 ebp, dword [esp + 0x15c]
add esp, 0x18
test eax, eax
mov dword [ebp], eax
je 0x40917f
mov ecx, dword [esp + 0x148]
test ecx, ecx
je 0x4092db
push eax
call dword [sym.imp.UKHook40.dll_char_const____cdecl_VnConvErrMsg_int_]
mov edx, dword [ebp]
push eax
push edx
lea eax, [esp + 0x7c]
push str.Error__d_:__s
push eax
call fcn.0040dd88
mov edx, dword [esp + 0x160]
add esp, 0x14
push 0x30
push str.Result
lea ecx, [esp + 0x78]
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4092db
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add eax, ecx
mov ecx, dword [esp + 0x140]
mov word [esp + 0x34], 0
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 0x4091ce
push edi
call fcn.0040dff2
add esp, 4
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edi, dword [esp + 0x14]
push edi
xor ebp, ebp
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x1c]
push 2
push ecx
push edi
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
cmp eax, ebp
je 0x409204
mov dword [esp + 0x14], eax
mov edi, eax
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
mov edi, dword [esp + 0x28]
push edi
call dword [sym.imp.USER32.dll_SetClipboardData]
cmp edi, 0xd
mov dword [esp + 0x14], ebp
mov dword [0x4465ec], ebp
jne 0x409272
mov eax, 0x41ac20
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409230
sub eax, edx
inc eax
push eax
push 2
call esi
mov edi, eax
push edi
mov esi, 0x41ac20
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 0x409250
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov edi, dword [esp + 0x24]
xor ebp, ebp
jmp 0x4092aa
cmp edi, 1
jne 0x4092aa
cmp dword [esp + 0x140], 5
jne 0x4092aa
push 4
push 2
call esi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebp
je 0x4092a1
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 + 0x148], ebp
je 0x4092cd
mov edx, dword [esp + 0x14c]
push 0x40
push str.Result
push str.Successfully_converted
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x41fdd0], edi
mov dword [esp + 0x2c], 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 0x40930d
mov eax, dword [esp + 0x18]
test eax, eax
je 0x409302
cmp eax, ebx
je 0x409302
push eax
call fcn.0040dff2
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 0x409320
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test esi, esi
je 0x40932b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x409339
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret