Function at 0x484ca0
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.00406d70
test eax, eax
jne 0x484d2d
cmp byte [0x4e9f15], al
je 0x484ccc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4e47f8]
cmp dword [eax + 0x34], 0
jne 0x484d0b
cmp dword [0x4ea5ac], 0
jne 0x484d0b
cmp byte [0x4e9ec6], 0
jne 0x484d0b
push 0
push 0
push 0x4ceea8
push 9
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4e9f30
call fcn.0040d480
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 9
push 0
push 0x4ceea8
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4e9f30
call fcn.0040c290
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 0x484db3
mov ecx, dword [ebx]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x484db3
mov edi, esi
add esi, 4
cmp esi, eax
ja 0x484db3
mov edi, dword [edi]
mov ebx, esi
add esi, edi
cmp esi, eax
ja 0x484db3
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 0x484eb9
test edi, edi
je 0x484d9d
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x484e02
push edi
push ebx
push eax
call fcn.0049cb00
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 0x484d41
cmp dword [0x4ea678], 0
je 0x484df5
cmp dword [0x4ea668], 0
je 0x484ddb
push dword [0x4ea660]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4ea668], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4ea678], 0
mov dword [0x4ea660], 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 [0x4ea678], 0
je 0x484e4b
cmp dword [0x4ea668], 0
je 0x484e31
push dword [0x4ea660]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4ea668], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4ea678], 0
mov dword [0x4ea660], 0
cmp byte [0x4e9f15], 0
jne 0x484cc2
mov eax, dword [0x4e47f8]
cmp dword [eax + 0x34], 0
jne 0x484e97
cmp dword [0x4ea5ac], 0
jne 0x484e97
cmp byte [0x4e9ec6], 0
jne 0x484e97
push 0
push 0
push 0x4ceea8
push 9
push str.An_internal_function_call_failed.
mov ecx, 0x4e9f30
call fcn.0040d480
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 9
push 0
push 0x4ceea8
push str.An_internal_function_call_failed.
mov ecx, 0x4e9f30
call fcn.0040c290
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x4ea678], 0
je 0x484efb
cmp dword [0x4ea668], 0
je 0x484ee1
push dword [0x4ea660]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4ea668], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4ea678], 0
mov dword [0x4ea660], 0
push dword [0x4e9dfc]
mov ecx, 0x4e9f30
push 0
push 0
push 0
push str.Out_of_memory.
call fcn.0040c840
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret