Function at 0x6790d8a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x6798e3a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_COleDataSource::COleDataSource
xor ebx, ebx
push 0xa
lea ecx, [esp + 0x34]
mov dword [esp + 0x8c], ebx
call sub.MFC42.DLL_CStringList::CStringList
lea ecx, [esp + 0x10]
mov byte [esp + 0x88], 1
call sub.MFC42.DLL_CString::CString_4
mov eax, 1
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0xf8]
mov word [esp + 0x1c], 0xf
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [eax + 0x20]
push 2
push 0xffffffffffffffff
push 0x100c
push eax
mov byte [esp + 0x98], 2
mov dword [esp + 0x24], ebx
call edi
lea ebp, [eax + 1]
test ebp, ebp
je 0x6790d98f
mov eax, dword [esi + 0xf8]
lea ebx, [ebp - 1]
push 2
push ebx
mov ecx, dword [eax + 0x20]
push 0x100c
push ecx
call edi
mov edx, dword [esi]
lea ebp, [eax + 1]
lea eax, [esp + 0x10]
mov ecx, esi
push eax
push ebx
call dword [edx + 0x80]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CStringList::AddTail
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x14]
test ebp, ebp
lea edx, [ecx + eax + 1]
mov dword [esp + 0x14], edx
jne 0x6790d93a
mov ebx, edx
add ebx, 0x15
push ebx
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x6790dbe8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x6790d9c3
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x6790dbe8
mov dword [eax], 0x14
mov ebp, dword [esp + 0x34]
test ebp, ebp
lea ebx, [eax + 0x14]
je 0x6790d9f7
mov eax, ebp
mov ebp, dword [ebp]
mov eax, dword [eax + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push ebx
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
inc eax
test ebp, ebp
mov ebx, eax
jne 0x6790d9d4
mov ebp, dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x4c]
push eax
push ebp
push 0xf
call sub.MFC42.DLL_COleDataSource::CacheGlobalData
push 1
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x18], ebx
jne 0x6790da36
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x6790dbe8
mov al, byte [0x67a7be2a]
test al, 1
jne 0x6790da5d
mov cl, al
push str.B0D76F7A_B5D9_436c_8F10_BA16AEE69D42
or cl, 1
mov byte [0x67a7be2a], cl
call dword [sym.imp.USER32.dll_RegisterClipboardFormatA]
mov word [0x67a7be28], ax
jmp 0x6790da63
mov ax, word [0x67a7be28]
lea ecx, [esp + 0x1c]
mov word [esp + 0x1c], ax
push ecx
push ebx
push eax
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_COleDataSource::CacheGlobalData
push 0
push 0
push 3
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_COleDataSource::DoDragDrop
sub eax, 0
je 0x6790daea
sub eax, 2
jne 0x6790dbe8
mov eax, dword [esi + 0xf8]
push 2
push 0xffffffffffffffff
push 0x100c
mov edx, dword [eax + 0x20]
push edx
call edi
mov ebp, eax
cmp ebp, 0xffffffff
je 0x6790dbe8
mov eax, dword [esi + 0xf8]
push 0
push ebp
push 0x1008
mov eax, dword [eax + 0x20]
push eax
call edi
mov eax, dword [esi + 0xf8]
dec ebp
push 2
push ebp
mov ecx, dword [eax + 0x20]
push 0x100c
push ecx
call edi
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x6790dab5
jmp 0x6790dbe8
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
jne 0x6790dbdc
mov eax, dword [esi + 0xf8]
push 2
push 0xffffffffffffffff
push 0x100c
mov edx, dword [eax + 0x20]
xor bl, bl
push edx
call edi
mov ebp, eax
cmp ebp, 0xffffffff
je 0x6790dbc8
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push ebp
mov ecx, esi
call dword [eax + 0x80]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x6790db5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x6790db5f
mov eax, dword [esi + 0xf8]
push 0
push ebp
push 0x1008
mov eax, dword [eax + 0x20]
push eax
call edi
dec ebp
mov bl, 1
mov eax, dword [esi + 0xf8]
push 2
push ebp
push 0x100c
mov ecx, dword [eax + 0x20]
push ecx
call edi
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x6790db1d
test bl, bl
je 0x6790dbc8
mov eax, dword [esi + 0xf8]
push 0xfffe
push 0
push 0x101e
mov edx, dword [eax + 0x20]
push edx
call edi
mov eax, dword [esi + 0xf8]
push 0xfffe
push 1
push 0x101e
mov eax, dword [eax + 0x20]
push eax
call edi
mov esi, dword [esi + 0xf8]
push 0xfffe
push 2
push 0x101e
mov ecx, dword [esi + 0x20]
push ecx
call edi
jmp 0x6790dbe8
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
jmp 0x6790dbe6
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call esi
push ebx
call esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x88], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x88], 0
call fcn.6797e9a2
lea ecx, [esp + 0x4c]
mov dword [esp + 0x88], 0xffffffff
call fcn.6797e99c
mov ecx, dword [esp + 0x80]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x7c
ret 4