Function at 0x473cf0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52ed60
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x568fd0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], esi
mov eax, dword [esi + 0x2d4]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4740a3
mov eax, dword [esi + 0x2c8]
lea edi, [eax + 0x4c]
mov dword [esp + 0x24], eax
mov byte [esp + 0x28], 1
mov dword [esp + 0x20], edi
call fcn.004a5900
lea ebx, [esi + 0x250]
mov dword [esp + 0x70], 0
call fcn.004a3ce0
mov edi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test al, al
je 0x473d83
movzx eax, word [esi + 0xe3a]
push eax
call edi
mov byte [esp + 0x17], 1
test eax, eax
jne 0x473d88
mov byte [esp + 0x17], 0
cmp dword [esi + 0xba4], 1
sete cl
movzx edx, cl
push edx
push esi
call fcn.0048a640
movzx eax, word [esi + 0xe36]
push eax
call edi
test eax, eax
setne al
test al, al
jne 0x473df2
movzx ecx, word [esi + 0xe38]
push ecx
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x473dfc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x473dfc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
cmp eax, 1
jne 0x473de5
cmp byte [edi], 2
jne 0x473de5
mov bl, al
jmp 0x473de7
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test bl, bl
je 0x473dfc
mov dword [esp + 0x18], 1
jmp 0x473e0c
movzx eax, byte [esp + 0x17]
neg eax
sbb eax, eax
and eax, 2
mov dword [esp + 0x18], eax
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebp, eax
mov dword [esp + 0x2c], ebp
test ebp, ebp
je 0x473f28
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x473f28
lea edx, [esp + 0x34]
push edx
call fcn.00476580
mov esi, dword [esp + 0x1c]
mov byte [esp + 0x70], 1
mov eax, dword [esi + 0x2c8]
test eax, eax
je 0x473e9b
cmp dword [eax + 0x1ec], 0xfde9
jne 0x473e9b
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov ebx, eax
shr ebx, 1
mov esi, ebx
call fcn.00479420
mov esi, eax
lea eax, [esi + 1]
lea ecx, [esp + 0x34]
call fcn.00476850
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x40]
jne 0x473e8b
call fcn.00501daa
mov ecx, dword [esp + 0x40]
push esi
push ecx
call fcn.00479480
add esp, 8
jmp 0x473ef0
call fcn.00471410
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
mov ebx, eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
dec esi
lea ebp, [esi + 1]
mov eax, ebp
lea ecx, [esp + 0x34]
call fcn.00476850
mov edx, dword [esp + 0x44]
sub edx, dword [esp + 0x40]
jne 0x473ed6
call fcn.00501daa
mov eax, dword [esp + 0x40]
push 0
push 0
push ebp
push eax
push 0xffffffffffffffff
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x40]
jne 0x473eff
call fcn.00501daa
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x20]
push eax
mov ecx, esi
call fcn.0048a3d0
lea ecx, [esp + 0x34]
mov byte [esp + 0x70], 0
call fcn.00483870
push ebp
jmp 0x47407b
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
mov dword [esp + 0x2c], edi
test edi, edi
je 0x474081
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x474081
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
xor ecx, ecx
mov esi, eax
test eax, eax
jbe 0x473f71
mov edi, edi
cmp esi, eax
jne 0x473f6c
cmp byte [ecx + ebx], 0
jne 0x473f6c
mov esi, ecx
inc ecx
cmp ecx, eax
jb 0x473f60
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp + 0x2c8]
test eax, eax
je 0x47406b
cmp dword [eax + 0x1ec], 0xfde9
jne 0x47406b
lea edi, [esi + 1]
push edi
lea ecx, [esp + 0x38]
call fcn.00476750
mov byte [esp + 0x70], 2
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x40]
sar ecx, 1
jne 0x473fb6
call fcn.00501daa
mov edx, dword [esp + 0x40]
push edi
push edx
push esi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x40]
sar eax, 1
jne 0x473fdb
call fcn.00501daa
mov edi, dword [esp + 0x40]
mov esi, ebx
call fcn.00479420
mov esi, eax
lea ecx, [esi + 1]
push ecx
lea ecx, [esp + 0x50]
call fcn.004765e0
mov byte [esp + 0x70], 3
mov edx, dword [esp + 0x5c]
sub edx, dword [esp + 0x58]
jne 0x474009
call fcn.00501daa
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x40]
mov edi, dword [esp + 0x58]
sar eax, 1
jne 0x47401e
call fcn.00501daa
push esi
push edi
mov edi, dword [esp + 0x48]
call fcn.00479480
mov ecx, dword [esp + 0x64]
add esp, 8
sub ecx, dword [esp + 0x58]
jne 0x47403b
call fcn.00501daa
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x58]
push edx
push eax
mov ecx, esi
mov edx, ebp
call fcn.0048a3d0
lea ecx, [esp + 0x4c]
call fcn.00483870
lea ecx, [esp + 0x34]
mov byte [esp + 0x70], 0
call fcn.00483870
mov edi, dword [esp + 0x2c]
jmp 0x47407a
mov ecx, dword [esp + 0x18]
push ecx
push ebx
mov ecx, esi
mov edx, ebp
call fcn.0048a3d0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
mov edi, dword [esp + 0x20]
mov dword [esp + 0x70], 0xffffffff
call fcn.004a5960
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret