Function at 0x4986e8
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x74
mov dword [ebp - 0x14], 0x585a31
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], 0x585a3c
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 0x498794
cmp eax, 7
je 0x49879e
cmp eax, 5
je 0x498843
cmp eax, 0x35
je 0x498a3b
push dword [ebp + 8]
push 0xb
push dword [0x5824f0]
call fcn.0045621f
push eax
push 3
push dword [0x5824e0]
call fcn.0045621f
push eax
push 0xc
lea esi, [esp + 4]
push esi
push 3
call fcn.0042fa34
jmp 0x498d4c
mov eax, 0
jmp 0x498d4c
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.00432e95
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 0x49883e
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 0x49883e
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 0x498d4c
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.0044134c
mov dword [ebp - 0x28], eax
push dword [ebp + 8]
call fcn.00441382
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.00441ef6
mov dword [ebp - 0x38], eax
jmp 0x4988fa
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 8
je 0x4988b5
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 7
je 0x4988b5
xor eax, eax
jmp 0x4988b8
xor eax, eax
inc eax
push 1
push 0x40
push dword [ebp - 0x38]
call fcn.0042f734
push eax
call fcn.00447c38
mov dword [ebp - 0x30], eax
xor eax, eax
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x28]
call fcn.00454da1
mov eax, dword [ebp - 0x1c]
inc eax
push eax
push dword [ebp - 0x30]
call fcn.00445f47
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 0x49888f
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 0x498a2f
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 0x498a2f
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.0044134c
mov dword [ebp - 0x30], eax
push dword [ebp - 0x38]
call fcn.00441382
mov dword [ebp - 0x2c], eax
jmp 0x498a05
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.00432e95
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 0x4989b0
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.0048af86
jmp 0x498d4c
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 0x498cf0
push 0x585a44
call dword [sym.imp.USER32.DLL_RegisterClipboardFormatA]
mov edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax], edx
push 1
push dword [0x5778c4]
push dword [ebp - 0x3c]
call fcn.00473b81
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
call fcn.00465f17
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 0x498b0b
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 0x498b0b
push dword [ebp - 0x1c]
push dword [ebp - 0x34]
call fcn.00465f58
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.0043a387
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
push eax
call fcn.0043a337
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
push eax
call fcn.0043a360
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.0043a4f1
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.0043a54f
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 0x498ce3
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 0x498ce3
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.0043a495
jmp 0x498d4c
mov eax, 0
mov edx, dword [ebp - 0x1c]
cmp eax, edx
jne 0x498d0a
mov eax, 1
mov dword [ebp - 0x20], 1
jmp 0x498d4c
xor eax, eax
inc eax
je 0x498d3e
push dword [ebp + 8]
push 0xb
push dword [0x5824f0]
call fcn.0045621f
push eax
push 3
push dword [0x5824e0]
call fcn.0045621f
push eax
push 0xc
lea esi, [esp + 4]
push esi
push 3
call fcn.0042fa34
jmp 0x498d4c
call fcn.00498d43