Function at 0x40d8a0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4aded0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push esi
push edi
mov eax, dword [0x4f07b0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, 0x989680
xor ecx, ecx
xor esi, esi
mov eax, edi
xor edx, edx
cmp dword [ebx + 0x168], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ecx
jle 0x40d961
test edx, edx
jl 0x40da4f
cmp edx, dword [ebx + 0x168]
jge 0x40da4f
mov eax, dword [ebx + 0x164]
lea eax, [eax + edx*4]
mov eax, dword [eax]
mov ecx, dword [eax + 0x58]
cmp ecx, edi
jge 0x40d91a
mov dword [esp + 0x10], ecx
mov edi, dword [eax + 0x5c]
cmp edi, dword [esp + 0x14]
jge 0x40d927
mov dword [esp + 0x14], edi
mov esi, dword [eax + 0x60]
add ecx, esi
mov esi, dword [esp + 0x18]
cmp ecx, esi
jle 0x40d93a
mov esi, ecx
mov dword [esp + 0x18], esi
mov ecx, dword [eax + 0x64]
lea eax, [ecx + edi]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jle 0x40d94e
mov ecx, eax
mov dword [esp + 0x1c], ecx
mov edi, dword [esp + 0x10]
add edx, 1
cmp edx, dword [ebx + 0x168]
jl 0x40d8f0
mov eax, dword [esp + 0x14]
and edi, 0xfffffff8
sub edi, 8
mov dword [esp + 0x10], edi
jns 0x40d975
mov dword [esp + 0x10], 0
and eax, 0xfffffff8
sub eax, 8
mov edi, eax
jns 0x40d981
xor edi, edi
lea eax, [esi + 7]
add ecx, 7
and eax, 0xfffffff8
add eax, 8
and ecx, 0xfffffff8
add ecx, 8
mov edx, eax
sub edx, dword [esp + 0x10]
mov esi, ecx
sub esi, edi
test edx, edx
je 0x40db5b
xor edx, edx
cmp esi, edx
je 0x40db5b
mov esi, dword [esp + 0x10]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebx + 0x1c8]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x1cc]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x60], eax
call fcn.00455146
xor edi, edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x1c], vtable.CGdiObject.0
mov dword [esp + 0x20], edi
mov byte [esp + 0x70], 1
mov dword [esp + 0x1c], vtable.CBitmap.0
mov byte [esp + 0x70], 2
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x34], edx
push ecx
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
lea esi, [ebx + 0x1b8]
cmp esi, edi
jne 0x40da54
xor eax, eax
jmp 0x40da57
jmp fcn.004547dc
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x48]
call fcn.004557b5
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
push edi
push 0x20
push 1
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
lea ecx, [esp + 0x20]
call fcn.00455a7c
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
push eax
push ecx
call fcn.00455b22
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
mov edi, eax
mov eax, dword [esp + 0x30]
sub eax, edx
test esi, esi
je 0x40dab9
mov esi, dword [esi + 4]
push 0xcc0020
push edx
mov edx, dword [esp + 0x2c]
push edx
push esi
push eax
mov eax, dword [esp + 0x5c]
push ecx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [ebx + 0x20]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edx, dword [esp + 0x20]
push edx
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
test edi, edi
je 0x40db00
mov edi, dword [edi + 4]
mov eax, dword [esp + 0x48]
push edi
push eax
call fcn.00455b22
lea ecx, [esp + 0x1c]
call fcn.00455acf
lea ecx, [esp + 0x44]
call fcn.00455819
mov byte [esp + 0x70], 0
mov dword [esp + 0x1c], vtable.CBitmap.0
mov byte [esp + 0x70], 0
lea ecx, [esp + 0x1c]
call fcn.004013a0
mov dword [esp + 0x70], 0xffffffff
lea ecx, [esp + 0x44]
call fcn.0045582f
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x20]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret