Function at 0x4611e0
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8875
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x501814]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x50], edx
mov edi, dword [ebp + 8]
test edi, edi
jne 0x461220
mov eax, 0x80070057
jmp 0x46142e
mov eax, dword [edx]
test eax, eax
js 0x46142e
cmp dword [edx + 4], 0
lea esi, [edx + 4]
jne 0x461253
push esi
push 0x4d4610
push 1
push 0
push 0x4d4600
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x46142e
mov edx, dword [ebp - 0x50]
mov ecx, dword [esi]
test ecx, ecx
je 0x461270
add edx, 8
cmp dword [edx], 0
jne 0x461270
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x48]
test eax, eax
js 0x46142e
mov esi, dword [ebp - 0x50]
cmp dword [esi + 8], 0
jne 0x461283
mov eax, 0x8007054f
jmp 0x46142e
xorps xmm0, xmm0
lea ecx, [ebp - 0x38]
movups xmmword [ebp - 0x38], xmm0
call fcn.00454990
push edi
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.00460b20
mov edi, eax
test edi, edi
js 0x461413
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x461411
lea eax, [ebp - 0x34]
cmp esi, eax
je 0x461411
lea eax, [esi + 8]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x20]
mov ecx, 0x200c
push eax
mov word [ebp - 0x28], cx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x48], xmm0
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
jne 0x461455
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x461455
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x46144b
mov ax, word [ebp - 0x20]
test ax, ax
je 0x461352
cmp ax, word [ebp - 0x28]
jne 0x461342
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SafeArrayAccessData]
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x46134c
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor eax, eax
mov word [ebp - 0x20], ax
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x46144b
mov eax, 8
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov ecx, dword [ebp - 0x54]
push dword [ebp - 0x18]
mov eax, dword [ecx]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov edi, eax
test edi, edi
js 0x46145a
mov eax, dword [ebp - 0x50]
push dword [ebp - 0x18]
mov eax, dword [eax + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edi, eax
test edi, edi
js 0x46145a
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov cx, word [ebp - 0x20]
mov edi, eax
test cx, cx
je 0x4613e7
cmp cx, word [ebp - 0x28]
jne 0x4613d7
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SafeArrayAccessData]
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x4613e1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor eax, eax
mov word [ebp - 0x20], ax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x461409
mov esi, dword [esi]
test esi, esi
je 0x461409
lea eax, [ebp - 0x34]
cmp esi, eax
jne 0x461403
xor esi, esi
jmp 0x461409
lea edi, [esi + 8]
mov dword [ebp - 0x54], edi
test esi, esi
jne 0x4612cb
xor edi, edi
push 0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], vtable.FamRT::TSmallListEx0_struct_SFirewallRule__class_FamRT::CNoMTProtection_.0
call fcn.00459150
lea ecx, [ebp - 0x34]
call fcn.00494a20
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a559d
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov edi, 0x80070008
lea ecx, [ebp - 0x28]
call fcn.00456930
jmp 0x461413