Function at 0x477830
Capabilities:
Hide graphical window
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50755d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x54c154]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0
jne 0x477a9a
mov eax, dword [ebp + 8]
sub eax, 0xb
je 0x477a8d
sub eax, 0xf5
je 0x4778d1
sub eax, 0x12
jne 0x477a9a
mov eax, dword [ebp + 0xc]
and eax, 0xfff0
cmp eax, 0xf010
jne 0x477a65
lea eax, [ebp - 0x38]
push eax
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [ebp - 0x34], 0
jg 0x477a9a
push 1
push 0
push 0
push 1
push dword [ebp - 0x38]
mov dword [ebp - 0x34], 1
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x477a9a
cmp byte [edi + 0x45d], 0
je 0x477885
mov eax, dword [ebp + 0xc]
cmp eax, 0x74
jne 0x47790a
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, edi
call fcn.004773d0
push 5
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebx], 1
jmp 0x477a9a
cmp eax, 0x75
jne 0x477a9a
push 3
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_GetAncestor]
mov esi, dword [edi + 0x18]
mov dword [ebp - 0x3c], 0
call fcn.004164c0
lea ecx, [ebp - 0x3c]
push ecx
push esi
mov eax, dword [eax + 0x84]
call eax
mov esi, dword [ebp - 0x3c]
call fcn.004164c0
push esi
mov eax, dword [eax + 0x7c]
call eax
xor ecx, ecx
test eax, eax
cmove ecx, esi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], ecx
push ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x44]
call fcn.004763b0
cmp dword [ebp - 0x40], 0
mov dword [ebp - 4], 1
je 0x47798e
call fcn.004164c0
push dword [ebp - 0x40]
mov esi, dword [eax + 0x80]
mov ecx, esi
call dword [0x510530]
call esi
cmp dword [ebp - 0x18], 0
je 0x4779b1
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4779b1
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x4779f0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4779e5
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4779db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x477aba
push edx
push ecx
call fcn.004a44fe
add esp, 8
mov dword [ebx], 1
jmp 0x477a9a
mov eax, dword [ebp - 0x18]
inc eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4779ab
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x18]
inc ecx
push ecx
push eax
call fcn.004e6098
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4779e5
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4779db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x477aba
jmp 0x4779db
cmp eax, 0xf060
jne 0x477a9a
mov eax, dword [edi + 0x14]
push 0
push 0
push 0x10
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x510530]
lea ecx, [edi + 0x14]
call esi
mov dword [ebx], 1
jmp 0x477a9a
cmp dword [ebp + 0xc], 1
sete al
mov byte [edi + 0x45c], al
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a44cd
mov esp, ebp
pop ebp
ret 0x10
call fcn.004da7c4
int3