Function at 0x406530
Capabilities:
Open clipboard

Disassembly:
push 0xffffffffffffffff
push 0x5064d8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
lea eax, [esp + 0x20]
push eax
call fcn.00474090
xor esi, esi
push esi
mov dword [esp + 0x48], esi
mov edi, dword [esp + 0x50]
mov ecx, dword [edi + 0xa0]
push esi
push 0x1004
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebp, eax
mov dword [esp + 0x1c], ebp
cmp ebp, esi
jne 0x4065b1
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x4065a7
mov edi, dword [esp + 0x30]
call fcn.0041d590
mov edx, dword [esp + 0x2c]
push edx
call fcn.004e3ed0
add esp, 4
mov eax, dword [esp + 0x20]
push eax
jmp 0x40672f
mov edx, dword [0x563288]
mov eax, dword [edx + 0xc]
mov ecx, 0x563288
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
xor ebx, ebx
cmp ebp, esi
mov byte [esp + 0x44], 1
jle 0x40668c
jmp 0x4065e0
mov edx, dword [0x563288]
mov eax, dword [edx + 0xc]
mov ecx, 0x563288
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push esi
push 0x510130
lea eax, [esp + 0x1c]
mov byte [esp + 0x4c], 2
call fcn.00401560
jmp 0x406610
push esi
push ebx
lea eax, [edi + 0xa0]
push eax
lea eax, [esp + 0x24]
call fcn.00410290
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp - 0xc]
push eax
push ebp
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041e520
push 2
push 0x510b88
lea edx, [esp + 0x1c]
push edx
call fcn.0041e520
inc esi
cmp esi, 3
jl 0x406610
lea eax, [esp + 0x14]
push eax
lea edi, [esp + 0x24]
call fcn.0041ca50
lea eax, [ebp - 0x10]
mov byte [esp + 0x44], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40667b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x4c]
inc ebx
xor esi, esi
cmp ebx, dword [esp + 0x1c]
jl 0x4065e0
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4066e7
push esi
push esi
push esi
push 0x510b90
push 2
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x68], esi
call fcn.0041c230
test al, al
je 0x4066d2
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esp + 0x4c]
push eax
push 0xd
xor edi, edi
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x4066d6
mov edi, dword [esp + 0x4c]
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp edi, esi
je 0x4066e7
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov byte [esp + 0x44], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40670c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x40672a
mov edi, dword [esp + 0x30]
call fcn.0041d590
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004e3ed0
add esp, 4
mov edx, dword [esp + 0x20]
push edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.004e3ed0
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4