Function at 0x482254
Capabilities:
Write clipboard data

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xfc
mov eax, dword [esp + 0x110]
mov esi, dword [eax + 0x51c]
test esi, esi
jne 0x48227f
jmp 0x482453
mov esi, dword [esi + 0x10]
test esi, esi
je 0x482453
cmp dword [esi], 0x1f
jne 0x482274
mov ebx, dword [esi + 8]
xor ecx, ecx
test ebx, ebx
je 0x482482
lea esi, [esi]
mov edx, dword [ebx + 4]
add ecx, edx
mov eax, dword [ebx]
add edx, eax
cmp eax, edx
jb 0x4822a9
jmp 0x4822b4
inc eax
cmp eax, edx
je 0x4822b4
cmp byte [eax], 0xa
jne 0x4822a4
inc ecx
inc eax
cmp eax, edx
jne 0x4822a9
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x482294
inc ecx
mov dword [esp], ecx
mov eax, dword [0x67bad4]
call dword [eax + 0x14]
mov ebx, eax
mov edi, dword [esi + 8]
test edi, edi
je 0x482304
mov edx, dword [edi]
mov esi, dword [edi + 4]
add esi, edx
cmp edx, esi
jb 0x4822e8
jmp 0x4822fd
mov byte [eax], cl
inc eax
inc edx
cmp edx, esi
je 0x4822fd
mov cl, byte [edx]
cmp cl, 0xa
jne 0x4822e0
mov byte [eax], 0xd
inc eax
mov cl, byte [edx]
mov byte [eax], cl
inc eax
inc edx
cmp edx, esi
jne 0x4822e8
mov edi, dword [edi + 8]
test edi, edi
jne 0x4822d0
mov byte [eax], 0
call fcn.004335ac
lea ebp, [esp + 0x1c]
cmp eax, 2
je 0x4823b3
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], ebx
mov dword [esp], 0
mov eax, dword [0x67bad4]
call dword [eax + 0x53c]
mov dword [esp], ebx
mov eax, dword [0x67bad4]
call dword [eax + 0x18]
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 4], eax
mov dword [esp], 0x2002
call sub.KERNEL32.dll_GlobalAlloc
sub esp, 8
mov ebx, eax
test eax, eax
je 0x482469
mov dword [esp], eax
call sub.KERNEL32.dll_GlobalLock
push esi
mov ecx, dword [esp + 0x20]
inc ecx
mov esi, dword [esp + 0x1c]
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp], ebx
call sub.KERNEL32.dll_GlobalUnlock
push edi
mov dword [esp], ebp
mov eax, dword [0x67bad4]
call dword [eax + 0x1e8]
mov dword [esp + 4], ebx
mov dword [esp], 1
call sub.USER32.dll_SetClipboardData
sub esp, 8
add esp, 0xfc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebp
mov eax, dword [0x67bad4]
call dword [eax + 0x1f0]
mov dword [esp + 8], ebp
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
mov eax, dword [0x67bad4]
call dword [eax + 0x594]
mov dword [esp], ebx
mov eax, dword [0x67bad4]
call dword [eax + 0x18]
mov eax, dword [esp + 0x20]
add eax, 2
mov dword [esp + 4], eax
mov dword [esp], 0x2002
call sub.KERNEL32.dll_GlobalAlloc
sub esp, 8
mov ebx, eax
test eax, eax
je 0x482469
mov dword [esp], eax
call sub.KERNEL32.dll_GlobalLock
push edx
mov ecx, dword [esp + 0x20]
add ecx, 2
mov esi, dword [esp + 0x1c]
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp], ebx
call sub.KERNEL32.dll_GlobalUnlock
push ecx
mov dword [esp], ebp
mov eax, dword [0x67bad4]
call dword [eax + 0x1e8]
mov dword [esp + 4], ebx
mov dword [esp], 0xd
call sub.USER32.dll_SetClipboardData
sub esp, 8
add esp, 0xfc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 1
mov eax, dword [0x67bad4]
call dword [eax + 0x14]
mov ebx, eax
jmp 0x482304
mov dword [esp], ebp
mov eax, dword [0x67bad4]
call dword [eax + 0x1e8]
add esp, 0xfc
pop ebx
pop esi
pop edi
pop ebp
ret
mov cl, 1
jmp 0x4822bc