Function at 0x4d08e0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
sub esp, 0x14
push ebx
push ebp
xor eax, eax
xor ebx, ebx
xor ebp, ebp
cmp dword [esp + 0x24], 0xe123
push esi
mov esi, dword [esp + 0x24]
sete al
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
push eax
push 1
push esi
call fcn.004cf070
add esp, 0xc
test eax, eax
je 0x4d091c
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
cmp dword [esi + 0x4b48], ebx
je 0x4d0913
push esi
call fcn.004ce860
add esp, 4
test eax, eax
je 0x4d0913
push esi
call fcn.004cbb80
add esp, 4
test eax, eax
je 0x4d0913
cmp dword [esp + 0x2c], ebx
je 0x4d096c
mov ecx, dword [esi + 0x39c]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4d096c
push 0x5da43c
push 9
push esi
call fcn.004e26e0
add esp, 0xc
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp dword [esi + 0x4b48], 1
jne 0x4d099d
mov eax, dword [esi + 0x138]
mov edx, dword [esi + 0x4b40]
mov dword [esi + 0x4b4c], ebx
mov ecx, dword [eax + edx*4]
mov eax, dword [ecx + 0xc]
cmp eax, ebx
mov dword [esi + 0x4b50], eax
jge 0x4d099d
mov dword [esi + 0x4b50], ebx
mov eax, dword [esi + 0x4b3c]
cmp eax, dword [esi + 0x4b40]
push edi
jg 0x4d09e5
mov edi, dword [esi + 0x4b40]
mov edx, dword [esi + 0x138]
mov ebx, dword [esi + 0x6a4]
sub edi, eax
lea edx, [edx + eax*4]
add edi, 1
test ebx, ebx
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
lea ebp, [ebp + ecx*2 + 2]
je 0x4d09db
cmp dword [eax + 4], 0
je 0x4d09db
add ebp, ecx
add edx, 4
sub edi, 1
jne 0x4d09c6
xor ebx, ebx
add ebp, 1
push ebp
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x20], edi
je 0x4d0d4a
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x4d0d48
lea eax, [ebp + ebp]
push eax
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [esp + 0x18], eax
je 0x4d0d31
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
test ebp, ebp
je 0x4d0d31
mov eax, dword [esi + 0x4b3c]
cmp eax, dword [esi + 0x4b40]
lea ecx, [esp + 0x10]
push ecx
push 0
push ebx
jne 0x4d0a99
mov edx, dword [esi + 0x4b50]
mov ecx, dword [esi + 0x4b4c]
sub edx, 1
push edx
push ecx
push eax
push esi
call fcn.004cc110
mov eax, dword [esi + 0x4b50]
mov ecx, dword [esi + 0x4b4c]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esi + 0x4b3c]
push ebp
push 0
sub eax, 1
push eax
push ecx
push edx
push esi
call fcn.004cc110
jmp 0x4d0c2a
mov edx, dword [esi + 0x138]
mov ecx, dword [edx + eax*4]
mov edx, dword [ecx + 0xc]
mov ecx, dword [esi + 0x4b4c]
sub edx, 1
push edx
push ecx
push eax
push esi
call fcn.004cc110
mov eax, dword [esi + 0x4b3c]
mov ecx, dword [esi + 0x138]
lea edx, [esp + 0x30]
push edx
mov edx, dword [ecx + eax*4]
mov ecx, dword [edx + 0xc]
mov edx, dword [esi + 0x4b4c]
push ebp
push 0
sub ecx, 1
push ecx
push edx
push eax
push esi
call fcn.004cc110
mov edi, dword [esi + 0x4b3c]
mov dword [esp + 0x54], edi
add edi, 1
add esp, 0x38
cmp edi, dword [esi + 0x4b40]
jge 0x4d0be4
nop
push edi
push esi
call fcn.004f5090
add esp, 8
test eax, eax
je 0x4d0bd5
mov eax, dword [esi + 0x138]
mov ecx, dword [eax + edi*4]
mov ecx, dword [ecx + 0x2c]
test ecx, ecx
je 0x4d0b8c
mov edx, dword [esp + 0x1c]
mov eax, dword [eax + edx*4]
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x4d0b8c
mov edx, dword [esi + 0x588c]
imul ecx, ecx, 0x84
imul eax, eax, 0x84
mov ecx, dword [ecx + edx + 4]
cmp ecx, dword [eax + edx + 4]
je 0x4d0b8c
mov edx, dword [esp + 0x1c]
push 0x20
push edx
push esi
call fcn.004e08a0
add esp, 0xc
test eax, eax
jne 0x4d0b8c
push eax
push eax
push eax
mov eax, dword [esp + 0x1c]
push ebx
push eax
push esi
call fcn.004f6d90
mov ecx, dword [esp + 0x2c]
push ebp
push 0
push 0
push 0
push ecx
push esi
mov dword [esp + 0x40], eax
call fcn.004f6d90
add esp, 0x30
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x138]
mov ecx, dword [eax + edi*4]
lea edx, [esp + 0x10]
push edx
mov edx, dword [ecx + 0xc]
push 0
push ebx
sub edx, 1
push edx
push 0
push edi
push esi
call fcn.004cc110
mov ecx, dword [esi + 0x138]
mov edx, dword [ecx + edi*4]
lea eax, [esp + 0x30]
push eax
mov eax, dword [edx + 0xc]
push ebp
push 0
sub eax, 1
push eax
push 0
push edi
push esi
call fcn.004cc110
add esp, 0x38
mov dword [esp + 0x1c], edi
add edi, 1
cmp edi, dword [esi + 0x4b40]
jl 0x4d0b00
mov edx, dword [esi + 0x4b50]
mov eax, dword [esi + 0x4b40]
lea ecx, [esp + 0x10]
push ecx
push 0
push ebx
sub edx, 1
push edx
push 0
push eax
push esi
call fcn.004cc110
mov edx, dword [esi + 0x4b50]
mov eax, dword [esi + 0x4b40]
lea ecx, [esp + 0x30]
push ecx
push ebp
push 0
sub edx, 1
push edx
push 0
push eax
push esi
call fcn.004cc110
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
mov byte [ebx + ecx], 0
mov ebx, dword [esp + 0x4c]
add esp, 0x38
mov word [ebp + ebx*2], 0
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call ebp
mov edx, dword [esp + 0x18]
push edx
call ebp
cmp dword [esp + 0x30], 0
je 0x4d0cfd
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
mov edi, dword [sym.imp.USER32.dll_SetClipboardData]
push 1
call edi
test dword [esi + 0xa16c], 0x200
je 0x4d0c83
mov eax, dword [esp + 0x18]
push eax
push 0xd
call edi
jmp 0x4d0c8e
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0
push 2
push esi
call fcn.005330a0
add esp, 0xc
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [esp + 0x2c], 0xe123
jne 0x4d0cb9
mov edx, dword [esi + 0x39c]
push 1
push edx
call sym.LectoraViewer.exe__TerDeleteBlock_8
push 0
push 0
push 1
push 0
push 0
push esi
call fcn.004d9160
add esp, 0x18
test eax, eax
jle 0x4d0cdd
push 1
push 0
push esi
call fcn.004d56b0
add esp, 0xc
push esi
mov dword [esi + 0x498], 4
call fcn.004de3e0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x2c08], edi
add eax, 1
lea edx, [ebx + ebx + 2]
pop edi
mov dword [esi + 0x2c0c], eax
mov dword [esi + 0x2c10], ecx
mov dword [esi + 0x2c14], edx
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
push str.CopyToClipboard
push 0x6c
push esi
call fcn.004e26e0
add esp, 0xc
cmp dword [esp + 0x30], 0
jmp 0x4d0d5e
xor ebx, ebx
push str.CopyToClipboard
push 0x6c
push esi
call fcn.004e26e0
add esp, 0xc
cmp dword [esp + 0x30], ebx
je 0x4d0d66
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret