Function at 0x497aa0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x74
mov dword [ebp - 0x14], 0x621785
mov eax, 0
xchg edx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax], edx
mov eax, 0
xchg edx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov dword [ebp - 0x10], 0x621790
mov eax, 0
xchg edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, 0
xchg edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 3
je 0x497b4c
cmp eax, 7
je 0x497b56
cmp eax, 5
je 0x497bfb
cmp eax, 0x35
je 0x497df3
push dword [ebp + 8]
push 0xb
push dword [0x61e2b4]
call fcn.004555ea
push eax
push 3
push dword [0x61e2a4]
call fcn.004555ea
push eax
push 0xc
lea esi, [esp + 4]
push esi
push 3
call fcn.0042f5da
jmp 0x498104
mov eax, 0
jmp 0x498104
mov eax, 0xd
xchg edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, 0xffffffff
mov dword [ebp - 0x1c], 0xffffffff
xor eax, eax
inc eax
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call fcn.00432a3b
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
shl eax, 1
add eax, 2
push eax
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp eax, 0
je 0x497bf6
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov dword [ebp - 0x20], eax
mov eax, 0
mov edx, dword [ebp - 0x20]
cmp eax, edx
sete al
xor ah, ah
cwde
xor al, 1
cmp eax, 0
je 0x497bf6
mov eax, dword [ebp - 0x1c]
shl eax, 1
add eax, 2
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call dword [sym.imp.MSVCRT.DLL_memcpy]
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
jmp 0x498104
mov eax, 0xf
xchg edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, 2
mov dword [ebp - 0x1c], 2
push dword [ebp + 8]
call fcn.004407d8
mov dword [ebp - 0x28], eax
push dword [ebp + 8]
call fcn.0044080e
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
sub eax, edx
push edx
mov edx, 0x10
mov ecx, edx
cdq
idiv ecx
pop edx
push eax
call fcn.00441382
mov dword [ebp - 0x38], eax
jmp 0x497cb2
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 8
je 0x497c6d
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 7
je 0x497c6d
xor eax, eax
jmp 0x497c70
xor eax, eax
inc eax
push 1
push 0x40
push dword [ebp - 0x38]
call fcn.0042f2da
push eax
call fcn.004470c4
mov dword [ebp - 0x30], eax
xor eax, eax
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x28]
call fcn.00454298
mov eax, dword [ebp - 0x1c]
inc eax
push eax
push dword [ebp - 0x30]
call fcn.004453d3
pop edx
xchg edx, eax
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
cmp eax, edx
jb 0x497c47
mov eax, dword [ebp - 0x1c]
shl eax, 2
add eax, 0x14
push eax
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp eax, 0
je 0x497de7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov dword [ebp - 0x20], eax
mov eax, 0
mov edx, dword [ebp - 0x20]
cmp eax, edx
sete al
xor ah, ah
cwde
xor al, 1
cmp eax, 0
je 0x497de7
push 0x14
push 0
push dword [ebp - 0x20]
call dword [sym.imp.MSVCRT.DLL_memset]
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x40], eax
mov eax, 0x14
xchg edx, eax
mov eax, dword [ebp - 0x40]
mov dword [eax], edx
xor eax, eax
inc eax
xchg edx, eax
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov edx, eax
mov eax, dword [ebp - 0x20]
add eax, edx
mov dword [ebp - 0x20], eax
push dword [ebp - 0x38]
call fcn.004407d8
mov dword [ebp - 0x30], eax
push dword [ebp - 0x38]
call fcn.0044080e
mov dword [ebp - 0x2c], eax
jmp 0x497dbd
mov eax, 0xffffffff
mov dword [ebp - 0x1c], 0xffffffff
xor eax, eax
inc eax
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x30]
call fcn.00432a3b
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
shl eax, 1
add eax, 2
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call dword [sym.imp.MSVCRT.DLL_memcpy]
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x30]
add eax, 0x10
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
cmp eax, edx
jb 0x497d68
mov al, 0
xchg edx, eax
mov eax, dword [ebp - 0x20]
mov byte [eax], dl
mov al, 0
xchg edx, eax
mov eax, dword [ebp - 0x20]
mov byte [eax + 1], dl
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push 1
call fcn.0048a789
jmp 0x498104
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0xc]
and eax, 0xffff
push eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0xc]
shr eax, 0x10
pop edx
xchg edx, eax
imul edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0
jle 0x4980a8
push 0x621798
call dword [sym.imp.USER32.DLL_RegisterClipboardFormatA]
mov edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax], edx
push 1
push dword [0x614c9c]
push dword [ebp - 0x3c]
call fcn.00473363
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
call fcn.004652b4
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp eax, 0
je 0x497ec3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov dword [ebp - 0x24], eax
mov eax, 0
mov edx, dword [ebp - 0x24]
cmp eax, edx
sete al
xor ah, ah
cwde
xor al, 1
cmp eax, 0
je 0x497ec3
push dword [ebp - 0x1c]
push dword [ebp - 0x34]
call fcn.004652f5
push eax
push dword [ebp - 0x24]
call dword [sym.imp.MSVCRT.DLL_memcpy]
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov eax, 0x11
xchg edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], edx
xor eax, eax
push eax
push dword [ebp - 0x3c]
call fcn.00439c43
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
push eax
call fcn.00439bf3
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
push eax
call fcn.00439c1c
mov dword [ebp - 0x4c], eax
mov eax, 0
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x44]
call fcn.00439d6c
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x48]
push edx
mov edx, dword [ebp - 0x4c]
imul edx
pop edx
shl eax, 2
mov dword [ebp - 0x1c], eax
mov eax, 0
mov dword [ebp - 0x58], 0
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x44]
call fcn.00439dca
mov eax, dword [ebp - 0x1c]
add eax, 0x7c
push eax
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
cmp eax, 0
je 0x49809b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov dword [ebp - 0x20], eax
mov eax, 0
mov edx, dword [ebp - 0x20]
cmp eax, edx
sete al
xor ah, ah
cwde
xor al, 1
cmp eax, 0
je 0x49809b
push 0x7c
push 0
push dword [ebp - 0x20]
call dword [sym.imp.MSVCRT.DLL_memset]
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x5c], eax
mov eax, 0x7c
xchg edx, eax
mov eax, dword [ebp - 0x5c]
mov dword [eax], edx
mov eax, dword [ebp - 0x48]
xchg edx, eax
mov eax, dword [ebp - 0x5c]
mov dword [eax + 4], edx
mov eax, 0
mov edx, dword [ebp - 0x4c]
sub eax, edx
mov edx, eax
mov eax, dword [ebp - 0x5c]
mov dword [eax + 8], edx
mov eax, 0x200001
xchg edx, eax
mov eax, dword [ebp - 0x5c]
mov dword [eax + 0xc], edx
mov eax, 3
xchg edx, eax
mov eax, dword [ebp - 0x5c]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x1c]
xchg edx, eax
mov eax, dword [ebp - 0x5c]
mov dword [eax + 0x14], edx
mov eax, 0xff000000
xchg edx, eax
mov eax, dword [ebp - 0x5c]
mov dword [eax + 0x34], edx
mov eax, 0xff0000
xchg edx, eax
mov eax, dword [ebp - 0x5c]
mov dword [eax + 0x28], edx
mov eax, 0xff00
xchg edx, eax
mov eax, dword [ebp - 0x5c]
mov dword [eax + 0x2c], edx
mov eax, 0xff
xchg edx, eax
mov eax, dword [ebp - 0x5c]
mov dword [eax + 0x30], edx
mov eax, 0x57696e20
xchg edx, eax
mov eax, dword [ebp - 0x5c]
mov dword [eax + 0x38], edx
mov eax, 4
xchg edx, eax
mov eax, dword [ebp - 0x5c]
mov dword [eax + 0x6c], edx
push dword [ebp - 0x1c]
push dword [ebp - 0x54]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
mov edx, eax
mov eax, dword [ebp - 0x20]
add eax, edx
push eax
call dword [sym.imp.MSVCRT.DLL_memcpy]
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push dword [ebp - 0x44]
push dword [ebp - 0x3c]
call fcn.00439d10
jmp 0x498104
mov eax, 0
mov edx, dword [ebp - 0x1c]
cmp eax, edx
jne 0x4980c2
mov eax, 1
mov dword [ebp - 0x20], 1
jmp 0x498104
xor eax, eax
inc eax
je 0x4980f6
push dword [ebp + 8]
push 0xb
push dword [0x61e2b4]
call fcn.004555ea
push eax
push 3
push dword [0x61e2a4]
call fcn.004555ea
push eax
push 0xc
lea esi, [esp + 4]
push esi
push 3
call fcn.0042f5da
jmp 0x498104
call fcn.004980fb