Function at 0x474e50
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x2d4]
push edi
push eax
mov dword [esp + 0x10], esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4750bb
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esi + 0x2c8]
test eax, eax
je 0x474f0e
cmp dword [eax + 0x1ec], 0xfde9
jne 0x474f0e
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x18], 0x10
mov eax, dword [ebx + 0x14]
jb 0x474eab
mov edi, dword [ebx + 4]
add ebx, 4
jmp 0x474eb0
add ebx, 4
mov edi, ebx
lea esi, [eax + 1]
call fcn.00479570
mov dword [esp + 0x10], eax
add eax, eax
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
je 0x475005
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x475005
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
mov ecx, dword [eax + 0x14]
jb 0x474ef6
mov eax, dword [ebx]
jmp 0x474ef8
mov eax, ebx
mov edx, dword [esp + 0x10]
push edx
lea ebx, [ecx + 1]
push eax
call fcn.004795b0
add esp, 8
jmp 0x474f93
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
mov ecx, dword [edx + 0x24]
call fcn.00471230
cmp dword [edx + 0x18], 0x10
mov ecx, dword [edx + 0x14]
mov esi, eax
mov dword [esp + 0x10], esi
lea ebx, [edx + 4]
jb 0x474f32
mov eax, dword [ebx]
jmp 0x474f34
mov eax, ebx
push 0
push 0
inc ecx
push ecx
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
lea eax, [esi + esi]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x475005
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x475005
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x18], 0x10
mov eax, dword [ecx + 0x14]
jb 0x474f7d
mov ebx, dword [ebx]
mov ecx, dword [esp + 0x10]
push esi
push edi
inc eax
push eax
push ebx
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [esp + 0x18]
cmp byte [0x56e7da], 0
jne 0x474ff1
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
inc eax
push eax
push 0x42
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x10], eax
test eax, eax
je 0x474ff1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [esp + 0x14], eax
test eax, eax
je 0x474ff1
mov edx, dword [ebx + 0x14]
push 0
push 0
inc edx
push edx
push eax
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 1
lea esi, [esp + 0x14]
call fcn.00473cc0
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edi, dword [sym.imp.USER32.dll_SetClipboardData]
push esi
push 0xd
call edi
jmp 0x475053
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x14]
inc eax
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x47504d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x47504d
cmp dword [edi + 0x18], 0x10
mov ecx, dword [edi + 0x14]
jb 0x475031
mov ebx, dword [ebx]
inc ecx
push ecx
push ebx
push eax
call fcn.005056a0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov edi, dword [sym.imp.USER32.dll_SetClipboardData]
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1c], 0
je 0x47509c
mov ebx, dword [esp + 0xc]
movzx ecx, word [ebx + 0xe36]
push 0
push ecx
call edi
push 1
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x47509c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x47509c
mov byte [eax], 2
movzx ebx, word [ebx + 0xe38]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push ebx
call edi
mov edx, dword [ebp + 8]
cmp byte [edx + 0x1d], 0
je 0x4750b5
mov eax, dword [esp + 0xc]
movzx ecx, word [eax + 0xe3a]
push 0
push ecx
call edi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4