Function at 0x3005f943
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowLongA]
push 4
push dword [ebp + 8]
call esi
test eax, eax
mov dword [ebp - 0x10], eax
je 0x3005fc50
push 0
push dword [ebp + 8]
call esi
test eax, eax
mov dword [ebp - 8], eax
je 0x3005fc50
push 0x10
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 4], eax
call fcn.30067a6d
test eax, eax
jne 0x3005fc50
push ebx
push edi
push 1
call fcn.30047fcd
push dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalLock]
call ebx
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 8]
sub ecx, dword [esi]
mov edi, dword [esi + 0xc]
sub edi, dword [esi + 4]
cmp ecx, 0x240
mov dword [ebp - 0xc], eax
jle 0x3005f9cd
test ecx, ecx
je 0x3005f9cd
mov eax, 0x8ca00
cdq
idiv ecx
mov dword [ebp + 0xc], eax
jmp 0x3005f9d1
and dword [ebp + 0xc], 0
mov eax, dword [0x30096348]
test eax, eax
je 0x3005f9e3
push dword [ebp + 0xc]
push eax
call fcn.30067de7
cmp edi, 0x360
jle 0x3005f9f9
test edi, edi
je 0x3005f9f9
mov eax, 0xd2f00
cdq
idiv edi
jmp 0x3005f9fb
xor eax, eax
test eax, eax
je 0x3005fa0d
cmp dword [ebp + 0xc], 0
je 0x3005fa0a
cmp eax, dword [ebp + 0xc]
jge 0x3005fa0d
mov dword [ebp + 0xc], eax
push dword [ebp - 8]
call ebx
mov edi, eax
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x3005fa37
cmp dword [ebp + 0xc], 0
je 0x3005fa34
mov eax, ebx
imul eax, dword [ebp + 0xc]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp + 0xc], eax
jmp 0x3005fa37
mov dword [ebp + 0xc], ebx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
push eax
push dword [ebp + 8]
mov edx, esi
mov dword [edi + 8], eax
call fcn.3005f3ea
push dword [ebp - 8]
mov dword [ebp + 0xc], eax
mov dword [edi + 8], ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
mov dword [ecx], 8
mov eax, dword [esi + 8]
sub eax, dword [esi]
mov edi, 0x90
imul eax, eax, 0x9ec
cdq
idiv edi
mov dword [ecx + 4], eax
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
imul eax, eax, 0x9ec
cdq
idiv edi
xor edi, edi
cmp ebx, edi
mov dword [ecx + 8], eax
je 0x3005fab8
mov eax, dword [ecx + 4]
imul eax, ebx
cdq
mov edi, 0x3e8
idiv edi
mov dword [ecx + 4], eax
mov eax, dword [ecx + 8]
imul eax, ebx
cdq
idiv edi
xor edi, edi
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0xc]
push dword [ebp - 4]
mov dword [ecx + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [0x30096348]
cmp eax, edi
je 0x3005fad7
push ebx
push eax
call fcn.30067de7
lea eax, [ebp - 8]
push eax
push esi
mov esi, dword [ebp - 0xc]
push edi
push esi
push dword [ebp + 8]
call fcn.3005f62f
cmp eax, edi
mov dword [ebp - 0x14], eax
jne 0x3005fc12
mov eax, dword [0x30096350]
cmp eax, edi
je 0x3005fc12
push eax
push dword [0x30096348]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, eax
lea eax, [ebp - 0x2c]
push eax
push 0x18
push ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
push dword [0x300967d0]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x3005fc12
call dword [sym.imp.USER32.dll_EmptyClipboard]
cmp dword [ebp + 0xc], edi
je 0x3005fb51
push dword [ebp - 4]
push 3
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x3005fb51
mov dword [ebp + 0xc], edi
mov dword [ebp - 4], edi
push ebx
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x3005fc0c
push dword [0x30096348]
mov dword [ebp - 8], 1
mov dword [0x3009634c], edi
mov dword [0x30096350], edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [0x30096348], edi
cmp dword [esi + 0x1de], edi
je 0x3005fc0c
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, dword [sym.imp.GDI32.dll_SelectPalette]
push edi
push dword [esi + 0x1e6]
mov dword [ebp - 0xc], eax
push eax
call ebx
push dword [esi + 0x1de]
push 9
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
push edi
je 0x3005fbf5
push 0xffffffffffffffff
push 0x6c
push esi
push dword [ebp + 8]
mov dword [esi + 0x1de], edi
mov dword [esi + 0x1e6], edi
call fcn.3003305e
push edi
push 0xffffffffffffffff
push 0x6a
push esi
push dword [ebp + 8]
call fcn.3003305e
push edi
push 0xffffffffffffffff
push 0x6e
push esi
push dword [ebp + 8]
call fcn.3003305e
jmp 0x3005fc00
push dword [esi + 0x1de]
push dword [ebp - 0xc]
call ebx
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ReleaseDC]
call dword [sym.imp.USER32.dll_CloseClipboard]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp + 0xc], edi
je 0x3005fc29
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_DeleteMetaFile]
cmp dword [ebp - 4], edi
je 0x3005fc37
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 8], edi
je 0x3005fc41
call fcn.30056356
cmp dword [ebp - 0x14], edi
pop edi
pop ebx
je 0x3005fc50
push dword [ebp - 0x14]
call fcn.30050c7b
pop esi
leave
ret 8