Function at 0x4c02a0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
sub esp, 0x4c
mov eax, dword [0x4d900c]
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 0x4c05f5
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 0x4c05ef
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], 0x10
mov al, 0x4a
xor al, byte [esp + 0x14]
mov cl, 0x71
mov byte [esp + 0x15], al
mov dl, 0x7e
mov al, byte [esp + 0x14]
mov ch, 0x5a
mov dh, 0x49
mov byte [esp + 0x23], 0x59
xor cl, al
mov byte [esp + 0x1e], 0
xor dl, al
mov byte [esp + 0x16], cl
xor ch, al
mov byte [esp + 0x17], dl
xor dh, al
mov byte [esp + 0x1a], ch
mov bl, 0x75
mov byte [esp + 0x1b], dh
mov ah, 0x6a
mov byte [esp + 0x1e], 0
mov bh, 0x7c
mov dword [esp + 0x4c], 0
xor bl, al
mov dword [esp + 0x50], 0
xor ah, al
mov byte [esp + 0x18], bl
xor bh, al
mov byte [esp + 0x19], ah
mov al, byte [esp + 0x23]
lea ecx, [esp + 0x15]
xor al, byte [esp + 0x14]
lea edx, [ecx + 1]
xorps xmm0, xmm0
mov byte [esp + 0x1c], bh
mov byte [esp + 0x1d], al
movups xmmword [esp + 0x3c], xmm0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c0391
sub ecx, edx
lea eax, [esp + 0x15]
push ecx
push eax
lea ecx, [esp + 0x44]
call fcn.004b7120
mov bh, 0x77
mov byte [esp + 0x1c], 0
mov ah, 0x1f
mov byte [esp + 0x14], bh
mov ch, ah
mov byte [esp + 0x1c], 0
mov cl, 0x2d
mov dword [esp + 0x34], 0
mov dl, 0x38
mov dword [esp + 0x38], 0
xor cl, bh
xor ch, bh
mov al, 0x3d
mov byte [esp + 0x16], cl
mov bl, 0x22
mov byte [esp + 0x1a], ch
mov dh, 0xf
lea ecx, [esp + 0x15]
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
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c0410
sub ecx, edx
lea eax, [esp + 0x15]
push ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.004b7120
mov byte [esp + 0x14], 0xa
mov al, 0x65
xor al, byte [esp + 0x14]
mov dl, 0x68
mov byte [esp + 0x15], al
mov ah, 0x79
mov al, byte [esp + 0x14]
mov bl, dl
xor ah, al
mov byte [esp + 0x1d], 0
mov cl, 0x3c
mov byte [esp + 0x19], ah
mov ch, 0x53
mov byte [esp + 0x1d], 0
mov dh, 0x42
xor cl, al
xor ch, al
mov byte [esp + 0x16], cl
mov bh, 0x43
mov byte [esp + 0x1a], ch
xor dl, al
lea ecx, [esp + 0x24]
xor bl, al
mov byte [esp + 0x17], dl
xor dh, al
mov byte [esp + 0x18], bl
xor bh, al
mov byte [esp + 0x1b], dh
lea eax, [esp + 0x15]
mov byte [esp + 0x1c], bh
push eax
call fcn.004b5e20
mov dh, 0x29
mov byte [esp + 0x1b], 0
mov dl, 0x71
mov byte [esp + 0x14], dh
mov cl, 0x68
mov byte [esp + 0x1b], 0
xor cl, dh
xor dl, dh
mov al, 0x10
mov byte [esp + 0x17], dl
mov bl, 0x65
mov byte [esp + 0x16], cl
mov ah, 0x5d
mov ch, 0x1d
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]
mov al, byte [edx]
inc edx
test al, al
jne 0x4c04d2
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.004b77b0
add esp, 8
test al, al
je 0x4c056d
xor al, al
mov byte [esp + 0x14], 0x47
xor al, byte [esp + 0x14]
xor bl, bl
mov byte [esp + 0x15], al
mov ah, 0x10
mov al, byte [esp + 0x14]
mov cl, 0x25
xor ah, al
mov byte [esp + 0x1d], bl
mov dl, 0x1f
mov byte [esp + 0x19], ah
mov ch, 0x15
mov byte [esp + 0x1d], 0
mov dh, 0x7e
xor cl, al
xor ch, al
mov byte [esp + 0x16], cl
mov bh, 0x77
mov byte [esp + 0x1a], ch
xor dl, al
lea ecx, [esp + 0x3c]
xor bl, al
mov byte [esp + 0x17], dl
xor dh, al
mov byte [esp + 0x18], bl
xor bh, al
mov byte [esp + 0x1b], dh
lea eax, [esp + 0x15]
mov byte [esp + 0x1c], bh
push eax
call fcn.004b5e20
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x24]
cmp edi, 0x10
jb 0x4c0599
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x4c058f
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c05d6
push ecx
push esi
call fcn.004c8a1d
add esp, 8
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0xf
mov byte [esp + 0x24], 0
cmp ecx, 0x10
jb 0x4c05e6
mov edx, dword [esp + 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4c05dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4c05dc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004c8a1d
add esp, 8
push ebp
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x74]
cmp ecx, 0x10
jb 0x4c062d
mov edx, dword [esp + 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4c0623
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4c0623
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004c8a1d
add esp, 8
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c8789
add esp, 0x4c
ret