Function at 0x4f8370
Capabilities:
List drag and drop files
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56a10e
mov eax, dword fs:[0]
push eax
sub esp, 0x108
push ebx
push esi
push edi
mov eax, dword [0x5b3680]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
push 0x1dc
mov dword [esp + 0x20], 0
call fcn.00529b2d
add esp, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x120], 0
test eax, eax
je 0x4f83de
push ecx
mov ecx, eax
call fcn.0042e140
mov ebx, eax
mov dword [esp + 0x10], eax
jmp 0x4f83e4
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x120], 0xffffffff
mov esi, ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x120], 1
lea ecx, [ebx + 0x44]
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
mov dword [ebx + 0x3c], eax
lea eax, [edi + 4]
push eax
call fcn.00416320
lea eax, [edi + 8]
lea ecx, [ebx + 0x4c]
push eax
call fcn.00416320
lea eax, [edi + 0x14]
lea ecx, [ebx + 0x50]
push eax
call fcn.00416320
lea eax, [edi + 0x10]
lea ecx, [ebx + 0x48]
push eax
call fcn.00416320
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [edi + 0x18]
add ecx, 0x54
add ecx, ebx
push eax
call fcn.00416320
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov dword [esp + 0xa4], vtable.SecC::CSerialObject.0
mov byte [esp + 0x120], 2
lea ecx, [esp + 0xb0]
mov eax, dword [esp + 0x24]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xac], eax
mov dword [esp + 0xa4], vtable.CLogTime.0
call fcn.0041d7b0
mov byte [esp + 0x120], 4
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0xa8]
mov dword [ecx + ebx + 0x18], eax
mov eax, dword [esp + 0xac]
mov dword [ecx + ebx + 0x1c], eax
mov byte [esp + 0x120], 5
lea eax, [esp + 0xb0]
mov dword [esp + 0x2c], eax
mov byte [esp + 0x120], 5
mov ecx, eax
call fcn.00431f40
mov byte [esp + 0x120], 1
mov eax, dword [0x5c412c]
mov dword [esp + 0xa4], vtable.SecC::CSerialObject.0
test al, 1
jne 0x4f8531
or eax, 1
mov dword [0x5c412c], eax
mov byte [esp + 0x120], 8
call fcn.004f7a60
push 0x56c5e0
call fcn.00529798
add esp, 4
mov byte [esp + 0x120], 1
call fcn.004f73c0
mov ecx, dword [ebx]
mov edx, eax
lea eax, [ebx + 0x50]
mov ecx, dword [ecx + 4]
add eax, ecx
mov dword [esp + 0x14], eax
test edx, edx
jne 0x4f854e
xor ecx, ecx
jmp 0x4f8566
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f8553
mov eax, dword [esp + 0x14]
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, eax
call fcn.00402600
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov eax, dword [eax + ebx + 0x54]
cmp dword [eax - 0xc], 0
jne 0x4f85ef
mov eax, dword [0x5c4134]
test al, 1
jne 0x4f85b1
or eax, 1
mov dword [0x5c4134], eax
mov byte [esp + 0x120], 9
call fcn.004f7b70
push 0x56c650
call fcn.00529798
add esp, 4
mov byte [esp + 0x120], 1
call fcn.004f7ae0
mov ecx, dword [ebx]
mov edx, eax
lea eax, [ebx + 0x54]
mov ecx, dword [ecx + 4]
add eax, ecx
mov dword [esp + 0x14], eax
test edx, edx
jne 0x4f85ce
xor ecx, ecx
jmp 0x4f85e6
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f85d3
mov eax, dword [esp + 0x14]
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, eax
call fcn.00402600
mov eax, dword [esp + 0x20]
mov ecx, dword [sym.imp.USER32.dll_OpenClipboard]
cmp dword [eax + 0x13c], 0
mov eax, dword [ebp + 8]
je 0x4f863a
mov bl, 1
mov edi, 0xa
lea esp, [esp]
test bl, bl
je 0x4f8636
push eax
call ecx
test eax, eax
setne bl
call dword [sym.imp.USER32.dll_CloseClipboard]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 8]
mov ecx, dword [sym.imp.USER32.dll_OpenClipboard]
dec edi
jne 0x4f8610
mov ebx, dword [esp + 0x10]
push eax
call ecx
test eax, eax
jne 0x4f8658
mov dword [esp + 0x120], 0xffffffff
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
add ecx, ebx
jmp 0x4f8bac
push 5
push 0x5b5e8c
call dword [sym.imp.USER32.dll_GetPriorityClipboardFormat]
mov edi, eax
lea eax, [edi - 1]
cmp eax, 0xe
ja case.0x4f867a.3
movzx ecx, byte [eax + 0x4f8be8]
jmp dword [ecx*4 + 0x4f8bd4]
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [esp + 0x10], eax
test eax, eax
je case.0x4f867a.3
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je case.0x4f867a.3
mov dword [ebx + 0xcc], 1
push eax
cmp edi, 1
jne 0x4f86c8
lea ecx, [esp + 0x40]
call fcn.00434690
mov byte [esp + 0x120], 0xa
mov ecx, edi
jmp 0x4f86e1
lea ecx, [esp + 0x3c]
call fcn.004031c0
mov dword [esp + 0x120], 0xb
mov ecx, 2
mov dword [esp + 0x1c], ecx
lea ecx, [ebx + 4]
push eax
call fcn.00416320
mov dword [esp + 0x120], 0xa
mov eax, dword [esp + 0x1c]
test al, 2
je 0x4f8715
and eax, 0xfffffffd
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], eax
call fcn.00402750
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x120], 1
test al, 1
je 0x4f8734
and eax, 0xfffffffe
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], eax
call fcn.00402750
lea eax, [esp + 0x14]
xor esi, esi
push eax
mov eax, dword [esp + 0x24]
push ecx
mov dword [esp + 0x20], esi
push eax
lea ecx, [eax + 0x38]
mov dword [esp + 0x20], ebx
call fcn.004f9620
push dword [esp + 0x10]
jmp 0x4f8b8a
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je case.0x4f867a.3
lea ecx, [esp + 0x34]
mov dword [ebx + 0xcc], 4
call fcn.004faa80
mov byte [esp + 0x120], 0xc
lea ecx, [esp + 0x10]
push dword [eax]
call fcn.004031c0
mov byte [esp + 0x120], 0xf
or ecx, 0xffffffff
mov edx, dword [esp + 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4f87b7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0x10]
call fcn.004f9340
push 0x592fd8
lea ecx, [esp + 0x14]
call fcn.004f92c0
lea ecx, [esp + 0xe0]
call fcn.004786d0
mov byte [esp + 0x120], 0x11
xor eax, eax
cmp dword [esp + 0xe4], eax
sete al
test eax, eax
jne 0x4f87fc
push 0x80004005
call fcn.004027b0
push 0
lea ecx, [esp + 0xe4]
mov dword [esp + 0xe8], edi
call fcn.00479350
push ecx
push dword [esp + 0x14]
lea ecx, [esp + 0xe8]
call fcn.004f6fe0
xor ecx, ecx
test eax, eax
setns cl
test ecx, ecx
jne 0x4f8844
push 0x5afaa8
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0x80004005
push eax
call fcn.00532408
lea ecx, [esp + 0xe0]
call fcn.00478a50
lea ecx, [esp + 0x54]
call fcn.00423e90
mov byte [esp + 0x120], 0x12
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x6c]
call fcn.00416320
lea ecx, [esp + 0x68]
call fcn.004faa20
mov dword [esp + 0x6c], eax
lea ecx, [ebx + 0x8c]
lea eax, [esp + 0x54]
mov dword [esp + 0x70], edx
push eax
call fcn.00480f50
lea eax, [esp + 0x14]
xor esi, esi
push eax
mov eax, dword [esp + 0x24]
push ecx
mov dword [esp + 0x20], esi
push eax
lea ecx, [eax + 0x38]
mov dword [esp + 0x20], ebx
call fcn.004f9620
mov byte [esp + 0x120], 0x11
lea ecx, [esp + 0x54]
call fcn.00424660
mov byte [esp + 0x120], 0xf
lea ecx, [esp + 0xe0]
call fcn.004787e0
mov byte [esp + 0x120], 1
lea ecx, [esp + 0x10]
call fcn.00415be0
jmp case.0x4f867a.3
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je case.0x4f867a.3
lea ecx, [esp + 0x44]
mov dword [ebx + 0xcc], 2
call fcn.004faa80
mov byte [esp + 0x120], 0x13
lea ecx, [esp + 0x10]
push dword [eax]
call fcn.004031c0
mov byte [esp + 0x120], 0x16
or ecx, 0xffffffff
mov edx, dword [esp + 0x44]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4f8945
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0x10]
call fcn.004f9340
push str..emf
lea ecx, [esp + 0x14]
call fcn.004f92c0
push dword [esp + 0x10]
push edi
call dword [sym.imp.GDI32.dll_CopyEnhMetaFileW]
xor ecx, ecx
mov dword [esp + 0x14], eax
test eax, eax
setne cl
test ecx, ecx
jne 0x4f898d
push 0x5afaa8
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0x80004005
push eax
call fcn.00532408
mov esi, dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
push edi
call esi
push dword [esp + 0x14]
call esi
lea ecx, [esp + 0x54]
call fcn.00423e90
mov byte [esp + 0x120], 0x18
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x6c]
call fcn.00416320
lea ecx, [esp + 0x68]
call fcn.004faa20
mov dword [esp + 0x6c], eax
lea ecx, [ebx + 0x8c]
lea eax, [esp + 0x54]
mov dword [esp + 0x70], edx
push eax
call fcn.00480f50
lea eax, [esp + 0x14]
xor esi, esi
push eax
mov eax, dword [esp + 0x24]
push ecx
mov dword [esp + 0x20], esi
push eax
lea ecx, [eax + 0x38]
mov dword [esp + 0x20], ebx
call fcn.004f9620
mov byte [esp + 0x120], 0x16
lea ecx, [esp + 0x54]
call fcn.00424660
mov byte [esp + 0x120], 1
lea ecx, [esp + 0x10]
call fcn.00415be0
jmp case.0x4f867a.3
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [esp + 0x2c], eax
test eax, eax
je case.0x4f867a.3
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [esp + 0x14], eax
test eax, eax
je case.0x4f867a.3
push 0
push 0
push 0xffffffffffffffff
mov esi, eax
mov dword [ebx + 0xcc], 3
push esi
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
xor edi, edi
mov dword [esp + 0x24], eax
test eax, eax
je 0x4f8b69
lea ecx, [ecx]
lea ecx, [esp + 0x10]
call fcn.00402b10
mov byte [esp + 0x120], 0x19
lea eax, [esp + 0x10]
mov edx, dword [esp + 0x10]
mov ecx, 1
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x4f8ac3
push 0x104
lea ecx, [esp + 0x14]
call fcn.00402590
mov edx, dword [esp + 0x10]
mov dword [esp + 0x4c], edx
mov byte [esp + 0x120], 0x1a
push 0x104
push edx
push edi
push esi
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov esi, eax
mov byte [esp + 0x120], 0x19
lea ecx, [esp + 0x48]
call fcn.004f93b0
test esi, esi
je 0x4f8b34
lea ecx, [esp + 0x54]
call fcn.00423e90
mov byte [esp + 0x120], 0x1b
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x6c]
call fcn.00416320
lea eax, [esp + 0x54]
push eax
lea ecx, [ebx + 0x8c]
call fcn.00480f50
mov byte [esp + 0x120], 0x19
lea ecx, [esp + 0x54]
call fcn.00424660
mov byte [esp + 0x120], 1
or ecx, 0xffffffff
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4f8b5a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0x14]
inc edi
cmp edi, dword [esp + 0x24]
jb 0x4f8a70
lea eax, [esp + 0x24]
xor esi, esi
push eax
mov eax, dword [esp + 0x24]
push ecx
mov dword [esp + 0x20], esi
push eax
lea ecx, [eax + 0x38]
mov dword [esp + 0x30], ebx
call fcn.004f9620
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esp + 0x120], 0xffffffff
test esi, esi
je 0x4f8bb3
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8