Function at 0x4c2940
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4c2961
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x4c2da0
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x2c], eax
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4c298e
cmp dword [ebp - 0x2c], 0
jne 0x4c298e
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4c2da0
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x238
mov edx, dword [ecx + 0x5a89b0]
movzx eax, byte [edx + 0x17]
cmp eax, 0x86
jne 0x4c29b6
mov dword [ebp - 0x28], 0x3a8
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x238
mov edx, dword [ecx + 0x5a89b0]
movzx eax, byte [edx + 0x17]
cmp eax, 0x88
jne 0x4c29d7
mov dword [ebp - 0x28], 0x3b6
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x238
mov edx, dword [ecx + 0x5a89b0]
movzx eax, byte [edx + 0x17]
cmp eax, 0x81
jne 0x4c29f8
mov dword [ebp - 0x28], 0x3b5
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x238
mov edx, dword [ecx + 0x5a89b0]
movzx eax, byte [edx + 0x17]
cmp eax, 0x80
jne 0x4c2a19
mov dword [ebp - 0x28], 0x3a4
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x28], 0
jne 0x4c2a42
cmp dword [ebp - 0x10], 0
je 0x4c2a42
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
jmp 0x4c2a64
cmp dword [ebp - 0x2c], 0
je 0x4c2a57
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x1c], eax
jmp 0x4c2a64
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
cmp dword [ebp - 0x28], 0
jne 0x4c2a71
mov dword [ebp - 0x28], 0x3a4
cmp dword [ebp - 8], 0
je 0x4c2a88
mov ecx, dword [ebp - 8]
push ecx
call fcn.00504c07
add esp, 4
mov dword [ebp - 4], eax
jmp 0x4c2a99
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00504c07
add esp, 4
shl eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4c2aca
cmp dword [ebp - 8], 0
je 0x4c2aaf
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x1c], 0
je 0x4c2abf
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4c2da0
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x238
add edx, 0x5a878c
push edx
call fcn.00504c07
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x238
cmp eax, dword [ecx + 0x5a8994]
jg 0x4c2d7a
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x238
mov eax, dword [edx + 0x5a898c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x20]
add edx, 1
push edx
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x238
mov ecx, dword [ebp - 0x20]
lea edx, [eax + ecx*2 + 0x5a878c]
push edx
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x238
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 4]
lea edx, [eax + ecx*2 + 0x5a878c]
push edx
call fcn.00507c50
add esp, 0xc
mov dword [ebp - 0x18], 0
cmp dword [ebp - 8], 0
je 0x4c2bb5
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x4c2bb0
mov edx, dword [ebp - 8]
movzx eax, word [edx]
cmp eax, 0x20
jl 0x4c2b9c
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x238
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov ax, word [eax]
mov word [ecx + edx*2 + 0x5a878c], ax
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
jmp 0x4c2ba5
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
jmp 0x4c2b62
jmp 0x4c2c83
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx]
test edx, edx
je 0x4c2c83
push 0
push 0
push 4
lea eax, [ebp - 0xc]
push eax
push 1
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 1
jne 0x4c2c2b
movsx ax, byte [ebp - 0xc]
movzx ecx, ax
cmp ecx, 0x20
jl 0x4c2c19
movsx dx, byte [ebp - 0xc]
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x238
mov ecx, dword [ebp - 0x20]
mov word [eax + ecx*2 + 0x5a878c], dx
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
jmp 0x4c2c22
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x30], 2
jne 0x4c2c75
movsx dx, byte [ebp - 0xc]
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x238
mov ecx, dword [ebp - 0x20]
mov word [eax + ecx*2 + 0x5a878c], dx
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
movsx ax, byte [ebp - 0xb]
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x238
mov edx, dword [ebp - 0x20]
mov word [ecx + edx*2 + 0x5a878c], ax
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 2
mov dword [ebp - 0x1c], ecx
jmp 0x4c2bb5
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x24]
je 0x4c2ce8
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x238
mov dword [eax + 0x5a89a8], 0xffffffff
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x238
mov edx, dword [ecx + 0x5a89a4]
cmp edx, dword [ebp - 0x24]
je 0x4c2cd6
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x238
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x5a89a4], ecx
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x238
xor eax, eax
mov word [edx + 0x5a888c], ax
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x238
mov edx, dword [ebp - 0x20]
mov dword [ecx + 0x5a89a8], edx
cmp dword [ebp - 0x18], 0
je 0x4c2d68
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x238
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x18]
lea edx, [eax + ecx*2 + 0x5a878c]
push edx
call fcn.00504c07
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4c2d52
mov eax, dword [ebp - 4]
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x238
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x18]
lea eax, [ecx + edx*2 + 0x5a878c]
push eax
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x238
mov edx, dword [ebp - 0x20]
lea eax, [ecx + edx*2 + 0x5a878c]
push eax
call fcn.00507c50
add esp, 0xc
jmp 0x4c2d68
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x238
xor edx, edx
mov eax, dword [ebp - 0x20]
mov word [ecx + eax*2 + 0x5a878c], dx
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x238
mov edx, dword [ebp - 0x20]
mov dword [ecx + 0x5a898c], edx
cmp dword [ebp - 8], 0
je 0x4c2d8a
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x1c], 0
je 0x4c2d9a
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov esp, ebp
pop ebp
ret