Function at 0x474467
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
xor eax, eax
push edi
inc eax
mov dword [ebp - 4], esi
mov ebx, esi
mov dword [ebp - 0x14], esi
push eax
mov edi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.0044bc76
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 8]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4746f4
call dword [sym.imp.USER32.dll_GetClipboardOwner]
cmp eax, dword [ebp + 8]
jne 0x474528
movzx eax, word [0x49da34]
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp + 8], eax
test eax, eax
je 0x474528
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0x1c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
mov eax, dword [esi + 0x48]
push 1
cmp eax, dword [ecx + 0x1e0]
mov eax, ebx
pop ecx
push dword [ebp - 0x1c]
cmovne eax, ecx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor eax, eax
cmp dword [ebp - 4], eax
cmovne esi, eax
and dword [ebp - 4], eax
mov dword [ebp + 8], esi
test esi, esi
je 0x474528
movzx ebx, word [0x49da34]
jmp 0x474540
xor eax, eax
inc eax
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
je 0x474561
xor eax, eax
lea ebx, [eax + 1]
push esi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GlobalSize]
cmp eax, 0x7d00
jbe 0x47460c
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0x2714
call dword [sym.imp.USER32.dll_CloseClipboard]
test ebx, ebx
je 0x4746f4
mov eax, dword [ebp - 0x14]
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x4746a0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
mov dword [ebp - 0x10], esi
call fcn.0046bf87
mov dword [ebp - 4], eax
test eax, eax
jne 0x4746e0
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
call edi
push esi
mov dword [ebp + 8], eax
call edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4745d7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x4745d7
mov ecx, dword [ebp - 8]
cmp ecx, 0xa
jbe 0x4745d7
push ecx
call fcn.0044bde7
xor edx, edx
xor edi, edi
test eax, eax
jle 0x474690
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp + 8]
movsx ecx, byte [edx + ebx]
sub ecx, 9
je 0x47467c
sub ecx, 1
je 0x474681
sub ecx, 3
je 0x474678
mov cl, byte [edx + ebx]
mov byte [esi + edi], cl
jmp 0x474680
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov ecx, eax
xor eax, eax
inc eax
mov dword [ebp - 8], ecx
cmp ebx, eax
jne 0x474630
mov eax, 0x4e20
cmp ecx, eax
jbe 0x474630
mov ecx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], ecx
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x47455a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 8]
push esi
push eax
call dword [sym.imp.VCRUNTIME140.dll_memmove]
mov eax, dword [ebp + 8]
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push eax
call esi
push ebx
call esi
jmp 0x474561
mov eax, edx
jmp 0x474681
mov byte [esi + edi], 0x20
inc edi
inc edx
cmp edx, eax
jl 0x4745e9
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test edi, edi
jg 0x4746be
or edi, 0xffffffff
jmp 0x4746bc
cmp ax, word [0x49da34]
jne 0x4746c0
mov esi, ebx
xor edi, edi
push esi
mov dword [ebp - 0x10], esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xc], eax
test edi, edi
js 0x4746d9
push 0
push 0xa03
push edi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.0046f365
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
je 0x4746ed
push ebx
call edi
test esi, esi
je 0x4746f4
push esi
call edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8