Function at 0x4c2150
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
sub esp, 0x4c
mov eax, dword [0x4db00c]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4c2450
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esp + 0x70]
inc eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x4c244a
cmp dword [esp + 0x74], 0x10
lea ecx, [esp + 0x60]
mov eax, dword [esp + 0x70]
cmovae ecx, dword [esp + 0x60]
inc eax
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov byte [esp + 0x14], 0x3f
mov cl, 0x6a
xor cl, byte [esp + 0x14]
mov al, 0x72
xor al, byte [esp + 0x14]
mov ch, 0x73
mov byte [esp + 0x15], al
mov dl, 0xe
mov byte [esp + 0x16], cl
mov dh, 0x5e
mov cl, byte [esp + 0x14]
mov bl, 0x52
mov byte [esp + 0x22], 0x71
xor dl, cl
mov al, byte [esp + 0x22]
xor ch, cl
xor al, cl
mov byte [esp + 0x23], 7
xor dh, cl
mov byte [esp + 0x1d], al
mov al, byte [esp + 0x23]
mov ah, 0x7b
mov bh, 0x74
mov byte [esp + 0x1a], ch
xor bl, cl
mov byte [esp + 0x1f], 0
xor ah, cl
mov byte [esp + 0x17], dl
xor bh, cl
mov byte [esp + 0x1b], dh
xor al, cl
mov byte [esp + 0x18], bl
xorps xmm0, xmm0
mov byte [esp + 0x19], ah
lea ecx, [esp + 0x15]
mov byte [esp + 0x1c], bh
mov byte [esp + 0x1e], al
lea edx, [ecx + 1]
mov byte [esp + 0x1f], 0
movups xmmword [esp + 0x3c], xmm0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c2250
sub ecx, edx
lea eax, [esp + 0x15]
push ecx
push eax
lea ecx, [esp + 0x44]
call fcn.004b8710
mov bh, 0x61
mov byte [esp + 0x1c], 0
mov cl, 0x59
mov byte [esp + 0x14], bh
mov ch, 0x29
mov byte [esp + 0x1c], 0
mov dl, 0x17
mov dword [esp + 0x34], 0
xor cl, bh
mov dword [esp + 0x38], 0
xor ch, bh
mov byte [esp + 0x16], cl
mov al, 0xd
mov byte [esp + 0x1a], ch
mov bl, 0x32
lea ecx, [esp + 0x15]
mov ah, 0x20
mov dh, 0x25
xor dl, bh
xor al, bh
xor bl, bh
mov byte [esp + 0x17], dl
xor ah, bh
mov byte [esp + 0x15], al
xor dh, bh
mov byte [esp + 0x18], bl
xorps xmm0, xmm0
mov byte [esp + 0x1b], dh
mov byte [esp + 0x19], ah
lea edx, [ecx + 1]
movups xmmword [esp + 0x24], xmm0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c22d0
sub ecx, edx
lea eax, [esp + 0x15]
push ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.004b8710
mov dh, 0x7a
mov byte [esp + 0x1b], 0
mov dl, 0x3e
mov byte [esp + 0x14], dh
mov cl, 0x31
mov byte [esp + 0x1b], 0
xor cl, dh
xor dl, dh
mov al, 0x28
mov byte [esp + 0x17], dl
mov bl, 0x43
mov byte [esp + 0x16], cl
mov ah, 0x49
mov ch, 0x12
xor al, dh
xor bl, dh
xor ah, dh
mov byte [esp + 0x15], al
xor ch, dh
mov byte [esp + 0x18], bl
lea edx, [esp + 0x15]
mov byte [esp + 0x1a], ch
mov byte [esp + 0x19], ah
lea ecx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x4c2330
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x15]
mov esi, dword [esp + 0x24]
sub edx, ecx
push edx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x28]
cmp edi, 0x10
push eax
cmovae ecx, esi
call fcn.004b8da0
add esp, 8
test al, al
je 0x4c23d8
mov byte [esp + 0x14], 0x39
mov al, 0x7c
xor al, byte [esp + 0x14]
mov dl, 0x4b
xor ch, ch
mov byte [esp + 0x15], al
mov al, byte [esp + 0x14]
mov cl, 0x72
mov ah, dl
mov byte [esp + 0x1d], 0
xor cl, al
xor ch, al
mov dh, 0x68
mov byte [esp + 0x16], cl
mov bl, 0x6b
mov byte [esp + 0x1a], ch
xor dl, al
lea ecx, [esp + 0x15]
xor dh, al
mov byte [esp + 0x17], dl
mov bh, 0x71
mov byte [esp + 0x1b], dh
xor bl, al
lea edx, [ecx + 1]
xor ah, al
mov byte [esp + 0x18], bl
xor bh, al
mov byte [esp + 0x19], ah
mov byte [esp + 0x1c], bh
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c23b8
sub ecx, edx
lea eax, [esp + 0x15]
push ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.004b7cc0
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x24]
cmp edi, 0x10
jb 0x4c2404
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x4c23fa
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c2478
push ecx
push esi
call fcn.004cb06d
add esp, 8
mov ecx, dword [esp + 0x50]
cmp ecx, 0x10
jb 0x4c2436
mov edx, dword [esp + 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4c242c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c2478
push ecx
push edx
call fcn.004cb06d
add esp, 8
push ebp
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push 0x4b0d44
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x74]
cmp ecx, 0x10
jb 0x4c2488
mov edx, dword [esp + 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4c247e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4c247e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004cb06d
add esp, 8
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004cadd9
add esp, 0x4c
ret