Function at 0x4f6201
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [0x5e8c40]
mov dword [ebp - 8], 0
jmp 0x4f6233
mov eax, dword [ebp + 0x10]
cmp dword [edi + 0x28], eax
jne 0x4f6230
cmp byte [edi + 0x504], 0
je 0x4f6230
inc dword [ebp - 8]
mov edi, dword [edi + 0x20]
test edi, edi
jne 0x4f621c
cmp dword [ebp - 8], edi
je 0x4f6252
imul eax, dword [ebp - 8], reloc.gdi32.dll_AbortDoc
push eax
push 0x42
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
cmp eax, edi
jne 0x4f6259
mov al, 0
jmp 0x4f63e5
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x10]
call sub.user32.dll_GetClientRect
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalWire
mov edi, dword [0x5e8c40]
mov dword [ebp - 0xc], 0
mov ebx, eax
jmp 0x4f63a5
mov eax, dword [ebp + 0x10]
cmp dword [edi + 0x28], eax
jne 0x4f63a2
cmp byte [edi + 0x504], 0
je 0x4f63a2
imul eax, dword [ebp - 0xc], reloc.gdi32.dll_AbortDoc
mov dword [ebp - 4], eax
push edi
add eax, ebx
push eax
mov eax, 0x508
call fcn.0056cfd2
push dword [ebp + 0xc]
push dword [esi + 0x50]
push dword [esi + 0x58]
push dword [esi + 0x5c]
push dword [esi + 0x54]
lea eax, [ebp - 0x24]
push eax
sub eax, 4
push eax
mov eax, dword [ebp - 4]
push dword [ebx + eax + 4]
push dword [ebx + eax]
push dword [ebx + eax + 0xc]
push dword [ebx + eax + 8]
call fcn.004f5873
push dword [ebp + 0xc]
push dword [esi + 0x50]
push dword [esi + 0x58]
push dword [esi + 0x5c]
push dword [esi + 0x54]
lea eax, [ebp - 0x2c]
push eax
sub eax, 4
push eax
mov eax, dword [ebp - 4]
push dword [ebx + eax + 0x14]
push dword [ebx + eax + 0x10]
push dword [ebx + eax + 0x1c]
push dword [ebx + eax + 0x18]
call fcn.004f5873
xor edx, edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + reloc.gdi32.dll_AbortDoc]
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + reloc.gdi32.dll_AbortDoc]
mov dword [ebp - 0x38], eax
mov dword [ecx + reloc.gdi32.dll_AbortDoc], edx
mov dword [ecx + reloc.gdi32.dll_AbortDoc], edx
mov eax, dword [ebp - 4]
push ecx
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x28]
add eax, ebx
push eax
mov eax, dword [ebp - 4]
lea eax, [ebx + eax + 8]
push eax
call fcn.004f57a1
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
lea eax, [ebx + eax + 0x10]
push eax
mov eax, dword [ebp - 4]
lea eax, [ebx + eax + 0x18]
push eax
call fcn.004f57a1
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x34]
mov dword [ecx + reloc.gdi32.dll_AbortDoc], eax
mov eax, dword [ebp - 0x38]
mov dword [ecx + reloc.gdi32.dll_AbortDoc], eax
mov eax, dword [ebp - 0xc]
inc eax
cmp eax, dword [ebp - 8]
mov eax, dword [ebp - 4]
jne 0x4f6397
mov byte [ebx + eax + 0x504], 1
jmp 0x4f639f
mov byte [ebx + eax + 0x504], 0
inc dword [ebp - 0xc]
mov edi, dword [edi + 0x20]
test edi, edi
jne 0x4f6281
push dword [0x5cbb00]
call sub.user32.dll_OpenClipboard
test eax, eax
push dword [ebp - 0x10]
je 0x4f63de
call sub.kernel32.dll_GlobalUnlock
call sub.user32.dll_EmptyClipboard
push dword [ebp - 0x10]
push dword [0x5cb020]
call sub.user32.dll_SetClipboardData
call sub.user32.dll_CloseClipboard
jmp 0x4f63e3
call sub.kernel32.dll_GlobalFree
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0xc