Function at 0x408cb0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4397a2
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x44a03c]
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 dword [ebp - 0x130], ecx
push 0x14
call fcn.0040e809
mov ebx, eax
mov dword [ebp - 0x148], eax
add esp, 4
test ebx, ebx
je 0x408d27
mov dword [ebx + 4], 1
mov dword [ebx + 8], 1
mov dword [ebx], 0x43b630
mov dword [ebx + 0xc], 0x43b3d8
mov dword [ebx + 0x10], 0
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [ebx + 0x10], eax
jmp 0x408d2f
xor ebx, ebx
mov dword [ebp - 0x148], ebx
lea eax, [ebx + 0xc]
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x150], eax
mov dword [ebp - 4], 0
call fcn.00405700
mov ecx, eax
test ecx, ecx
je 0x4092f7
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x138], esi
mov byte [ebp - 4], 1
call fcn.00405700
mov ecx, eax
test ecx, ecx
je 0x409301
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x144], edi
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 2
mov dword [ebp - 0x134], 0
jl 0x408f7e
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax + 0x3c]
sub ecx, dword [eax + 0x38]
mov eax, 0x92492493
imul ecx
add edx, ecx
mov ecx, dword [ebp + 8]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jae 0x408f7e
mov esi, dword [ebp - 0x130]
lea edx, [ebp - 0x194]
push edx
xorps xmm0, xmm0
mov dword [ebp - 0x15c], 0
push ecx
mov eax, dword [esi + 8]
push 0x1005
movlpd qword [ebp - 0x18c], xmm0
movlpd qword [ebp - 0x184], xmm0
push dword [eax + 4]
movlpd qword [ebp - 0x17c], xmm0
movlpd qword [ebp - 0x174], xmm0
movlpd qword [ebp - 0x16c], xmm0
movlpd qword [ebp - 0x164], xmm0
mov dword [ebp - 0x194], 4
mov dword [ebp - 0x190], ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x174]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x38]
lea esi, [eax + ecx*4]
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 0x138]
call fcn.00403070
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0x144]
call fcn.00403070
mov eax, dword [esi]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x134], eax
xor eax, eax
push 6
push 0x43b550
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00407e30
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov edi, dword [sym.imp.USER32.dll_AppendMenuW]
cmovae eax, dword [ebp - 0x28]
push eax
push 1
push 0
push dword [ebx + 0x10]
call edi
lea ecx, [ebp - 0x28]
call fcn.00402c20
push 6
xor eax, eax
mov dword [ebp - 0x18], 0
push str._rY6R
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00407e30
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 2
push 0
push dword [ebx + 0x10]
call edi
lea ecx, [ebp - 0x28]
call fcn.00402c20
push 6
xor eax, eax
mov dword [ebp - 0x18], 0
push 0x43b570
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00407e30
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 3
push 0
push dword [ebx + 0x10]
call edi
lea ecx, [ebp - 0x28]
call fcn.00402c20
push 4
xor eax, eax
mov dword [ebp - 0x18], 0
push 0x43b580
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00407e30
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 4
push 0
push dword [ebx + 0x10]
call edi
lea ecx, [ebp - 0x28]
call fcn.00402c20
mov esi, dword [ebp - 0x138]
mov edi, dword [ebp - 0x144]
push 2
xor eax, eax
mov dword [ebp - 0x18], 0
push 0x43b58c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00407e30
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 5
push 0
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_AppendMenuW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x408ff4
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408fea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40930b
push edx
push ecx
call fcn.0040e839
add esp, 8
mov eax, dword [ebp - 0x130]
xorps xmm0, xmm0
movlpd qword [ebp - 0x140], xmm0
mov eax, dword [eax]
mov ebx, dword [eax + 4]
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebp - 0x150]
push 0
push ebx
push 0
push dword [ebp - 0x13c]
push dword [ebp - 0x140]
push 0x100
push dword [eax + 4]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
dec eax
cmp eax, 4
ja case.default.0x40904d
jmp dword [eax*4 + 0x409310]
push esi
lea ecx, [ebp - 0x12c]
call fcn.004023d0
push dword [eax]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00402530
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
call fcn.00406cf0
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.00402c20
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je case.default.0x40904d
push eax
call fcn.004286ee
add esp, 4
jmp case.default.0x40904d
push edi
lea ecx, [ebp - 0x12c]
call fcn.004023d0
push dword [eax]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.00402530
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
call fcn.00406cf0
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.00402c20
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je case.default.0x40904d
push eax
call fcn.004286ee
add esp, 4
jmp case.default.0x40904d
mov ebx, dword [ebp - 0x130]
push 0x10
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebp - 0x134], eax
call fcn.0040e809
mov ecx, eax
add esp, 4
mov dword [ebp - 0x13c], ecx
test ecx, ecx
je 0x409142
mov eax, dword [ebp - 0x134]
mov dword [ecx + 4], 1
mov dword [ecx + 8], 1
mov dword [ecx], fcn.00407210
mov dword [ecx + 0xc], eax
jmp 0x409144
xor ecx, ecx
lea eax, [ecx + 0xc]
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x158], eax
push dword [eax]
mov byte [ebp - 4], 7
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x40916a
xor dl, dl
jmp 0x409206
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x130], eax
inc eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x134], eax
test eax, eax
jne 0x409197
call dword [sym.imp.USER32.dll_CloseClipboard]
xor dl, dl
jmp 0x409206
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0x130]
mov dword [ebp - 0x13c], eax
push 0
push eax
call fcn.004262b0
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x4091cf
push dword [esi - 0xc]
lea ecx, [ebp - 0x138]
call fcn.00404c70
mov esi, dword [ebp - 0x138]
push dword [ebp - 0x130]
push esi
push dword [ebp - 0x13c]
call fcn.004257b0
add esp, 0xc
push dword [ebp - 0x134]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x134]
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dl, 1
mov ecx, dword [ebx]
test dl, dl
push 0x40
push 0x43b488
mov eax, 0x43b594
mov ebx, 0x43b5a0
cmove eax, ebx
push eax
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x158]
call fcn.00402cf0
jmp case.default.0x40904d
push dword [ebp - 0x134]
call fcn.0040b4f0
mov edx, dword [ebp - 0x130]
add esp, 4
test al, al
mov ecx, 0x43b5ac
mov ebx, 0x43b5b8
cmove ecx, ebx
mov edx, dword [edx]
push 0x40
push 0x43b488
push ecx
push dword [edx + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp case.default.0x40904d
mov ecx, dword [ebp - 0x130]
call fcn.00406820
lea edx, [edi - 0x10]
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409296
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4092b1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x148]
test esi, esi
je 0x4092d9
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4092d9
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4092d9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
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.0040ed5f
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00403bf0
push 0x80004005
call fcn.00403bf0
call fcn.00428329
push esp
nop
inc eax
add ah, bh
nop
inc eax
add byte [eax + 0x35004090], ch
xchg edx, eax
inc eax
add byte [ebp - 0x6e], ch
inc eax
add ah, cl
int3