Function at 0x49805f
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 [0x5778cc]
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 0x4980eb
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x20]
xor al, 1
cmp eax, 0
je 0x4980b3
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
push dword [0x57949c]
call dword [sym.imp.USER32.DLL_OpenClipboard]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, 0
je 0x4980d1
jmp 0x4980eb
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 0x49809c
mov eax, dword [ebp - 0x20]
xor al, 1
cmp eax, 0
je 0x498101
mov eax, dword [0x5778f8]
jmp 0x4986ce
mov eax, 1
cmp eax, 0
jle 0x498695
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 0x4981c5
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 0x4981c0
call fcn.0048aee2
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.0043299b
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 0x498695
push 0xf
call dword [sym.imp.USER32.DLL_GetClipboardData]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, 0
je 0x4983ba
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 0x4983b5
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.00441ef6
mov dword [ebp - 0x28], eax
push 1
push 0x40
call fcn.0048aee2
push eax
call fcn.00447c38
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 0x49836e
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 0x4982e4
mov eax, dword [ebp - 0x40]
cmp eax, 0x104
jle 0x498297
mov eax, dword [ebp - 0x40]
jmp 0x49829c
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 0x4982de
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.DLL_free]
add esp, 4
mov eax, 0
mov dword [ebp - 0x14], 0
jmp 0x49836e
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.00447b37
push dword [0x5718dc]
call fcn.00489e2a
push dword [0x582440]
push dword [0x57c460]
call fcn.00489cde
push dword [ebp - 0x2c]
call fcn.0048af50
call fcn.004ac49d
call fcn.0048a294
call fcn.00489df5
push dword [0x577ef4]
push dword [ebp - 0x28]
call fcn.00441462
call fcn.0048a25d
push dword [ebp - 0x2c]
call fcn.004460b6
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x6c]
sub eax, 1
jg 0x498268
push 1
call fcn.0048af6e
mov eax, 0
mov edx, dword [ebp - 0x14]
cmp eax, edx
sete al
xor ah, ah
cwde
xor al, 1
cmp eax, 0
je 0x4983a6
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 0x498695
mov dword [ebp - 0x34], 0x585a1e
push 0x585a2c
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 0x585a35
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 0x49842d
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
cmp eax, 0
je 0x49842d
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 8]
cmp eax, 0
je 0x49842d
jmp 0x498431
xor eax, eax
jmp 0x498434
xor eax, eax
inc eax
mov eax, 4
cmp eax, 0
jle 0x498474
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 0x498461
jmp 0x498474
mov eax, dword [ebp - 0x34]
add eax, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x70]
sub eax, 1
jg 0x498440
mov eax, dword [ebp - 0xc]
cmp eax, 0
je 0x4984cc
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 0x4984c7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GlobalSize]
push eax
push dword [ebp - 0x10]
call fcn.0046794f
push eax
call fcn.00473a55
mov dword [ebp - 0x24], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
jmp 0x498695
push 0x11
call dword [sym.imp.USER32.DLL_GetClipboardData]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, 0
je 0x498689
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 0x498684
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 0x498585
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x10]
cmp eax, 3
jne 0x498585
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x34]
cmp eax, 0xff000000
jne 0x498585
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x28]
cmp eax, 0xff0000
jne 0x498585
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x2c]
cmp eax, 0xff00
jne 0x498585
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x30]
cmp eax, 0xff
jne 0x498585
jmp 0x498589
xor eax, eax
jmp 0x49858c
xor eax, eax
inc eax
cmp eax, 0
je 0x49861d
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 8]
cmp eax, 0
jge 0x4985c4
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.0043a139
mov edx, eax
mov eax, 0
cmp eax, edx
jne 0x4985ec
push dword [ebp - 0x3c]
call fcn.0043a1f0
cmp eax, 0
je 0x4985ec
jmp 0x4985f0
xor eax, eax
jmp 0x4985f3
xor eax, eax
inc eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x10]
call fcn.0043a209
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.0043a217
jmp 0x49864a
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.0043b66c
mov dword [ebp - 0x24], eax
mov eax, 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
cmp eax, 0
je 0x498684
mov eax, 0
mov edx, dword [ebp - 0x30]
cmp eax, edx
jne 0x49866a
mov eax, dword [0x5778cc]
jmp 0x4986ce
push dword [ebp - 0x30]
call fcn.0048aee2
push eax
call fcn.00473066
mov dword [ebp - 0x24], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
jmp 0x498695
mov eax, dword [ebp - 0x68]
sub eax, 1
jg 0x498111
call dword [sym.imp.USER32.DLL_CloseClipboard]
mov eax, dword [ebp - 0xc]
cmp eax, 0
je 0x4986b3
mov eax, 0
mov edx, dword [ebp - 0x10]
cmp eax, edx
jne 0x4986b3
jmp 0x4986b7
xor eax, eax
jmp 0x4986ba
xor eax, eax
inc eax
cmp eax, 0
je 0x4986cb
mov eax, dword [0x5778f8]
jmp 0x4986ce
mov eax, dword [ebp - 0x24]
leave
ret