Function at 0x413b2a
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.00412238
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x44]
jne 0x413b56
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x40]
je 0x413cf7
cmp byte [ebp - 4], 0
je 0x413cf7
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 0x413b8c
jne 0x413ba4
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x40]
jbe 0x413ba4
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.00418dd7
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 0x413beb
push 0x42000
push 0
push 0x4417f4
push 0
call dword [0x442074]
jmp 0x413cf7
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.00418e3a
test edi, edi
jbe 0x413c1f
mov eax, dword [ebp - 0xc]
mov ecx, edi
cmp word [eax], 0
jne 0x413c1a
mov word [eax], 0x20
inc eax
inc eax
dec ecx
jne 0x413c0f
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 0x413c4e
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [0x41c078]
call fcn.0040a5b7
test al, al
jne 0x413cf7
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 0x413bd2
push dword [ebp - 0x10]
call fcn.0040b0b4
mov ebx, eax
pop ecx
test ebx, ebx
je 0x413cf7
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.00418e3a
xor esi, esi
cmp edi, esi
jbe 0x413cb2
mov eax, ebx
cmp word [eax], si
jne 0x413cad
mov word [eax], 0x20
inc eax
inc eax
dec edi
jne 0x413ca3
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 [0x442444]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call fcn.0040b125
pop ecx
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x413cf7
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [ebp - 4]
call fcn.0041226e
pop edi
pop esi
pop ebx
leave
ret