Function at 0x4a5180
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x52bffb
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebp
xor ebp, ebp
push ebp
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4a51b6
pop ebp
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret
push 8
call dword [sym.imp.USER32.dll_GetClipboardData]
cmp eax, ebp
mov dword [esp + 0x38], eax
jne 0x4a51de
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
mov ax, word [ebx + 0xe]
cmp ax, 8
jbe 0x4a51f8
xor edx, edx
jmp 0x4a5201
mov edx, 1
mov cl, al
shl edx, cl
and eax, 0xffff
mov esi, dword [ebx]
imul eax, dword [ebx + 4]
add eax, 0x1f
lea ecx, [edx*4]
sar eax, 3
and al, 0xfc
add esi, ecx
imul eax, dword [ebx + 8]
mov edi, eax
push 0x18
mov dword [esp + 0x3c], esi
mov dword [esp + 0x44], edi
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x3c], eax
cmp eax, ebp
mov dword [esp + 0x50], ebp
je 0x4a5250
mov ecx, eax
call fcn.00492a20
mov ebp, eax
mov dword [esp + 0x10], ebp
jmp 0x4a5254
mov dword [esp + 0x10], ebp
push esi
mov dword [esp + 0x54], 0xffffffff
call sub.MFC42.DLL_operatornew
push edi
mov dword [ebp + 4], eax
call sub.MFC42.DLL_operatornew
mov edi, dword [ebp + 4]
mov dword [ebp + 8], eax
mov eax, 1
mov ecx, esi
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], eax
mov eax, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 8
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x38]
mov eax, dword [ebx + 0x10]
cmp eax, 3
lea esi, [ecx + ebx]
mov dword [esp + 0x34], esi
jne 0x4a54cd
mov edx, dword [ebp + 4]
test edx, edx
je 0x4a54cd
xor ecx, ecx
mov cx, word [edx + 0xe]
cmp ecx, 0x10
jne 0x4a54cd
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 8]
mov edi, dword [esi]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x40], eax
mov eax, dword [esi + 4]
xor ecx, ecx
xor edx, edx
mov dx, word [ebx + 0xe]
xor ebp, ebp
cmp edi, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], ecx
je 0x4a53ca
cmp eax, ecx
je 0x4a53ca
cmp dword [esp + 0x24], ecx
je 0x4a53ca
or ebp, 0xffffffff
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ebp
mov ebx, ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov eax, 1
shl eax, cl
test edi, eax
je 0x4a5355
mov esi, dword [esp + 0x18]
inc esi
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x14]
cmp esi, 0xffffffff
jne 0x4a5355
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0x38]
test esi, eax
je 0x4a536d
mov esi, dword [esp + 0x1c]
inc esi
cmp ebx, 0xffffffff
mov dword [esp + 0x1c], esi
jne 0x4a536d
mov ebx, ecx
mov esi, dword [esp + 0x24]
test esi, eax
je 0x4a5385
mov esi, dword [esp + 0x20]
inc esi
cmp ebp, 0xffffffff
mov dword [esp + 0x20], esi
jne 0x4a5385
mov ebp, ecx
inc ecx
cmp ecx, 0x20
jl 0x4a5334
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, 8
sub eax, esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], ebp
mov eax, 8
mov ebp, 8
sub eax, ecx
sub ebp, edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], eax
xor ecx, ecx
cmp edx, 0x10
jne 0x4a54a3
mov edx, dword [esp + 0x28]
lea eax, [edx + 1]
cdq
sub eax, edx
mov edx, dword [esp + 0x3c]
sar eax, 1
shl eax, 1
cmp edx, ecx
jle 0x4a54a3
mov edi, dword [esp + 0x40]
add eax, eax
add esi, 0xc
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x28]
test ecx, ecx
jle 0x4a5480
mov dword [esp + 0x24], ecx
mov ax, word [esi]
mov cx, word [esp + 0x14]
mov edx, eax
mov ebx, eax
shr dx, cl
mov ecx, ebp
add esi, 2
add edi, 2
shl dl, cl
mov cx, word [esp + 0x2c]
shr bx, cl
mov ecx, dword [esp + 0x1c]
movzx dx, dl
shl bl, cl
xor cx, cx
and edx, 0xfff8
shl edx, 5
mov cl, bl
and ecx, 0xfff8
or edx, ecx
mov cx, word [esp + 0x30]
shr ax, cl
mov ecx, dword [esp + 0x20]
shl edx, 2
shl al, cl
shr al, 3
movzx ax, al
or edx, eax
mov eax, dword [esp + 0x24]
mov word [edi - 2], dx
dec eax
mov dword [esp + 0x24], eax
jne 0x4a5412
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
add esi, eax
add edi, eax
dec ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ecx
jne 0x4a5406
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x48]
pop edi
pop esi
mov eax, ebp
pop ebx
pop ebp
mov dword fs:[0], ecx
add esp, 0x44
ret
mov ecx, dword [ebp + 4]
cmp word [ecx + 0xe], 0x20
jne 0x4a5579
cmp eax, 3
jne 0x4a54e3
add esi, 0xc
mov word [ecx + 0xe], 0x18
mov ecx, dword [ebp + 4]
xor ebx, ebx
mov dword [ecx + 0x10], ebx
mov edi, dword [ebp + 4]
test edi, edi
je 0x4a5502
mov eax, dword [edi + 8]
cdq
xor eax, edx
sub eax, edx
jmp 0x4a5504
xor eax, eax
cmp ebx, eax
jge 0x4a54a7
test edi, edi
je 0x4a5516
mov eax, dword [edi + 4]
cdq
xor eax, edx
sub eax, edx
jmp 0x4a5518
xor eax, eax
imul eax, ebx
test edi, edi
lea edx, [esi + eax*4]
mov dword [esp + 0x40], edx
je 0x4a5530
mov eax, dword [edi + 4]
cdq
xor eax, edx
sub eax, edx
jmp 0x4a5532
xor eax, eax
test edi, edi
je 0x4a553e
xor ecx, ecx
mov cx, word [edi + 0xe]
jmp 0x4a5540
xor ecx, ecx
imul ecx, eax
add ecx, 0x1f
mov edx, dword [ebp + 8]
sar ecx, 3
and ecx, 0xfffffffc
imul ecx, ebx
add ecx, edx
test edi, edi
je 0x4a5562
mov eax, dword [edi + 4]
cdq
xor eax, edx
sub eax, edx
jmp 0x4a5564
xor eax, eax
push eax
mov eax, dword [esp + 0x44]
push ecx
push eax
call fcn.004a0910
add esp, 0xc
inc ebx
jmp 0x4a54f1
mov ecx, dword [esp + 0x40]
mov edi, dword [ebp + 8]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4a54a7