Function at 0x4d1030
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0x17c
mov eax, dword [0x613ad0]
xor eax, esp
mov dword [esp + 0x178], eax
mov eax, dword [esp + 0x180]
push ebp
mov ebp, dword [esp + 0x18c]
push esi
push eax
mov dword [esp + 0xc], ebp
call fcn.004df880
mov esi, eax
add esp, 4
test esi, esi
je 0x4d13ba
cmp dword [esi + 0x4b48], 2
jne 0x4d1097
cmp dword [esp + 0x19c], 0
je 0x4d1097
mov eax, dword [esi + 0x39c]
push 1
push eax
call sym.LectoraViewer.exe__TerDeleteBlock_8
test eax, eax
je 0x4d1097
add dword [esi + 0x5758], 0xffffffff
mov edx, dword [esp + 0x194]
test edx, edx
mov ecx, dword [esi + 0x47c]
push ebx
push edi
mov edi, dword [esi + 0x5d8]
mov dword [esp + 0x14], ecx
jle 0x4d1104
mov ebx, dword [esi + 0x138]
mov eax, dword [ebx + edi*4]
cmp dword [eax + 0x30], edx
je 0x4d1104
xor eax, eax
cmp eax, dword [esi + 0x5e4]
jge 0x4d1104
mov ecx, ebx
mov edi, edi
mov ebp, dword [ecx]
cmp dword [ebp + 0x30], edx
je 0x4d10e5
add eax, 1
add ecx, 4
cmp eax, dword [esi + 0x5e4]
jl 0x4d10d0
cmp eax, dword [esi + 0x5e4]
mov ebp, dword [esp + 0x10]
jge 0x4d1104
mov ecx, dword [ebx + eax*4]
cmp dword [ecx + 0xc], 0
jle 0x4d1104
mov edi, eax
mov dword [esp + 0x14], 0
mov eax, dword [esi + 0x3474]
test eax, eax
jl 0x4d112d
imul eax, eax, 0x170
add eax, dword [esi + 0x3434]
push 0x170
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.004e29c0
add esp, 0xc
mov eax, dword [esp + 0x14]
xor ebx, ebx
cmp dword [esi + 0x3474], ebx
push eax
setge bl
push edi
push esi
mov dword [esp + 0x1c], ebx
call fcn.004a0bf0
mov ecx, dword [esi + 0x47c]
mov edx, dword [esi + 0x5d8]
push ecx
push edx
push esi
call fcn.004ee990
add esp, 0x18
test eax, eax
jne 0x4d117e
cmp dword [esp + 0x1a4], eax
je 0x4d117e
test ebx, ebx
jne 0x4d117e
push eax
call dword [sym.imp.USER32.dll_MessageBeep]
xor eax, eax
jmp 0x4d13b8
mov edi, dword [esp + 0x194]
test edi, edi
jne 0x4d11f1
test ebp, ebp
jne 0x4d13ed
mov edi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 3
call edi
test eax, eax
je 0x4d11a4
lea edi, [ebp + 3]
jmp 0x4d11f5
push 8
call edi
test eax, eax
je 0x4d11b3
mov edi, 8
jmp 0x4d11f5
push 2
call edi
test eax, eax
je 0x4d11c2
mov edi, 2
jmp 0x4d11f5
cmp dword [0x622424], 0
je 0x4d13ed
mov eax, dword [esi + 0x4718]
push eax
call edi
test eax, eax
je 0x4d13ed
mov edi, dword [esi + 0x4718]
test edi, edi
jne 0x4d11f5
xor eax, eax
jmp 0x4d13b8
test ebp, ebp
jne 0x4d121d
mov ecx, dword [esi + 0x39c]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4d121d
push 0x5da43c
push 9
push esi
call fcn.004e26e0
add esp, 0xc
xor eax, eax
jmp 0x4d13b8
cmp edi, 8
mov edx, dword [esi + 0x508]
mov eax, dword [esi + 0x50c]
mov dword [esi + 0x5bc], edx
mov dword [esi + 0x5c0], eax
jne 0x4d127f
test ebp, ebp
je 0x4d1242
mov eax, ebp
jmp 0x4d1252
push 8
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
je 0x4d13d3
push eax
or edi, 0xffffffff
push esi
mov dword [esi + 0x5c0], edi
mov dword [esi + 0x5bc], edi
call fcn.004e3310
mov ebx, eax
add esp, 8
cmp ebx, edi
je 0x4d13e3
mov ecx, dword [esi + 0x3a0]
push ebx
push ecx
jmp 0x4d12bd
cmp edi, 2
jne 0x4d13d3
test ebp, ebp
je 0x4d1290
mov eax, ebp
jmp 0x4d12a0
push 2
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
je 0x4d13d3
push eax
push esi
call fcn.004e30a0
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
je 0x4d13e3
mov edx, dword [esi + 0x3a0]
push ebx
push edx
push esi
call fcn.004e3640
add esp, 0xc
test eax, eax
je 0x4d13e3
mov eax, dword [esi + 0x3434]
mov edx, dword [esp + 0x1a0]
mov ecx, ebx
imul ecx, ecx, 0x170
mov dword [ecx + eax + 0xbc], edx
mov eax, dword [esi + 0x3434]
lea edi, [ecx + eax]
mov eax, dword [edi + 0xbc]
test eax, eax
je 0x4d1364
cmp eax, 1
jne 0x4d1313
mov eax, dword [edi + 0x12c]
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0x12c], eax
mov edx, dword [esi + 0x3434]
cmp dword [ecx + edx + 0xbc], 2
lea eax, [ecx + edx]
jne 0x4d1330
mov dword [eax + 0x12c], 0
mov edi, dword [esi + 0x3434]
mov eax, dword [edi + 0x12c]
cdq
sub eax, edx
sar eax, 1
add dword [ecx + edi + 0x12c], eax
mov eax, dword [esi + 0x3434]
add eax, ecx
mov ecx, dword [eax + 0x128]
cmp dword [eax + 0x12c], ecx
jle 0x4d1364
mov dword [eax + 0x12c], ecx
test ebp, ebp
jne 0x4d136e
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [esp + 0x10], 0
je 0x4d13b6
lea ecx, [esp + 0x18]
push ecx
push ebx
push esi
call fcn.004ccf00
push 1
push esi
call fcn.00525730
push 0
push 0
push 1
push 0
push 0
push esi
call fcn.004d9160
add esp, 0x2c
test eax, eax
jle 0x4d13ad
push 1
push 0
push esi
call fcn.004d56b0
add esp, 0xc
push esi
call fcn.004de3e0
add esp, 4
mov eax, ebx
pop edi
pop ebx
mov ecx, dword [esp + 0x180]
pop esi
pop ebp
xor ecx, esp
call fcn.005aac48
add esp, 0x17c
ret 0x18
push str.TerPastePicture
push 0xb
push esi
call fcn.004e26e0
add esp, 0xc
test ebp, ebp
jne 0x4d13ed
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x4d13b8