Function at 0x47dbb0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, edx
mov ebx, ecx
call fcn.004051a0
test eax, eax
jne 0x47dc30
mov eax, dword [0x4d78c8]
xor ecx, ecx
mov eax, dword [eax + 0x34]
cmp eax, 8
jne 0x47dc05
mov eax, dword [0x4dd3ac]
test eax, eax
je 0x47dbe4
mov ecx, eax
push 9
push ecx
push 0x4b431c
push 0
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4dcd68
call fcn.004287a0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x47dbe4
cmp dword [0x4dd3e0], ecx
jne 0x47dbe4
push eax
push 0x4b431c
push 9
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4dcd68
call fcn.00428bd0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [ebx + esi]
lea esi, [ebx + 4]
mov dword [esp + 0x14], eax
cmp esi, eax
ja 0x47dcb6
mov ecx, dword [ebx]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x47dcb6
mov edi, esi
add esi, 4
cmp esi, eax
ja 0x47dcb6
mov edi, dword [edi]
mov ebx, esi
add esi, edi
cmp esi, eax
ja 0x47dcb6
xor eax, eax
test edi, edi
sete al
add eax, edi
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x47ddb4
test edi, edi
je 0x47dca0
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x47dd05
push edi
push ebx
push eax
call fcn.00497340
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, esi
push ebp
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetClipboardData]
mov eax, dword [esp + 0x14]
lea esi, [ebx + 4]
cmp esi, eax
jbe 0x47dc44
cmp dword [0x4dcd64], 0
je 0x47dcf8
cmp dword [0x4dcd54], 0
je 0x47dcde
push dword [0x4dcd4c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4dcd54], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4dcd64], 0
mov dword [0x4dcd4c], 0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x4dcd64], 0
je 0x47dd4e
cmp dword [0x4dcd54], 0
je 0x47dd34
push dword [0x4dcd4c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4dcd54], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4dcd64], 0
mov dword [0x4dcd4c], 0
mov eax, dword [0x4d78c8]
xor ecx, ecx
mov eax, dword [eax + 0x34]
cmp eax, 8
jne 0x47dd89
mov eax, dword [0x4dd3ac]
test eax, eax
je 0x47dd68
mov ecx, eax
push 9
push ecx
push 0x4b431c
push 0
push str.An_internal_function_call_failed.
mov ecx, 0x4dcd68
call fcn.004287a0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x47dd68
cmp dword [0x4dd3e0], ecx
jne 0x47dd68
push eax
push 0x4b431c
push 9
push str.An_internal_function_call_failed.
mov ecx, 0x4dcd68
call fcn.00428bd0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x4dcd64], 0
je 0x47ddf6
cmp dword [0x4dcd54], 0
je 0x47dddc
push dword [0x4dcd4c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4dcd54], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4dcd64], 0
mov dword [0x4dcd4c], 0
mov eax, dword [0x4d78c8]
xor ecx, ecx
mov eax, dword [eax + 0x34]
cmp eax, 8
jne 0x47de31
mov eax, dword [0x4dd3ac]
test eax, eax
je 0x47de10
mov ecx, eax
push 9
push ecx
push 0x4b431c
push 0
push str.Out_of_memory.
mov ecx, 0x4dcd68
call fcn.004287a0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x47de10
cmp dword [0x4dd3e0], ecx
jne 0x47de10
push eax
push 0x4b431c
push 9
push str.Out_of_memory.
mov ecx, 0x4dcd68
call fcn.00428bd0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret