Function at 0x41401a
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov esi, ecx
push 0
lea ecx, [ebp - 4]
push dword [esi + 0xc]
call fcn.004126b5
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x44]
jne 0x414046
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x40]
je 0x4141e7
cmp byte [ebp - 4], 0
je 0x4141e7
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x44]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x44]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x2c]
cmp eax, ecx
ja 0x41407c
jne 0x414094
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x40]
jbe 0x414094
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x44]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004194f8
mov edi, eax
lea ebx, [edi + 1]
mov dword [ebp - 0x18], ebx
lea eax, [ebx + ebx]
push eax
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp - 8], eax
jne 0x4140db
push 0x42000
push 0
push 0x432844
push 0
call dword [0x433094]
jmp 0x4141e7
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], eax
push ecx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [esi + 4]
push eax
call fcn.0041955b
test edi, edi
jbe 0x41410f
mov eax, dword [ebp - 0xc]
mov ecx, edi
cmp word [eax], 0
jne 0x41410a
mov word [eax], 0x20
inc eax
inc eax
dec ecx
jne 0x4140ff
mov ecx, dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [edi + edi]
mov dword [ebp - 0x14], eax
and word [eax + ecx], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 8]
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x41413e
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [0x41d078]
call fcn.0040a9d0
test al, al
jne 0x4141e7
lea ebx, [ebx + ebx*2]
push ebx
push 2
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp - 8], eax
je 0x4140c2
push dword [ebp - 0x10]
call fcn.0040b534
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4141e7
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.0041955b
xor esi, esi
cmp edi, esi
jbe 0x4141a2
mov eax, ebx
cmp word [eax], si
jne 0x41419d
mov word [eax], 0x20
inc eax
inc eax
dec edi
jne 0x414193
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 8]
push esi
push esi
push dword [ebp - 0xc]
mov word [eax + ebx], si
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
push dword [ebp - 0x18]
push ebx
push esi
push esi
call dword [0x433468]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call fcn.0040b5a5
pop ecx
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x4141e7
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [ebp - 4]
call fcn.004126eb
pop edi
pop esi
pop ebx
leave
ret