Function at 0x485600
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.004057c0
test eax, eax
jne 0x485680
mov eax, dword [0x4e59a0]
xor ecx, ecx
mov eax, dword [eax + 0x34]
cmp eax, 8
jne 0x485655
mov eax, dword [0x4eb750]
test eax, eax
je 0x485634
mov ecx, eax
push 0
push 9
push ecx
push 0x4d1e48
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4eb110
call fcn.0042fef0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x485634
cmp dword [0x4eb784], ecx
jne 0x485634
push eax
push 0x4d1e48
push 9
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4eb110
call fcn.00430430
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 0x485706
mov ecx, dword [ebx]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x485706
mov edi, esi
add esi, 4
cmp esi, eax
ja 0x485706
mov edi, dword [edi]
mov ebx, esi
add esi, edi
cmp esi, eax
ja 0x485706
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 0x485804
test edi, edi
je 0x4856f0
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x485755
push edi
push ebx
push eax
call fcn.0049ef90
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 0x485694
cmp dword [0x4eb10c], 0
je 0x485748
cmp dword [0x4eb0fc], 0
je 0x48572e
push dword [0x4eb0f4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4eb0fc], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4eb10c], 0
mov dword [0x4eb0f4], 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 [0x4eb10c], 0
je 0x48579e
cmp dword [0x4eb0fc], 0
je 0x485784
push dword [0x4eb0f4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4eb0fc], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4eb10c], 0
mov dword [0x4eb0f4], 0
mov eax, dword [0x4e59a0]
xor ecx, ecx
mov eax, dword [eax + 0x34]
cmp eax, 8
jne 0x4857d9
mov eax, dword [0x4eb750]
test eax, eax
je 0x4857b8
mov ecx, eax
push 0
push 9
push ecx
push 0x4d1e48
push str.An_internal_function_call_failed.
mov ecx, 0x4eb110
call fcn.0042fef0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x4857b8
cmp dword [0x4eb784], ecx
jne 0x4857b8
push eax
push 0x4d1e48
push 9
push str.An_internal_function_call_failed.
mov ecx, 0x4eb110
call fcn.00430430
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x4eb10c], 0
je 0x485846
cmp dword [0x4eb0fc], 0
je 0x48582c
push dword [0x4eb0f4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4eb0fc], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4eb10c], 0
mov dword [0x4eb0f4], 0
push dword [0x4eb038]
mov ecx, 0x4eb110
push 0
push 0
push 0
push str.Out_of_memory.
call fcn.004303b0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret