Function at 0x41e5d3
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.0041eb79
mov ecx, dword [ebp + 0x14]
mov edx, ecx
mov eax, dword [ebp + 0x10]
cmp eax, ecx
mov dword [ebp + 0x10], 1
cmovg ecx, eax
cmovl edx, eax
mov ebx, ecx
mov dword [ebp - 0x18], edx
sub ebx, edx
mov dword [ebp + 0x14], ecx
inc ebx
cmp dword [ebp + 0x18], 0
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
je 0x41e66b
mov esi, edx
and esi, 0x8000000f
jns 0x41e61e
dec esi
or esi, 0xfffffff0
inc esi
mov eax, edx
cdq
and edx, 0xf
lea edi, [edx + eax]
sar edi, 4
and ecx, 0x8000000f
jns 0x41e637
dec ecx
or ecx, 0xfffffff0
inc ecx
mov eax, dword [ebp + 0x14]
cdq
and edx, 0xf
add eax, edx
mov edx, ecx
sar eax, 4
cmp esi, ecx
cmovl ecx, esi
cmovg edx, esi
sub edx, ecx
mov ecx, eax
inc edx
cmp edi, eax
mov dword [ebp - 8], edx
cmovg ecx, edi
cmovl eax, edi
sub ecx, eax
inc ecx
mov ebx, ecx
mov dword [ebp + 0x10], ecx
imul ebx, edx
mov dword [ebp - 0xc], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea eax, [ebx*8 + 8]
push eax
push 0x42
call esi
lea ecx, [ebx*8 + 0x28]
mov edi, eax
push ecx
push 0x42
mov dword [ebp - 0x1c], edi
call esi
lea ecx, [ebx*4 + 4]
mov dword [ebp - 0x10], eax
push ecx
push 0x42
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
mov dword [ebp - 4], eax
call esi
push dword [ebp - 0x10]
mov edi, eax
call esi
push dword [ebp - 4]
mov ebx, eax
call esi
mov esi, dword [ebp - 8]
lea edx, [edi + 8]
mov ecx, eax
mov dword [edi], esi
lea eax, [ebx + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 4], eax
xor eax, eax
cmp dword [ebp + 0x18], eax
mov dword [ebx + 0x18], esi
sete al
mov dword [ebx], 0xc208b8
mov dword [ebx + 4], eax
xor esi, esi
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x1c], eax
push 3
pop eax
mov word [ecx], ax
mov eax, dword [ebp - 0xc]
mov word [ecx + 2], ax
cmp dword [ebp + 0xc], esi
jle 0x41e7a4
mov ebx, dword [ebp - 0x14]
lea eax, [edx + eax*4]
mov edi, dword [ebp - 0x18]
mov dword [ebp + 0x10], eax
mov eax, ebx
sub eax, edx
sub edx, ebx
mov dword [ebp - 0xc], eax
lea eax, [ecx + 4]
sub eax, ebx
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
push esi
call fcn.0041f16c
add esp, 0x10
test eax, eax
je 0x41e79a
mov eax, dword [ebp + 8]
movzx eax, word [eax + esi*2]
push eax
call fcn.00405882
mov ecx, dword [ebp - 0x14]
mov dword [ecx + ebx], eax
mov eax, dword [ebp + 8]
movzx eax, word [eax + esi*2]
push eax
call fcn.00405882
mov dword [ebx], eax
mov eax, dword [ebp + 8]
movzx eax, word [eax + esi*2]
push eax
call fcn.00405882
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0xc]
mov dword [edx + ecx], eax
mov eax, dword [ebp + 8]
movzx eax, word [eax + esi*2]
push eax
call fcn.00405882
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
movzx eax, word [eax + esi*2]
push eax
call fcn.00405882
mov ecx, dword [ebp - 8]
add esp, 0x14
mov dword [ecx + ebx], eax
add ebx, 4
add dword [ebp + 0x10], 4
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x41e71f
mov edi, dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call esi
mov ebx, dword [ebp - 0x10]
push ebx
call esi
push dword [ebp - 4]
call esi
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
push edi
push dword [0x4433b4]
call esi
push ebx
push dword [0x4433b8]
call esi
push dword [ebp - 4]
push dword [0x4433bc]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret