Function at 0x468310
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x4c75d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x308]
mov ecx, dword [esi + 0x310]
push ebx
push edi
xor edi, edi
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x20c], edi
cmp eax, ecx
jge 0x468357
mov ebx, eax
mov dword [ebp - 0x230], ebx
jmp 0x46835f
mov dword [ebp - 0x230], ecx
mov ebx, ecx
mov eax, dword [esi + 0x30c]
mov ecx, dword [esi + 0x314]
mov dword [ebp - 0x220], eax
cmp eax, ecx
jl 0x46837b
mov dword [ebp - 0x220], ecx
test dword [esi + 0x14], 0x800
jne 0x46838f
mov dword [ebp - 0x214], edi
jmp 0x46866b
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x468384
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x468384
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x23c], eax
cmp eax, edi
je 0x46866b
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov dword [ebp - 0x218], edi
test edi, edi
je 0x46866b
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4683e0
sub eax, edx
xor edx, edx
test eax, eax
jle 0x468421
xor ecx, ecx
mov cl, byte [ecx + edi]
cmp cl, 9
jne 0x468405
inc dword [ebp - 0x20c]
mov edi, dword [ebp - 0x218]
cmp cl, 0xa
jne 0x468410
inc dword [ebp - 0x210]
inc edx
movzx ecx, dx
cmp ecx, eax
jl 0x4683f1
cmp dword [ebp - 0x210], 0
jne 0x468430
mov dword [ebp - 0x214], 0
jmp 0x46865e
mov eax, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x210]
cdq
idiv ecx
mov edx, dword [ebp - 0x220]
movzx edi, word [esi + 0x12]
inc eax
mov dword [ebp - 0x20c], eax
lea eax, [edx + eax - 1]
cmp eax, edi
jge 0x468421
movzx edi, word [esi + 0x10]
lea eax, [ebx + ecx - 1]
cmp eax, edi
jge 0x468421
add ecx, ebx
movzx eax, cx
xor edi, edi
cmp bx, ax
jae 0x46865e
mov ecx, dword [ebp - 0x20c]
add ecx, edx
sub eax, ebx
movzx edx, cx
movzx ecx, bx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
movzx eax, ax
mov dword [ebp - 0x240], edx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x234], eax
nop
mov ecx, dword [ebp - 0x220]
cmp cx, dx
jae 0x468641
movzx eax, cx
mov dword [ebp - 0x228], eax
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
sub edx, ecx
movzx ecx, dx
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x238], ecx
push 0x100
lea edx, [ebp - 0x108]
push 0
push edx
call fcn.0042e03c
mov edx, dword [ebp - 0x218]
movzx eax, di
mov al, byte [eax + edx]
add esp, 0xc
xor ecx, ecx
cmp al, 9
je 0x468518
cmp al, 0xd
je 0x468518
movzx edx, cx
mov byte [ebp + edx - 0x108], al
mov edx, dword [ebp - 0x218]
inc edi
movzx eax, di
mov al, byte [eax + edx]
inc ecx
cmp al, 9
jne 0x4684f8
mov ecx, dword [ebp - 0x218]
movzx eax, di
cmp byte [eax + ecx], 0xd
jne 0x46852c
add edi, 2
jmp 0x46852d
inc edi
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0x224], edi
mov edi, dword [ebp - 0x228]
shl edi, 0x10
or edi, dword [ebp - 0x21c]
lea eax, [ebp - 0x250]
push eax
push edi
push 0x531
lea edx, [ebp - 0x208]
mov dword [ebp - 0x24c], 0
push ecx
mov dword [ebp - 0x250], edx
mov dword [ebp - 0x24c], 0x100
call ebx
lea ecx, [ebp - 0x208]
lea eax, [ebp - 0x108]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4685a1
test dl, dl
je 0x46859d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4685a1
add eax, 2
add ecx, 2
test dl, dl
jne 0x468581
xor eax, eax
jmp 0x4685a6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4685c0
mov edx, dword [esi]
mov eax, dword [ebp - 0x21c]
mov eax, dword [edx + eax*4]
add eax, dword [ebp - 0x22c]
je 0x4685c0
or dword [eax], 4
mov eax, dword [esi + 0x1c]
lea edx, [ebp - 0x248]
push edx
push edi
push 0x530
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x244], 0
push eax
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x244], 0x100
call ebx
movzx eax, word [esi + 0x20]
mov ecx, dword [esi + 0x1c]
or dword [esi + 0x18], 0x4000
push edi
or eax, 0x1c0000
push eax
push 0x111
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call ebx
add dword [ebp - 0x22c], 0x14
mov edi, dword [ebp - 0x224]
mov eax, 1
add dword [ebp - 0x228], eax
sub dword [ebp - 0x238], eax
jne 0x4684d0
mov edx, dword [ebp - 0x240]
mov eax, 1
add dword [ebp - 0x21c], eax
sub dword [ebp - 0x234], eax
jne 0x4684a0
mov ebx, dword [ebp - 0x230]
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov edi, dword [ebp - 0x214]
cmp edi, 1
jne 0x4686bc
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x20c]
lea edx, [eax + ecx - 1]
push 0
mov dword [esi + 0x314], eax
mov eax, dword [ebp - 0x210]
mov dword [esi + 0x30c], edx
mov edx, dword [esi + 0x1c]
push 0
lea ecx, [ebx + eax - 1]
push edx
mov dword [esi + 0x310], ebx
mov dword [esi + 0x308], ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.0042dbe7
mov esp, ebp
pop ebp
ret