Function at 0x460da4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov ebx, dword [eax + 0x1a4]
push dword [eax]
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x461000
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [eax + 0x1ac]
mov edi, dword [eax + 0x1b0]
mov eax, dword [eax + 0x1b4]
cmp edx, eax
jg 0x460df7
jne 0x460e2c
cmp ecx, edi
jg 0x46100d
jmp 0x460e2c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
push edx
call fcn.004563e4
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x1c]
push eax
push edx
call fcn.004563e4
add esp, 0x10
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x28], ecx
add edx, 1
add edi, 1
add eax, 1
mov dword [ebp - 0x24], edx
test ebx, ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], eax
je 0x460e53
cmp edx, dword [ebx + 0xc]
jle 0x460e53
mov ebx, dword [ebx]
test ebx, ebx
jne 0x460e48
cmp edx, eax
jne 0x460e5e
sub edi, ecx
add edi, 2
jmp 0x460e97
sub eax, edx
cdq
mov esi, eax
xor esi, edx
sub esi, edx
cmp esi, 1
jle 0x460e88
mov edx, dword [ebp - 8]
mov esi, dword [edx + 0x11c]
sub edi, ecx
add edi, esi
add esi, 1
add eax, 0xffffffff
imul eax, esi
lea edi, [edi + eax + 2]
jmp 0x460e97
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x11c]
sub edx, ecx
lea edi, [edx + edi + 1]
add edi, 0xa
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x46109f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x461082
push edi
push 0
push esi
call fcn.00484df0
add esp, 0xc
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
cmp edi, ecx
jg 0x460fd7
test ebx, ebx
je 0x460fd7
mov edx, dword [ebx + 0xc]
cmp edx, edi
jne 0x460fcc
cmp edi, dword [ebp - 0x24]
jne 0x460ef9
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x14], edx
jmp 0x460f01
mov edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebx + 4]
cmp eax, edx
jle 0x460f25
sub eax, dword [ebp - 0x14]
push eax
push 0x20
mov dword [ebp - 0x2c], eax
push esi
call fcn.00484df0
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
add esi, eax
cmp edi, ecx
jne 0x460f31
mov eax, dword [ebp - 0x20]
add eax, 1
jmp 0x460f3a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x11c]
mov edx, dword [ebx + 8]
cmp eax, edx
jle 0x460f46
sub edx, dword [ebp - 0x14]
jmp 0x460f4b
mov edx, eax
sub edx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x10]
cmp eax, 1
je 0x46103a
test edx, edx
jle 0x460f7e
test eax, eax
jne 0x460f7e
mov ecx, dword [ebx + 0x14]
sub ecx, dword [ebx + 4]
add ecx, dword [ebp - 0x14]
push edx
mov dword [ebp - 0x2c], edx
push ecx
push esi
call fcn.00484e48
mov edx, dword [ebp - 0x2c]
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
add esi, edx
cmp edi, ecx
je 0x460f9a
mov edx, dword [ebx + 0x10]
test edx, edx
jne 0x460fbd
mov byte [esi], 0xd
mov byte [esi + 1], 0xa
mov ecx, dword [ebp - 0x1c]
add esi, 2
cmp edi, ecx
jne 0x460fbd
cmp edi, dword [ebp - 0x24]
jne 0x460fbd
mov edx, dword [ebx + 0x10]
test edx, edx
jne 0x460fbd
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebx + 8]
jl 0x460fd7
mov byte [esi], 0xd
lea edx, [esi + 1]
add esi, 2
mov byte [edx], 0xa
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
add edi, 1
cmp edi, ecx
jle 0x460ed9
jmp 0x460fd7
add edi, 1
cmp edi, ecx
jle 0x460ee4
mov eax, dword [ebp - 0x18]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x461057
mov eax, dword [ebp - 0x18]
push eax
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
push edx
call fcn.004563e4
add esp, 8
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
jmp 0x460e2c
cmp ecx, dword [ebp - 0x24]
je 0x460f7e
mov byte [esi], 0xd
lea edx, [esi + 1]
add esi, 2
mov byte [edx], 0xa
mov ecx, dword [ebp - 0x1c]
jmp 0x460f7e
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x6b5
push 0x4b7834
push 5
call fcn.004580ec
add esp, 0xc
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret