Function at 0x4079cb
Capabilities:
Access firewall policy via inetfwpolicy2
Access firewall rule properties via inetfwrule

Disassembly:
push 0xffffffffffffffff
push 0x523223
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x596804]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], edi
mov esi, dword [sym.imp.OLE32.DLL_CoCreateInstance]
lea eax, [esp + 0x18]
push eax
push 0x526672
push 0x17
push edi
push 0x5266c2
call esi
test eax, eax
je 0x407a4e
mov eax, dword [esp + 0x18]
mov byte [esp + 0x28], 0
cmp eax, edi
je 0x407a2e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.OLEAUT32.DLL_SysFreeString]
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0x48]
mov byte [esp + 0x30], 2
call eax
test eax, eax
je 0x407ab6
mov eax, dword [esp + 0x14]
mov byte [esp + 0x28], 1
cmp eax, edi
je 0x407a81
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov byte [esp + 0x28], 0
cmp eax, edi
je 0x407a96
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.OLEAUT32.DLL_SysFreeString]
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [0x5a04c0]
push edx
push eax
mov eax, dword [ecx + 0x28]
mov bl, 3
mov byte [esp + 0x34], bl
call eax
test eax, eax
je 0x407fa8
mov dword [esp + 0x10], edi
lea ecx, [esp + 0x10]
push ecx
push 0x526682
push 0x17
push edi
push 0x5266b2
mov byte [esp + 0x3c], 4
call esi
test eax, eax
mov eax, dword [esp + 0x10]
je 0x407b74
mov byte [esp + 0x28], bl
cmp eax, edi
je 0x407b15
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x28], 2
cmp eax, edi
je 0x407b2a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x28], 1
cmp eax, edi
je 0x407b3f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov byte [esp + 0x28], 0
cmp eax, edi
je 0x407b54
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.OLEAUT32.DLL_SysFreeString]
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
mov edx, dword [0x5a04c0]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
mov eax, dword [esp + 0x10]
je 0x407bfa
mov byte [esp + 0x28], bl
cmp eax, edi
je 0x407b9b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x28], 2
cmp eax, edi
je 0x407bb0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x28], 1
cmp eax, edi
je 0x407bc5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov byte [esp + 0x28], 0
cmp eax, edi
je 0x407bda
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.OLEAUT32.DLL_SysFreeString]
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
mov edx, dword [0x5a04bc]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
test eax, eax
mov eax, dword [esp + 0x10]
je 0x407c80
mov byte [esp + 0x28], bl
cmp eax, edi
je 0x407c21
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x28], 2
cmp eax, edi
je 0x407c36
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x28], 1
cmp eax, edi
je 0x407c4b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov byte [esp + 0x28], 0
cmp eax, edi
je 0x407c60
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.OLEAUT32.DLL_SysFreeString]
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x30]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
test eax, eax
mov eax, dword [esp + 0x10]
je 0x407d04
mov byte [esp + 0x28], bl
cmp eax, edi
je 0x407ca5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x28], 2
cmp eax, edi
je 0x407cba
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x28], 1
cmp eax, edi
je 0x407ccf
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov byte [esp + 0x28], 0
cmp eax, edi
je 0x407ce4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.OLEAUT32.DLL_SysFreeString]
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
push 6
push eax
call edx
test eax, eax
mov eax, dword [esp + 0x10]
je 0x407d85
mov byte [esp + 0x28], bl
cmp eax, edi
je 0x407d26
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x28], 2
cmp eax, edi
je 0x407d3b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x28], 1
cmp eax, edi
je 0x407d50
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov byte [esp + 0x28], 0
cmp eax, edi
je 0x407d65
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.OLEAUT32.DLL_SysFreeString]
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
mov ecx, dword [eax]
mov edx, dword [ecx + 0x98]
push 0x7fffffff
push eax
call edx
test eax, eax
mov eax, dword [esp + 0x10]
je 0x407e0c
mov byte [esp + 0x28], bl
cmp eax, edi
je 0x407dad
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x28], 2
cmp eax, edi
je 0x407dc2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x28], 1
cmp eax, edi
je 0x407dd7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov byte [esp + 0x28], 0
cmp eax, edi
je 0x407dec
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.OLEAUT32.DLL_SysFreeString]
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa8]
push 1
push eax
call edx
test eax, eax
mov eax, dword [esp + 0x10]
je 0x407e90
mov byte [esp + 0x28], bl
cmp eax, edi
je 0x407e31
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x28], 2
cmp eax, edi
je 0x407e46
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x28], 1
cmp eax, edi
je 0x407e5b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov byte [esp + 0x28], 0
cmp eax, edi
je 0x407e70
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.OLEAUT32.DLL_SysFreeString]
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
mov ecx, dword [eax]
mov edx, dword [ecx + 0x88]
push 0xffffffffffffffff
push eax
call edx
test eax, eax
je 0x407f14
mov eax, dword [esp + 0x10]
mov byte [esp + 0x28], bl
cmp eax, edi
je 0x407eb5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x28], 2
cmp eax, edi
je 0x407eca
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x28], 1
cmp eax, edi
je 0x407edf
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov byte [esp + 0x28], 0
cmp eax, edi
je 0x407ef4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.OLEAUT32.DLL_SysFreeString]
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
mov eax, dword [esp + 0x10]
mov byte [esp + 0x28], bl
je 0x407f9c
cmp eax, edi
je 0x407f3d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x28], 2
cmp eax, edi
je 0x407f52
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x28], 1
cmp eax, edi
je 0x407f67
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov byte [esp + 0x28], 0
cmp eax, edi
je 0x407f7c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.OLEAUT32.DLL_SysFreeString]
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
cmp eax, edi
je 0x407fa8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x28], 2
cmp eax, edi
je 0x407fbd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x28], 1
cmp eax, edi
je 0x407fd2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov byte [esp + 0x28], 0
cmp eax, edi
je 0x407fe7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.OLEAUT32.DLL_SysFreeString]
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret