Function at 0x4f1950
Capabilities:
Write clipboard data

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [0x685c58]
mov ecx, dword [edi + 8]
mov edx, dword [edi]
xor ebp, ebp
cmp eax, ebp
jne 0x4f196e
mov eax, dword [0x691168]
push ebp
push ebp
push ecx
push edx
push eax
xor esi, esi
call fcn.0053af10
mov ecx, dword [edi + 8]
mov ebx, eax
mov eax, dword [edi]
add esp, 0x14
test ebx, ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
je 0x4f19c8
lea edx, [ebx + ebx]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
mov dword [esp + 0x34], esi
je 0x4f19c8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4f19d2
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
mov ecx, dword [edi + 8]
mov edx, dword [edi]
push 0
lea eax, [esp + 0x1c]
push eax
push ecx
push edx
mov ecx, ebx
mov eax, 9
call fcn.0053afc0
mov ecx, dword [0x691168]
add esp, 0x10
cmp ecx, 0x87
jge 0x4f1a0c
mov eax, dword [ecx*8 + 0x685c10]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x4f1a12
mov dword [esp + 0x14], ecx
mov eax, ecx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0
push ebx
push edx
push 0x400
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
test esi, esi
je 0x4f1a4f
cmp dword [esp + 0x2c], ebp
jne 0x4f1a4f
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x10], eax
mov ebp, ebx
jmp 0x4f1abf
mov eax, dword [edi + 4]
test eax, eax
mov dword [esp + 0x1c], ebp
je 0x4f1abb
mov edx, dword [edi + 0xc]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
xor ecx, ecx
push eax
lea eax, [ecx + 9]
call fcn.0053afc0
mov ebp, eax
mov eax, dword [esp + 0x20]
add esp, 0x10
test eax, eax
je 0x4f1abb
push 0
push 0
push 0
push 0
push ebp
push eax
mov eax, dword [esp + 0x2c]
push 0
push eax
mov dword [esp + 0x48], 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 0xc]
mov esi, eax
xor eax, eax
test esi, esi
setne al
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x4f1abf
mov esi, dword [esp + 0x20]
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4f1b1e
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x4f1b15
cmp dword [esp + 0x1c], 0
je 0x4f1b00
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0
push 0
push esi
push ebx
push ebp
push eax
push 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x4f1b22
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push edx
push eax
push ebx
call fcn.005dffd0
add esp, 0xc
jmp 0x4f1b22
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4f1b22
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call ebp
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, eax
neg esi
sbb esi, esi
neg esi
test ebx, ebx
je 0x4f1b50
push edi
call ebp
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
cmp dword [esp + 0x28], 0
je 0x4f1b64
mov ecx, dword [esp + 0x10]
push ecx
call fcn.005ce619
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret