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

Disassembly:
mov eax, 0x4b0a48
call fcn.0048a7d0
sub esp, 0x68
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x6c], 0
je 0x40cfbc
mov eax, dword [0x4ea054]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
and dword [ebp - 4], 0
cmp eax, ebx
jge 0x40cb7f
mov ebx, eax
mov ecx, dword [esi + 0x14]
cmp eax, ecx
mov dword [ebp - 0x14], ecx
jl 0x40cb8c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
dec eax
je 0x40cecb
dec eax
je 0x40cba5
dec eax
je 0x40cecb
jmp 0x40cfb0
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40cfb0
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x40cfb0
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x40cfaa
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov edi, eax
test edi, edi
mov dword [ebp - 0x20], edi
je 0x40cfaa
push 0x4eea58
lea ecx, [ebp + 0xc]
call fcn.004a5f94
and dword [ebp - 0x1c], 0
push edi
mov byte [ebp - 4], 2
call fcn.0048c9e0
test eax, eax
pop ecx
jle 0x40cc2c
push 0x4ddee4
lea ecx, [ebp + 0xc]
call fcn.004a6302
inc dword [ebp - 0x1c]
push edi
call fcn.0048c9e0
cmp dword [ebp - 0x1c], eax
pop ecx
jl 0x40cc10
mov eax, dword [esi + 0xc]
cmp dword [ebp - 0x14], 0xffffffff
lea edi, [esi + 0xc]
mov eax, dword [eax - 8]
jle 0x40ccba
sub eax, dword [ebp - 0x14]
mov ecx, edi
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004a0118
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push ebx
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004a0194
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004a6155
push dword [ebp - 0x1c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004a6155
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.004a605f
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.004a5f26
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.004a5f26
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004a5f26
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
jmp 0x40cd36
sub eax, ebx
mov ecx, edi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004a0118
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x3c]
push ebx
push eax
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.004a0194
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 8
push ecx
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004a6155
push dword [ebp - 0x1c]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004a6155
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
call fcn.004a605f
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 9
call fcn.004a5f26
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 8
call fcn.004a5f26
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 7
call fcn.004a5f26
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004a5f26
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.004a605f
mov eax, dword [esi + 8]
cmp dword [ebp - 0x14], 0xffffffff
lea edi, [esi + 8]
mov eax, dword [eax - 8]
jle 0x40cdd3
sub eax, dword [ebp - 0x14]
mov ecx, edi
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004a0118
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x4c]
push ebx
push eax
mov ecx, edi
mov byte [ebp - 4], 0xb
call fcn.004a0194
push dword [ebp - 0x20]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004a61bb
push dword [ebp - 0x1c]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004a6155
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xe
call fcn.004a605f
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xd
call fcn.004a5f26
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xc
call fcn.004a5f26
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xb
call fcn.004a5f26
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
jmp 0x40ce4e
sub eax, ebx
mov ecx, edi
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004a0118
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x5c]
push ebx
push eax
mov ecx, edi
mov byte [ebp - 4], 0xf
call fcn.004a0194
push dword [ebp - 0x20]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004a61bb
push dword [ebp - 0x1c]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.004a6155
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x12
call fcn.004a605f
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x11
call fcn.004a5f26
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x10
call fcn.004a5f26
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xf
call fcn.004a5f26
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.004a5f26
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.004a605f
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x74]
push eax
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x38]
push 1
mov dword [ebp - 0x74], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x70], eax
mov eax, dword [esi + 0x44]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x74]
push eax
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [ebp - 0x20]
call fcn.0048c9e0
pop ecx
add ebx, eax
push dword [esi + 4]
mov ecx, edi
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x1c], 7
call fcn.0044228e
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004a5f26
jmp 0x40cfaa
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40cfb0
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x64]
sub edi, ebx
lea ecx, [esi + 8]
push edi
push ebx
push eax
mov dword [ebp - 0x20], edi
call fcn.004a0082
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004a605f
and byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.004a5f26
inc edi
push edi
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x40cfaa
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov edi, eax
test edi, edi
je 0x40cfaa
push dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
push 0
call fcn.004a6356
push eax
push edi
call fcn.0048adb0
mov eax, dword [ebp - 0x14]
add esp, 0xc
sub edi, ebx
push dword [ebp - 0x18]
and byte [edi + eax], 0
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push dword [ebp - 0x18]
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
cmp dword [ebp + 0xc], 3
jne 0x40cfaa
push dword [ebp - 0x20]
lea ecx, [esi + 8]
push ebx
call fcn.0049fd6b
push dword [ebp - 0x20]
lea ecx, [esi + 0xc]
push ebx
call fcn.0049fd6b
mov edi, dword [ebp + 8]
lea eax, [esi + 0x38]
push 1
push eax
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [esi + 4]
mov ecx, edi
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
call fcn.0044228e
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004a5f26
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8