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

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
mov esi, ecx
je 0x4028a1
mov byte [edi], 0
mov ebx, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 1
call ebx
push 0xf
mov ebp, eax
call ebx
test ebp, ebp
mov ebx, eax
jne 0x4028bb
test ebx, ebx
je 0x4028ca
mov al, byte [esi + 0x14]
test al, al
jne 0x4029be
test edi, edi
je 0x4028d3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
push 0x14
push 0x28
mov ecx, esi
call fcn.00402800
test eax, eax
jne 0x4028f8
push str.Clipboard::Get__:_Could_not_open_clipboard_after_many_timed_attempts._Another_program_is_probably_holding_it_open.
mov ecx, esi
call fcn.004027a0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
mov eax, ebx
neg eax
sbb eax, eax
and eax, 0xe
inc eax
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
mov dword [esi], eax
jne 0x402925
push str.Clipboard::Get__:_GetClipboardData___unexpectedly_failed.
mov ecx, esi
call fcn.004027a0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
test eax, eax
mov dword [esi + 8], eax
jne 0x402949
push str.Clipboard::Get__:_GlobalLock___unexpectedly_failed.
mov ecx, esi
call fcn.004027a0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
test ebx, ebx
je 0x40298f
mov ebx, dword [sym.imp.SHELL32.dll_DragQueryFileA]
push 0
push 0x44f4f8
push 0xffffffffffffffff
push eax
call ebx
mov ebp, eax
xor edi, edi
cmp ebp, edi
je 0x40298a
lea ecx, [ebp + ebp - 2]
mov dword [esi + 0x10], ecx
jbe 0x40299e
mov edx, dword [esi + 8]
push 0
push 0
push edi
push edx
call ebx
mov edx, dword [esi + 0x10]
add edx, eax
inc edi
cmp edi, ebp
mov dword [esi + 0x10], edx
jb 0x402970
jmp 0x40299e
mov dword [esi + 0x10], edi
jmp 0x40299e
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402992
sub eax, edx
mov dword [esi + 0x10], eax
cmp dword [esi + 0x10], 0xffffffff
jb 0x402a58
push str.Clipboard::Get__:_The_clipboard_is_too_large__over_4GB_in_size_.
mov ecx, esi
call fcn.004027a0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
test edi, edi
je 0x402a58
test ebx, ebx
je 0x402a1a
mov eax, dword [esi + 8]
push 0
push 0x44f4f8
push 0xffffffffffffffff
push eax
call dword [sym.imp.SHELL32.dll_DragQueryFileA]
test eax, eax
mov dword [esp + 0x14], eax
je 0x402a2a
xor ebp, ebp
test eax, eax
jbe 0x402a2a
lea ebx, [eax - 1]
mov edi, edi
mov ecx, dword [esi + 8]
push 0x3e7
push edi
push ebp
push ecx
call dword [sym.imp.SHELL32.dll_DragQueryFileA]
add edi, eax
cmp ebp, ebx
jae 0x402a0f
mov byte [edi], 0xd
inc edi
mov byte [edi], 0xa
inc edi
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, eax
jb 0x4029f0
jmp 0x402a2a
mov ecx, dword [esi + 8]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
mov byte [edi], al
inc edi
test al, al
jne 0x402a20
mov al, byte [esi + 0x14]
test al, al
je 0x402a58
mov eax, dword [esi + 8]
test eax, eax
je 0x402a48
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov byte [esi + 0x14], 0
mov dword [esi], 0
mov eax, dword [esi + 0x10]
pop edi
pop esi
pop ebp
pop ebx
ret 4