Function at 0x420568
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
call fcn.0041f229
push dword [0x4443d4]
mov esi, dword [sym.imp.USER32.dll_GetClipboardData]
call esi
push dword [0x4443d8]
mov edi, eax
mov dword [ebp - 0x30], edi
call esi
push dword [0x4443dc]
mov dword [ebp - 0x28], eax
call esi
mov ecx, dword [ebp - 0x28]
xor esi, esi
mov dword [ebp - 0x34], eax
mov ebx, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x24], esi
test ecx, ecx
je 0x4205d8
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [eax + 0x18]
mov ecx, edx
mov ebx, dword [eax + 0x1c]
mov dword [ebp - 4], edx
xor edx, edx
imul ecx, ebx
cmp dword [eax + 4], esi
mov dword [ebp - 0x14], ebx
sete dl
add eax, 0x20
jmp 0x420612
test edi, edi
je 0x4205f9
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor edx, edx
inc edx
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ecx
imul ecx, ebx
add eax, 8
mov dword [ebp - 0x14], ebx
jmp 0x420612
test eax, eax
je 0x4207d6
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [ebp - 0x24]
movzx ecx, word [eax + 2]
add eax, 4
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
mov eax, dword [edi + 0x30c]
mov esi, dword [edi + 0x310]
cmp eax, esi
cmovl esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
jns 0x420658
mov esi, dword [edi + 0x298]
mov dword [ebp - 0x10], esi
test esi, esi
jns 0x420658
mov esi, dword [edi + 0x294]
shl esi, 4
add esi, dword [edi + 0x290]
push 0
pop eax
cmovs esi, eax
mov dword [ebp - 0x10], esi
test edx, edx
je 0x420751
mov ecx, esi
and ecx, 0x8000000f
jns 0x42066f
dec ecx
or ecx, 0xfffffff0
inc ecx
mov eax, esi
mov dword [ebp - 0x20], ecx
cdq
and edx, 0xf
add eax, edx
sar eax, 4
mov dword [ebp - 0x24], eax
test ebx, ebx
jle 0x4206fe
and dword [ebp - 8], 0
mov edx, eax
mov eax, dword [ebp - 8]
shl edx, 4
add edx, ecx
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x18], edx
xor esi, esi
test ecx, ecx
jle 0x4206e6
lea eax, [esi + ebx]
cmp eax, 0x10
jge 0x4206de
lea eax, [edx + esi]
mov dword [ebp - 0x2c], eax
cmp eax, dword [edi + 0x268]
jge 0x4206de
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add eax, esi
push dword [ecx + eax*4]
call fcn.00405a43
mov edx, dword [ebp - 0x2c]
pop ecx
mov ecx, dword [edi + 0x27c]
mov word [ecx + edx*2], ax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
inc esi
cmp esi, ecx
jl 0x4206a4
mov eax, dword [ebp - 8]
add eax, ecx
add edx, 0x10
dec dword [ebp - 0x1c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], edx
jne 0x42069e
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
jmp 0x420701
mov ecx, dword [ebp - 4]
mov eax, dword [edi + 0x268]
add eax, 0xf
cdq
and edx, 0xf
add edx, eax
mov eax, dword [ebp - 0x20]
add ecx, eax
sar edx, 4
cmp ecx, 0x10
jle 0x420724
push 0x10
pop ecx
sub ecx, eax
jmp 0x420727
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
add eax, ebx
cmp eax, edx
jle 0x420735
mov ebx, edx
sub ebx, dword [ebp - 0x24]
shl ebx, 4
lea eax, [esi - 0x11]
add ebx, ecx
mov dword [edi + 0x314], 1
add eax, ebx
mov dword [edi + 0x310], eax
jmp 0x4207ac
xor ebx, ebx
test ecx, ecx
jle 0x42078f
lea eax, [esi + esi]
mov dword [ebp - 0x24], eax
lea eax, [ebx + esi]
cmp eax, dword [edi + 0x268]
jge 0x42078f
mov eax, dword [ebp - 0xc]
push dword [eax + ebx*4]
call fcn.00405a43
mov edx, dword [ebp - 0x24]
inc ebx
pop ecx
mov ecx, dword [edi + 0x27c]
mov word [edx + ecx], ax
add edx, 2
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x24], edx
cmp ebx, ecx
jl 0x42075d
and dword [edi + 0x314], 0
lea eax, [ecx - 1]
mov ecx, dword [edi + 0x268]
add eax, esi
cmp eax, ecx
cmovl ecx, eax
mov dword [edi + 0x310], ecx
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x30c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
je 0x4207c2
push eax
call esi
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4207cc
push eax
call esi
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4207d6
push eax
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret