Function at 0x11cd3480
Capabilities:
Get file attributes
Get graphical window text

Disassembly:
sub esp, 0x208
push ebp
push esi
xor ebp, ebp
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x12133f80]
cmp eax, ebp
je 0x11cd34b6
mov eax, dword [0x12126854]
push esi
push eax
push str.__s__CSafeDiskProtect::GetPathFromForegroundWindow_Hwnd_0x_08x_
push str.SafeClipboard
push 4
call fcn.11ca5810
add esp, 0x14
push ebx
cmp esi, ebp
push edi
je 0x11cd3684
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], bp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push 0x103
push ecx
push esi
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [0x12133f80], ebp
je 0x11cd350c
mov eax, dword [0x12126854]
lea edx, [esp + 0x10]
push edx
push eax
push str.__s__CSafeDiskProtect::GetPathFromForegroundWindow_HwndName__s_
push str.SafeClipboard
push 4
call fcn.11ca5810
add esp, 0x14
mov edx, dword [str.CabinetWClass]
lea ecx, [esp + 0x10]
push ecx
push edx
call fcn.11e67d22
add esp, 8
test eax, eax
jne 0x11cd3684
mov ebx, dword [sym.imp.USER32.dll_FindWindowExW]
mov edi, 0x11fcad98
mov eax, dword [edi]
push 0
push eax
push 0
push esi
call ebx
mov esi, eax
test esi, esi
je 0x11cd354e
add edi, 4
cmp edi, 0x11fcadb0
jb 0x11cd3533
mov eax, dword [0x12133f80]
test eax, eax
je 0x11cd3573
mov ecx, dword [0x12126854]
push esi
push ecx
push str.__s__CSafeDiskProtect::GetPathFromForegroundWindow_DstHwnd__d_
push str.SafeClipboard
push 4
call fcn.11ca5810
add esp, 0x14
test esi, esi
je 0x11cd3684
lea edx, [esp + 0x10]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x10]
push 0x103
push edx
rep stosd dword es:[edi], eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x10]
push 0x1204a1bc
push eax
call fcn.11e68668
mov esi, eax
mov eax, dword [0x12133f80]
add esp, 8
test eax, eax
je 0x11cd35e2
test esi, esi
mov eax, esi
jne 0x11cd35c1
mov eax, 0x12119948
mov edx, dword [0x12126854]
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
push str.__s__CSafeDiskProtect::GetPathFromForegroundWindow_DstHwndName__s__Dir__s_
push str.SafeClipboard
push 4
call fcn.11ca5810
add esp, 0x18
test esi, esi
jne 0x11cd363a
lea eax, [esp + 0x10]
push 0x1204a11c
push eax
call fcn.11e68668
mov esi, eax
add esp, 8
test esi, esi
je 0x11cd3601
sub esi, 2
mov eax, dword [0x12133f80]
test eax, eax
je 0x11cd3636
test esi, esi
mov eax, esi
jne 0x11cd3615
mov eax, 0x12119948
mov edx, dword [0x12126854]
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
push str.__s__CSafeDiskProtect::GetPathFromForegroundWindow_DstHwndName__s__Dir2__s_
push str.SafeClipboard
push 4
call fcn.11ca5810
add esp, 0x18
test esi, esi
je 0x11cd3684
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov eax, dword [0x12133f80]
test eax, eax
je 0x11cd3668
mov eax, dword [0x12126854]
push ebx
push esi
push eax
push str.__s__CSafeDiskProtect::GetPathFromForegroundWindow_Dir__s__Attr_0x_08x_
push str.SafeClipboard
push 4
call fcn.11ca5810
add esp, 0x18
cmp ebx, 0xffffffff
je 0x11cd3684
test bl, 0x10
je 0x11cd3684
mov ecx, dword [esp + 0x21c]
push esi
call fcn.11e7f500
mov ebp, 1
mov eax, dword [0x12133f80]
pop edi
test eax, eax
pop ebx
je 0x11cd36b4
mov ecx, dword [esp + 0x214]
mov eax, dword [0x12126854]
mov edx, dword [ecx]
push edx
push ebp
push eax
push str.__s__CSafeDiskProtect::GetPathFromForegroundWindow_Ret__d__Dir__s_
push str.SafeClipboard
push 4
call fcn.11ca5810
add esp, 0x18
mov eax, ebp
pop esi
pop ebp
add esp, 0x208
ret