Function at 0x47cfd4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], ebx
mov edi, eax
lea edx, [ebp - 0x28]
push edx
push 0x18
push dword [edi + 8]
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x47d27a
mov ecx, dword [edi + 0x1b0]
mov edx, dword [edi + 0x1a8]
cmp ecx, edx
jle 0x47d010
sub ecx, edx
jmp 0x47d014
neg ecx
add ecx, edx
mov ebx, dword [edi + 0x1b4]
mov edx, dword [edi + 0x1ac]
add ecx, 1
mov dword [ebp - 0x24], ecx
cmp ebx, edx
jle 0x47d02e
sub ebx, edx
jmp 0x47d032
neg ebx
add ebx, edx
movzx esi, word [ebp - 0x18]
add ebx, 1
mov dword [ebp - 0x20], ebx
movzx ebx, word [ebp - 0x16]
imul ecx, ebx
xor edx, edx
mov eax, 8
idiv esi
mov ebx, eax
mov eax, ecx
cdq
idiv ebx
mov edx, eax
mov eax, edx
and eax, 0x80000003
jge 0x47d063
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
je 0x47d071
sub edx, eax
add edx, 4
mov dword [ebp - 0x1c], edx
jmp 0x47d074
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.GDI32.dll_CreateBitmapIndirect]
mov ebx, eax
test ebx, ebx
je 0x47d261
push dword [edi + 0x1d0]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
je 0x47d241
push 1
push dword [edi + 0x3c]
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.GDI32.dll_RealizePalette]
push ebx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
je 0x47d221
push 0xcc0020
mov edx, dword [edi + 0x1a8]
mov ecx, dword [edi + 0x1b0]
mov eax, dword [edi + 0x1ac]
cmp edx, ecx
jl 0x47d0e1
mov edx, ecx
mov ecx, dword [edi + 0x1b4]
cmp eax, ecx
jl 0x47d0ed
mov eax, ecx
push eax
xor ecx, ecx
push edx
push dword [edi + 0x1d4]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push ecx
push ecx
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x47d201
push dword [edi]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x47d1e4
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x47d1c7
push ebx
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
mov eax, dword [edi + 0x40]
lea edx, [eax*4 + 8]
push edx
call fcn.0048b682
pop ecx
mov ebx, eax
lea eax, [ebx + 4]
push eax
push dword [edi + 0x40]
push 0
push dword [edi + 0x3c]
call dword [sym.imp.GDI32.dll_GetPaletteEntries]
push ebx
mov edx, dword [edi + 0x40]
mov eax, 0x300
mov word [ebx], ax
mov word [ebx + 2], dx
call dword [sym.imp.GDI32.dll_CreatePalette]
mov edi, eax
push ebx
call fcn.0048b5a5
pop ecx
push edi
push 9
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
test eax, eax
je 0x47d199
push 1
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
je 0x47d1b1
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push 0x743
push str.qwgwnd.c
push 5
call fcn.004751b8
add esp, 0xc
jmp 0x47d1a4
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x72c
push str.qwgwnd.c
push 5
call fcn.004751b8
add esp, 0xc
jmp 0x47d188
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x725
push str.qwgwnd.c
push 5
call fcn.004751b8
add esp, 0xc
jmp 0x47d188
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x71d
push str.qwgwnd.c
push 5
call fcn.004751b8
add esp, 0xc
jmp 0x47d188
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x70d
push str.qwgwnd.c
push 5
call fcn.004751b8
add esp, 0xc
jmp 0x47d188
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x702
push str.qwgwnd.c
push 5
call fcn.004751b8
add esp, 0xc
jmp 0x47d1a4
push 0x6fa
push str.qwgwnd.c
push 4
call fcn.004751b8
add esp, 0xc
jmp 0x47d1a4
push 0x6e1
push str.qwgwnd.c
push 5
call fcn.004751b8
add esp, 0xc
jmp 0x47d1a4