Function at 0x46b590
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x5074ee
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
lea eax, [esp + 0x3c]
push eax
call fcn.00474090
mov ebx, dword [esp + 0xa4]
xor esi, esi
push ebx
lea ecx, [esp + 0x40]
mov dword [esp + 0xa0], esi
call fcn.0047b430
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov ecx, edi
sub ecx, eax
test ecx, 0xfffffffc
jne 0x46b621
cmp eax, esi
je 0x46b60b
call fcn.0041d590
mov edx, dword [esp + 0x48]
push edx
call fcn.004e3ed0
add esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
push eax
jmp 0x46bbbc
mov edx, dword [0x563288]
mov eax, dword [edx + 0xc]
mov ecx, 0x563288
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
mov byte [esp + 0x9c], 1
mov eax, dword [ebx + 0x4c98]
cmp eax, esi
jne 0x46b740
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
cmp ebx, eax
jbe 0x46b663
call fcn.004e48f7
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x2c], edi
jmp 0x46b670
mov esi, eax
cmp dword [esp + 0x48], eax
jbe 0x46b67d
call fcn.004e48f7
test edi, edi
je 0x46b687
cmp edi, dword [esp + 0x3c]
je 0x46b68c
call fcn.004e48f7
cmp ebx, esi
je 0x46b9f7
test edi, edi
jne 0x46b72b
call fcn.004e48f7
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x46b6ad
call fcn.004e48f7
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edx, [esp + 0x20]
push edx
call fcn.0041e520
mov ebp, dword [esp + 0x18]
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, 1
sub eax, dword [ebp - 4]
lea esi, [edi + 1]
sub ecx, esi
or eax, ecx
jge 0x46b6e8
mov ecx, esi
lea eax, [esp + 0x18]
call fcn.004014d0
mov ebp, dword [esp + 0x18]
xor edx, edx
mov word [ebp + edi*2], dx
test esi, esi
jl 0x46b736
cmp esi, dword [ebp - 8]
jg 0x46b736
xor eax, eax
mov dword [ebp - 0xc], esi
mov word [ebp + esi*2], ax
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x46b732
call fcn.004e48f7
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x46b71b
call fcn.004e48f7
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x2c]
add ebx, 4
jmp 0x46b670
mov eax, dword [edi]
jmp 0x46b6a3
mov eax, dword [eax]
jmp 0x46b711
push 0x80070057
call fcn.00401540
cmp eax, 1
jne 0x46b9f7
cmp dword [ebx + 0x51e4], esi
je 0x46b9cc
push esi
lea edi, [esp + 0x20]
call fcn.004350d0
mov byte [esp + 0x9c], 2
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], esi
jg 0x46b7a7
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
lea edi, [esp + 0x24]
call fcn.004350d0
lea edi, [esp + 0x1c]
mov byte [esp + 0x9c], 3
call fcn.00404930
lea ecx, [esp + 0x20]
mov byte [esp + 0x9c], 2
call fcn.004016f0
mov edx, dword [esp + 0x1c]
cmp dword [edx - 0xc], esi
jg 0x46b7db
lea eax, [esp + 0x20]
push 0x1b2
push eax
call fcn.00433510
mov eax, dword [eax]
mov ecx, dword [ebx + 4]
push 0x30
push eax
push ecx
xor eax, eax
call fcn.00488c60
add esp, 0x14
lea ecx, [esp + 0x20]
call fcn.004016f0
lea esi, [esp + 0x54]
call fcn.00404b40
mov byte [esp + 0x9c], 4
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 0x51e4]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x58], edx
push ecx
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x64], eax
call fcn.004105d0
lea eax, [esp + 0x1c]
lea edi, [esp + 0x78]
call fcn.00404930
call fcn.004b1f90
sub esp, 0x3c
mov esi, eax
mov eax, esp
mov dword [esp + 0x64], esp
push eax
lea edi, [esp + 0x94]
mov dword [esp + 0x60], esi
call fcn.0040edf0
push esi
call fcn.004a4a80
test eax, eax
je 0x46b95d
mov edx, dword [esi]
mov eax, dword [ebx + 4]
mov edx, dword [edx + 0x2c]
push eax
mov ecx, esi
call edx
cmp eax, 1
jne 0x46b99f
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
mov ecx, esi
call edx
test eax, eax
jne 0x46b99f
lea esi, [esp + 0x34]
lea edi, [esp + 0x3c]
call fcn.0041c960
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea esi, [esp + 0x34]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call fcn.0041ca30
mov esi, eax
lea edi, [esp + 0x2c]
call fcn.00415390
test al, al
je 0x46b959
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov bl, 6
push 0x511ddc
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00404510
add esp, 0xc
mov edi, eax
lea esi, [esp + 0x2c]
mov byte [esp + 0x9c], 5
call fcn.004761f0
mov eax, dword [eax]
push eax
call ebp
push eax
lea edx, [esp + 0x28]
push edi
push edx
call fcn.00404510
add esp, 0xc
mov byte [esp + 0x9c], bl
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0041e520
lea ecx, [esp + 0x24]
call fcn.004016f0
lea ecx, [esp + 0x28]
mov byte [esp + 0x9c], 4
call fcn.004016f0
push 0
lea edi, [esp + 0x1c]
call fcn.00437f60
call fcn.0041c1c0
lea esi, [esp + 0x34]
lea edi, [esp + 0x3c]
call fcn.0041ca30
mov esi, eax
lea edi, [esp + 0x2c]
call fcn.00415390
test al, al
jne 0x46b8b5
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
test esi, esi
je 0x46b96c
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
push 1
mov ecx, esi
call edx
lea esi, [esp + 0x54]
call fcn.0040ed90
mov byte [esp + 0x9c], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b9f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x46b9f7
lea ecx, [esp + 0x28]
push 0x1b3
push ecx
call fcn.00433510
mov eax, dword [eax]
mov edx, dword [ebx + 4]
push 0x40
push eax
push edx
xor eax, eax
call fcn.00488c60
add esp, 0x14
lea ecx, [esp + 0x28]
call fcn.004016f0
jmp 0x46b95d
lea ecx, [esp + 0x28]
push 0x1b4
push ecx
call fcn.00433510
mov eax, dword [eax]
mov edx, dword [ebx + 4]
push 0x40
push eax
push edx
xor eax, eax
call fcn.00488c60
add esp, 0x14
lea ecx, [esp + 0x28]
call fcn.004016f0
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
lea esi, [edi + 1]
sub eax, esi
or eax, ecx
jge 0x46ba1d
mov ecx, esi
lea eax, [esp + 0x18]
call fcn.004014d0
mov ebp, dword [esp + 0x18]
xor eax, eax
mov word [ebp + edi*2], ax
test esi, esi
jl 0x46b736
cmp esi, dword [ebp - 8]
jg 0x46b736
xor ecx, ecx
mov dword [ebp - 0xc], esi
push str.Preferred_DropEffect
mov word [ebp + esi*2], cx
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 4
push 0x2042
mov dword [esp + 0x2c], eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
push edi
call esi
push edi
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax + 0x14]
push eax
push 0x2042
call ebx
mov ebx, eax
push ebx
call esi
mov esi, eax
mov eax, 0x14
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, 1
mov dword [esi + 0x10], eax
cmp dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
mov dword [esp + 0x28], edx
jle 0x46bac2
mov eax, edx
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401410
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
lea eax, [edx + edx]
push eax
push ebp
add esi, 0x14
push esi
call fcn.004e95a0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esi, dword [esp + 0xa4]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x46bb16
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
push 0xf
call esi
mov edx, dword [esp + 0x24]
push edi
push edx
call esi
call dword [sym.imp.USER32.dll_CloseClipboard]
xor ebx, ebx
jmp 0x46bb68
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
call ebx
push edi
call ebx
lea eax, [esp + 0x28]
push 0x1b0
push eax
call fcn.00433510
mov eax, dword [eax]
mov ecx, dword [esi + 4]
xor ebx, ebx
push ebx
push eax
push ecx
mov eax, 0x510130
call fcn.00488c60
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46bb68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
mov byte [esp + 0x9c], 0
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46bb8d
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x46bbab
mov edi, dword [esp + 0x4c]
call fcn.0041d590
mov eax, dword [esp + 0x48]
push eax
call fcn.004e3ed0
add esp, 4
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
push ecx
call fcn.004e3ed0
add esp, 4
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 4