Function at 0x41fe40
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
call fcn.0041eb79
push dword [0x4433b4]
mov esi, dword [sym.imp.USER32.dll_GetClipboardData]
call esi
push dword [0x4433b8]
mov edi, eax
mov dword [ebp - 0x30], edi
call esi
push dword [0x4433bc]
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 0x41feb0
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 0x41feea
test edi, edi
je 0x41fed1
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 0x41feea
test eax, eax
je 0x4200ae
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 + 0x308]
mov esi, dword [edi + 0x30c]
cmp eax, esi
cmovl esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
jns 0x41ff30
mov esi, dword [edi + 0x294]
mov dword [ebp - 0x10], esi
test esi, esi
jns 0x41ff30
mov esi, dword [edi + 0x290]
shl esi, 4
add esi, dword [edi + 0x28c]
push 0
pop eax
cmovs esi, eax
mov dword [ebp - 0x10], esi
test edx, edx
je 0x420029
mov ecx, esi
and ecx, 0x8000000f
jns 0x41ff47
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 0x41ffd6
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 0x41ffbe
lea eax, [esi + ebx]
cmp eax, 0x10
jge 0x41ffb6
lea eax, [edx + esi]
mov dword [ebp - 0x2c], eax
cmp eax, dword [edi + 0x264]
jge 0x41ffb6
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add eax, esi
push dword [ecx + eax*4]
call fcn.004058bf
mov edx, dword [ebp - 0x2c]
pop ecx
mov ecx, dword [edi + 0x278]
mov word [ecx + edx*2], ax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
inc esi
cmp esi, ecx
jl 0x41ff7c
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 0x41ff76
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
jmp 0x41ffd9
mov ecx, dword [ebp - 4]
mov eax, dword [edi + 0x264]
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 0x41fffc
push 0x10
pop ecx
sub ecx, eax
jmp 0x41ffff
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
add eax, ebx
cmp eax, edx
jle 0x42000d
mov ebx, edx
sub ebx, dword [ebp - 0x24]
shl ebx, 4
lea eax, [esi - 0x11]
add ebx, ecx
mov dword [edi + 0x310], 1
add eax, ebx
mov dword [edi + 0x30c], eax
jmp 0x420084
xor ebx, ebx
test ecx, ecx
jle 0x420067
lea eax, [esi + esi]
mov dword [ebp - 0x24], eax
lea eax, [ebx + esi]
cmp eax, dword [edi + 0x264]
jge 0x420067
mov eax, dword [ebp - 0xc]
push dword [eax + ebx*4]
call fcn.004058bf
mov edx, dword [ebp - 0x24]
inc ebx
pop ecx
mov ecx, dword [edi + 0x278]
mov word [edx + ecx], ax
add edx, 2
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x24], edx
cmp ebx, ecx
jl 0x420035
and dword [edi + 0x310], 0
lea eax, [ecx - 1]
mov ecx, dword [edi + 0x264]
add eax, esi
cmp eax, ecx
cmovl ecx, eax
mov dword [edi + 0x30c], ecx
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x308], esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
je 0x42009a
push eax
call esi
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4200a4
push eax
call esi
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4200ae
push eax
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret