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

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x68
mov eax, dword [0x5756f4]
mov dword [ebp - 0x24], eax
mov eax, 0
mov dword [ebp - 0x10], 0
mov eax, 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x20], 1
mov eax, 3
cmp eax, 0
jle 0x4979d6
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x20]
xor al, 1
cmp eax, 0
je 0x49799e
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
push dword [0x57726c]
call dword [sym.imp.USER32.DLL_OpenClipboard]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, 0
je 0x4979bc
jmp 0x4979d6
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.USER32.DLL_PeekMessageW]
mov eax, dword [ebp - 0x64]
sub eax, 1
jg 0x497987
mov eax, dword [ebp - 0x20]
xor al, 1
cmp eax, 0
je 0x4979ec
mov eax, dword [0x575720]
jmp 0x497fb9
mov eax, 1
cmp eax, 0
jle 0x497f80
mov dword [ebp - 0x68], eax
push 0xd
call dword [sym.imp.USER32.DLL_GetClipboardData]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, 0
je 0x497ab0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov dword [ebp - 0x10], eax
mov eax, 0
mov edx, dword [ebp - 0x10]
cmp eax, edx
sete al
xor ah, ah
cwde
xor al, 1
cmp eax, 0
je 0x497aab
call fcn.0048a7cd
mov dword [ebp - 0x2c], eax
mov eax, 2
xchg edx, eax
mov eax, dword [ebp - 0x2c]
mov dword [eax], edx
mov eax, 0
xchg edx, eax
mov eax, dword [ebp - 0x2c]
mov dword [eax + 4], edx
mov eax, 0
xchg edx, eax
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0xc], edx
xor eax, eax
inc eax
push eax
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push eax
push dword [ebp - 0x10]
call fcn.0043283a
mov edx, eax
mov eax, dword [ebp - 0x2c]
mov dword [eax + 8], edx
mov eax, 7
xchg edx, eax
mov eax, dword [ebp - 0x2c]
mov dword [eax], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
jmp 0x497f80
push 0xf
call dword [sym.imp.USER32.DLL_GetClipboardData]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, 0
je 0x497ca5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov dword [ebp - 0x10], eax
mov eax, 0
mov edx, dword [ebp - 0x10]
cmp eax, edx
sete al
xor ah, ah
cwde
xor al, 1
cmp eax, 0
je 0x497ca0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.SHELL32.DLL_DragQueryFileW]
mov dword [ebp - 0x38], eax
push dword [ebp - 0x38]
call fcn.00441712
mov dword [ebp - 0x28], eax
push 1
push 0x40
call fcn.0048a7cd
push eax
call fcn.00447454
mov dword [ebp - 0x2c], eax
mov eax, 0
mov dword [ebp - 0x3c], 0
mov eax, 0
mov dword [ebp - 0x1c], 0
mov eax, 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x38]
cmp eax, 0
jle 0x497c59
mov dword [ebp - 0x6c], eax
push 0
push 0
push dword [ebp - 0x3c]
push dword [ebp - 0xc]
call dword [sym.imp.SHELL32.DLL_DragQueryFileW]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x1c]
cmp eax, edx
jle 0x497bcf
mov eax, dword [ebp - 0x40]
cmp eax, 0x104
jle 0x497b82
mov eax, dword [ebp - 0x40]
jmp 0x497b87
mov eax, 0x104
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
shl eax, 1
push eax
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.DLL_realloc]
add esp, 8
mov dword [ebp - 0x18], eax
mov eax, 0
mov edx, dword [ebp - 0x18]
cmp eax, edx
jne 0x497bc9
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.DLL_free]
add esp, 4
mov eax, 0
mov dword [ebp - 0x14], 0
jmp 0x497c59
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp - 0x3c]
push dword [ebp - 0xc]
call dword [sym.imp.SHELL32.DLL_DragQueryFileW]
push 0xffffffffffffffff
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push eax
push dword [ebp - 0x14]
call fcn.00447353
push dword [0x56f704]
call fcn.00489715
push dword [0x57ee7c]
push dword [0x578ed0]
call fcn.004895c9
push dword [ebp - 0x2c]
call fcn.0048a83b
call fcn.004abbd7
call fcn.00489b7f
call fcn.004896e0
push dword [0x575cc4]
push dword [ebp - 0x28]
call fcn.00440c7e
call fcn.00489b48
push dword [ebp - 0x2c]
call fcn.004458d2
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x6c]
sub eax, 1
jg 0x497b53
push 1
call fcn.0048a859
mov eax, 0
mov edx, dword [ebp - 0x14]
cmp eax, edx
sete al
xor ah, ah
cwde
xor al, 1
cmp eax, 0
je 0x497c91
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.DLL_free]
add esp, 4
mov eax, 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
jmp 0x497f80
mov dword [ebp - 0x34], 0x582406
push 0x582414
call dword [sym.imp.USER32.DLL_RegisterClipboardFormatA]
mov edx, eax
mov eax, dword [ebp - 0x34]
mov dword [eax], edx
push str.JFIF
call dword [sym.imp.USER32.DLL_RegisterClipboardFormatA]
mov edx, eax
mov eax, dword [ebp - 0x34]
mov dword [eax + 4], edx
push 0x58241d
call dword [sym.imp.USER32.DLL_RegisterClipboardFormatA]
mov edx, eax
mov eax, dword [ebp - 0x34]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
cmp eax, 0
je 0x497d18
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
cmp eax, 0
je 0x497d18
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 8]
cmp eax, 0
je 0x497d18
jmp 0x497d1c
xor eax, eax
jmp 0x497d1f
xor eax, eax
inc eax
mov eax, 4
cmp eax, 0
jle 0x497d5f
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.DLL_GetClipboardData]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, 0
je 0x497d4c
jmp 0x497d5f
mov eax, dword [ebp - 0x34]
add eax, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x70]
sub eax, 1
jg 0x497d2b
mov eax, dword [ebp - 0xc]
cmp eax, 0
je 0x497db7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov dword [ebp - 0x10], eax
mov eax, 0
mov edx, dword [ebp - 0x10]
cmp eax, edx
sete al
xor ah, ah
cwde
xor al, 1
cmp eax, 0
je 0x497db2
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GlobalSize]
push eax
push dword [ebp - 0x10]
call fcn.00467125
push eax
call fcn.0047337a
mov dword [ebp - 0x24], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
jmp 0x497f80
push 0x11
call dword [sym.imp.USER32.DLL_GetClipboardData]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, 0
je 0x497f74
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov dword [ebp - 0x10], eax
mov eax, 0
mov edx, dword [ebp - 0x10]
cmp eax, edx
sete al
xor ah, ah
cwde
xor al, 1
cmp eax, 0
je 0x497f6f
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x44], eax
mov eax, 0
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0xc]
sar eax, 0x10
cmp eax, 0x20
jne 0x497e70
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x10]
cmp eax, 3
jne 0x497e70
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x34]
cmp eax, 0xff000000
jne 0x497e70
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x28]
cmp eax, 0xff0000
jne 0x497e70
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x2c]
cmp eax, 0xff00
jne 0x497e70
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x30]
cmp eax, 0xff
jne 0x497e70
jmp 0x497e74
xor eax, eax
jmp 0x497e77
xor eax, eax
inc eax
cmp eax, 0
je 0x497f08
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 8]
cmp eax, 0
jge 0x497eaf
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 8]
mov edx, eax
mov eax, 0
sub eax, edx
mov edx, eax
mov eax, dword [ebp - 0x44]
mov dword [eax + 8], edx
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x30]
call fcn.00439d7a
mov edx, eax
mov eax, 0
cmp eax, edx
jne 0x497ed7
push dword [ebp - 0x3c]
call fcn.00439e31
cmp eax, 0
je 0x497ed7
jmp 0x497edb
xor eax, eax
jmp 0x497ede
xor eax, eax
inc eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x10]
call fcn.00439e4a
push eax
push 0
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 4]
push eax
call fcn.00439e58
jmp 0x497f35
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push 2
call dword [sym.imp.USER32.DLL_GetClipboardData]
mov dword [ebp - 0xc], eax
push 2
push dword [ebp - 0xc]
call fcn.0043b221
mov dword [ebp - 0x24], eax
mov eax, 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
cmp eax, 0
je 0x497f6f
mov eax, 0
mov edx, dword [ebp - 0x30]
cmp eax, edx
jne 0x497f55
mov eax, dword [0x5756f4]
jmp 0x497fb9
push dword [ebp - 0x30]
call fcn.0048a7cd
push eax
call fcn.0047298b
mov dword [ebp - 0x24], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
jmp 0x497f80
mov eax, dword [ebp - 0x68]
sub eax, 1
jg 0x4979fc
call dword [sym.imp.USER32.DLL_CloseClipboard]
mov eax, dword [ebp - 0xc]
cmp eax, 0
je 0x497f9e
mov eax, 0
mov edx, dword [ebp - 0x10]
cmp eax, edx
jne 0x497f9e
jmp 0x497fa2
xor eax, eax
jmp 0x497fa5
xor eax, eax
inc eax
cmp eax, 0
je 0x497fb6
mov eax, dword [0x575720]
jmp 0x497fb9
mov eax, dword [ebp - 0x24]
leave
ret