Function at 0x413e89
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.00412580
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x44]
jne 0x413eb5
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x40]
je 0x414056
cmp byte [ebp - 4], 0
je 0x414056
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 0x413eeb
jne 0x413f03
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x40]
jbe 0x413f03
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.004192eb
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 0x413f4a
push 0x42000
push 0
push 0x431824
push 0
call dword [0x432090]
jmp 0x414056
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.0041934e
test edi, edi
jbe 0x413f7e
mov eax, dword [ebp - 0xc]
mov ecx, edi
cmp word [eax], 0
jne 0x413f79
mov word [eax], 0x20
inc eax
inc eax
dec ecx
jne 0x413f6e
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 0x413fad
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [0x41c078]
call fcn.0040a8aa
test al, al
jne 0x414056
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 0x413f31
push dword [ebp - 0x10]
call fcn.0040b3ac
mov ebx, eax
pop ecx
test ebx, ebx
je 0x414056
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.0041934e
xor esi, esi
cmp edi, esi
jbe 0x414011
mov eax, ebx
cmp word [eax], si
jne 0x41400c
mov word [eax], 0x20
inc eax
inc eax
dec edi
jne 0x414002
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 [0x432464]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call fcn.0040b41d
pop ecx
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x414056
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [ebp - 4]
call fcn.004125b6
pop edi
pop esi
pop ebx
leave
ret