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

Disassembly:
mov eax, 0x4a6188
call fcn.004817b4
sub esp, 0x68
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x6c], 0
je 0x40bc27
mov eax, dword [0x4dbfc4]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
and dword [ebp - 4], 0
cmp eax, ebx
jge 0x40b7ea
mov ebx, eax
mov ecx, dword [esi + 0x14]
cmp eax, ecx
mov dword [ebp - 0x14], ecx
jl 0x40b7f7
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
dec eax
je 0x40bb36
dec eax
je 0x40b810
dec eax
je 0x40bb36
jmp 0x40bc1b
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40bc1b
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x40bc1b
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x40bc15
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov edi, eax
test edi, edi
mov dword [ebp - 0x20], edi
je 0x40bc15
push 0x4de958
lea ecx, [ebp + 0xc]
call fcn.0049be4c
and dword [ebp - 0x1c], 0
push edi
mov byte [ebp - 4], 2
call fcn.004837c0
test eax, eax
pop ecx
jle 0x40b897
push 0x4d0eac
lea ecx, [ebp + 0xc]
call fcn.0049c1ba
inc dword [ebp - 0x1c]
push edi
call fcn.004837c0
cmp dword [ebp - 0x1c], eax
pop ecx
jl 0x40b87b
mov eax, dword [esi + 0xc]
cmp dword [ebp - 0x14], 0xffffffff
lea edi, [esi + 0xc]
mov eax, dword [eax - 8]
jle 0x40b925
sub eax, dword [ebp - 0x14]
mov ecx, edi
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004960d8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push ebx
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00496154
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0049c00d
push dword [ebp - 0x1c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0049c00d
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.0049bf17
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.0049bdde
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.0049bdde
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0049bdde
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
jmp 0x40b9a1
sub eax, ebx
mov ecx, edi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004960d8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x3c]
push ebx
push eax
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.00496154
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 8
push ecx
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0049c00d
push dword [ebp - 0x1c]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0049c00d
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
call fcn.0049bf17
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 9
call fcn.0049bdde
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 8
call fcn.0049bdde
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 7
call fcn.0049bdde
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.0049bdde
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.0049bf17
mov eax, dword [esi + 8]
cmp dword [ebp - 0x14], 0xffffffff
lea edi, [esi + 8]
mov eax, dword [eax - 8]
jle 0x40ba3e
sub eax, dword [ebp - 0x14]
mov ecx, edi
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004960d8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x4c]
push ebx
push eax
mov ecx, edi
mov byte [ebp - 4], 0xb
call fcn.00496154
push dword [ebp - 0x20]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0049c073
push dword [ebp - 0x1c]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0049c00d
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xe
call fcn.0049bf17
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xd
call fcn.0049bdde
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xc
call fcn.0049bdde
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xb
call fcn.0049bdde
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
jmp 0x40bab9
sub eax, ebx
mov ecx, edi
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004960d8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x5c]
push ebx
push eax
mov ecx, edi
mov byte [ebp - 4], 0xf
call fcn.00496154
push dword [ebp - 0x20]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0049c073
push dword [ebp - 0x1c]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0049c00d
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x12
call fcn.0049bf17
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x11
call fcn.0049bdde
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x10
call fcn.0049bdde
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xf
call fcn.0049bdde
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.0049bdde
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.0049bf17
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.004837c0
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.0043a72a
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0049bdde
jmp 0x40bc15
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40bc1b
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.00496042
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0049bf17
and byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.0049bdde
inc edi
push edi
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x40bc15
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov edi, eax
test edi, edi
je 0x40bc15
push dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
push 0
call fcn.0049c20e
push eax
push edi
call fcn.00481da0
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 0x40bc15
push dword [ebp - 0x20]
lea ecx, [esi + 8]
push ebx
call fcn.00495d2b
push dword [ebp - 0x20]
lea ecx, [esi + 0xc]
push ebx
call fcn.00495d2b
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.0043a72a
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0049bdde
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8