Function at 0x40a5a3
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
sub esp, 0x28
push esi
mov esi, ecx
mov eax, dword [esi + 0x98]
test eax, eax
mov dword [esp + 0x28], eax
je 0x40a867
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esi + 0x70]
mov edi, eax
mov eax, dword [esi + 0x74]
cmp eax, ecx
mov dword [esp + 0x10], edi
je 0x40a866
jge 0x40a5dc
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], ecx
mov eax, dword [esi + 0x70]
cdq
mov ecx, 0x50
idiv ecx
push ebx
push ebp
mov ebx, 0x50
mov ecx, eax
mov eax, dword [esi + 0x74]
mov ebp, edx
cdq
idiv ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], ecx
cmp eax, ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
jne 0x40a665
lea eax, [ecx + ecx*2]
shl eax, 5
add eax, ebp
sub edx, ebp
lea ebx, [eax + edi + 0xc]
push edx
push ebx
mov ecx, esi
call fcn.0040a490
mov edi, eax
test edi, edi
je 0x40a82b
lea ecx, [edi + 1]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebx
push eax
mov dword [esp + 0x3c], eax
call fcn.00435800
mov edx, dword [esp + 0x3c]
add esp, 0xc
push ebp
mov byte [edx + edi], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x40a82f
mov edi, dword [esi + 0x88]
jle 0x40a677
cmp edi, eax
jge 0x40a691
cmp edi, ecx
jl 0x40a691
jmp 0x40a67f
cmp edi, ecx
jge 0x40a67f
cmp edi, eax
jge 0x40a691
mov dword [esp + 0x28], ebp
mov ebp, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
xor ebx, ebx
add edi, 1
cmp dword [esi + 0x7c], ebx
mov dword [esp + 0x10], ebx
jle 0x40a718
mov eax, dword [esi + 0x7c]
mov dword [esp + 0x2c], eax
cmp edi, dword [esp + 0x20]
jne 0x40a6cf
mov eax, dword [esp + 0x18]
lea edx, [edi + edi*2]
mov ecx, 0x50
sub ecx, ebp
shl edx, 5
push ecx
add edx, ebp
lea ecx, [edx + eax + 0xc]
mov dword [esp + 0x14], 1
push ecx
jmp 0x40a6fc
cmp edi, dword [esp + 0x24]
jne 0x40a6e4
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], 0
push edx
jmp 0x40a6ed
cmp dword [esp + 0x10], 0
je 0x40a707
push 0x50
mov ecx, dword [esp + 0x1c]
lea eax, [edi + edi*2]
shl eax, 5
lea edx, [eax + ecx + 0xc]
push edx
mov ecx, esi
call fcn.0040a490
lea ebx, [ebx + eax + 2]
add edi, 1
cmp edi, dword [esi + 0x7c]
jl 0x40a711
xor edi, edi
sub dword [esp + 0x2c], 1
jne 0x40a6a6
add ebx, 1
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, dword [esi + 0x88]
mov ebx, eax
xor eax, eax
add edi, 1
cmp dword [esi + 0x7c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], eax
jle 0x40a818
jmp 0x40a752
xor eax, eax
cmp edi, dword [esp + 0x20]
jne 0x40a792
mov ecx, dword [esp + 0x18]
lea eax, [edi + edi*2]
shl eax, 5
mov edx, 0x50
add eax, ebp
lea eax, [eax + ecx + 0xc]
sub edx, ebp
push edx
push eax
mov ecx, esi
mov dword [esp + 0x18], 1
mov dword [esp + 0x24], eax
call fcn.0040a490
mov ebp, eax
test ebp, ebp
je 0x40a7ea
mov eax, dword [esp + 0x1c]
push ebp
push eax
jmp 0x40a7df
cmp edi, dword [esp + 0x24]
jne 0x40a7b1
mov edx, dword [esp + 0x18]
lea ecx, [edi + edi*2]
shl ecx, 5
mov dword [esp + 0x10], eax
lea eax, [ecx + edx + 0xc]
mov ecx, dword [esp + 0x28]
push ecx
jmp 0x40a7c7
cmp dword [esp + 0x10], eax
je 0x40a7fa
mov ecx, dword [esp + 0x18]
lea eax, [edi + edi*2]
shl eax, 5
lea eax, [eax + ecx + 0xc]
push 0x50
push eax
mov ecx, esi
mov dword [esp + 0x24], eax
call fcn.0040a490
mov ebp, eax
test ebp, ebp
je 0x40a7ea
mov edx, dword [esp + 0x1c]
push ebp
push edx
push ebx
call fcn.00435800
add esp, 0xc
add ebx, ebp
mov ebp, dword [esp + 0x14]
mov byte [ebx], 0xd
add ebx, 1
mov byte [ebx], 0xa
add ebx, 1
add edi, 1
cmp edi, dword [esi + 0x7c]
jl 0x40a804
xor edi, edi
mov eax, dword [esp + 0x30]
add eax, 1
cmp eax, dword [esi + 0x7c]
mov dword [esp + 0x30], eax
jl 0x40a750
mov eax, dword [esp + 0x2c]
push eax
mov edi, 1
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test edi, edi
je 0x40a85d
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebp
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x28
ret
jmp 0x40a5a0