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

Disassembly:
sub esp, 0x208
push ebp
push esi
push edi
mov edi, dword [esp + 0x218]
xor ebp, ebp
cmp edi, ebp
jne 0x12e7997e
call dword [sym.imp.USER32.dll_GetForegroundWindow]
jmp 0x12e79987
push edi
call fcn.12e32f20
add esp, 4
mov esi, eax
mov eax, dword [0x13199068]
cmp eax, ebp
je 0x12e799a8
push esi
push edi
push str.CSCDTSecurityProcCopyTask::GetPathFromForegroundWindow_1__Hwnd_:_0x_08x___hwndForeground:0x_08x_
push str.SCDTFile
push 4
call fcn.12dad750
add esp, 0x14
cmp esi, ebp
push ebx
je 0x12e79b5e
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push 0x103
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [0x13199068], ebp
je 0x12e799f7
lea ecx, [esp + 0x10]
push ecx
push str.CSCDTSecurityProcCopyTask::GetPathFromForegroundWindow_2__HwndName_:__s_
push str.SCDTFile
push 4
call fcn.12dad750
add esp, 0x10
mov eax, dword [str.CabinetWClass]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.12f5e2a4
add esp, 8
test eax, eax
jne 0x12e79b5e
mov ebx, dword [sym.imp.USER32.dll_FindWindowExW]
mov edi, 0x1307a098
mov ecx, dword [edi]
push 0
push ecx
push 0
push esi
call ebx
mov esi, eax
test esi, esi
je 0x12e79a38
add edi, 4
cmp edi, 0x1307a0b0
jb 0x12e79a1d
mov eax, dword [0x13199068]
test eax, eax
je 0x12e79a56
push esi
push str.CSCDTSecurityProcCopyTask::GetPathFromForegroundWindow_3__DstHwnd_:__d_
push str.SCDTFile
push 4
call fcn.12dad750
add esp, 0x10
test esi, esi
je 0x12e79b5e
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 0x13102e9c
push eax
call fcn.12f5c53a
mov esi, eax
mov eax, dword [0x13199068]
add esp, 8
test eax, eax
je 0x12e79abe
test esi, esi
mov eax, esi
jne 0x12e79aa4
mov eax, 0x131912a8
lea ecx, [esp + 0x10]
push eax
push ecx
push str.CSCDTSecurityProcCopyTask::GetPathFromForegroundWindow_4__szName_:__s___Dir_:__s_
push str.SCDTFile
push 4
call fcn.12dad750
add esp, 0x14
test esi, esi
jne 0x12e79b0f
lea edx, [esp + 0x10]
push 0x13102e24
push edx
call fcn.12f5c53a
mov esi, eax
add esp, 8
test esi, esi
je 0x12e79add
sub esi, 2
mov eax, dword [0x13199068]
test eax, eax
je 0x12e79b0b
test esi, esi
mov eax, esi
jne 0x12e79af1
mov eax, 0x131912a8
push eax
lea eax, [esp + 0x14]
push eax
push str.CSCDTSecurityProcCopyTask::GetPathFromForegroundWindow_5__DstHwndName:_s___Dir2:_s_
push str.SCDTFile
push 4
call fcn.12dad750
add esp, 0x14
test esi, esi
je 0x12e79b5e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov eax, dword [0x13199068]
test eax, eax
je 0x12e79b37
push ebx
push esi
push str.CSCDTSecurityProcCopyTask::GetPathFromForegroundWindow_6__Dir:_s___Attr:0x_08x_
push str.SCDTFile
push 4
call fcn.12dad750
add esp, 0x14
mov eax, dword [esp + 0x224]
test eax, eax
jne 0x12e79b4c
cmp ebx, 0xffffffff
je 0x12e79b5e
test bl, 0x10
je 0x12e79b5e
mov ecx, dword [esp + 0x220]
push esi
call fcn.12f47570
mov ebp, 1
mov eax, dword [0x13199068]
pop ebx
test eax, eax
je 0x12e79b8f
mov edx, dword [esp + 0x21c]
mov ecx, dword [esp + 0x220]
push ecx
mov eax, dword [edx]
push eax
push ebp
push str.CSCDTSecurityProcCopyTask::IsNeedCopy__ret_:__d___Dir:_s___bDisGetAttr:_d_
push str.SCDTFile
push 4
call fcn.12dad750
add esp, 0x18
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x208
ret 0xc