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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x83c
mov eax, dword [0x42603c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x7fe
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x806]
xor eax, eax
push ebx
push ecx
mov edi, edx
mov word [ebp - 0x808], ax
call fcn.00413700
add esp, 0xc
mov dword [ebp - 0x824], ebx
mov dword [ebp - 0x818], ebx
mov dword [ebp - 0x80c], ebx
mov dword [ebp - 0x81c], ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push esi
call ebx
push edi
mov dword [ebp - 0x820], eax
call ebx
push edi
push 0x41ea94
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x810], 0
call fcn.0040f6de
add esp, 8
test eax, eax
jne 0x408780
mov dword [ebp - 0x81c], 1
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, eax
mov dword [ebp - 0x834], edi
cmp edi, 0x80010106
je 0x4087ad
test edi, edi
jns 0x4087ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x41eaa0
jmp 0x4087dd
mov ebx, dword [sym.imp.ole32.dll_CoCreateInstance]
lea ecx, [ebp - 0x824]
push ecx
push 0x420adc
push 1
push 0
push 0x420acc
call ebx
mov edi, eax
test edi, edi
jns 0x408800
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x41eb38
lea edx, [ebp - 0x808]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x808]
push eax
call fcn.00402950
add esp, 0x14
xor esi, esi
jmp 0x408f7c
mov eax, dword [ebp - 0x824]
mov ecx, dword [eax]
lea edx, [ebp - 0x818]
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
mov edi, eax
test edi, edi
jns 0x40884b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea ecx, [ebp - 0x808]
push 0x41ebe8
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [ebp - 0x808]
push edx
call fcn.00402950
add esp, 0x14
xor esi, esi
jmp 0x408f7c
mov eax, dword [ebp - 0x818]
mov edi, dword [ebp - 0x820]
mov ecx, dword [eax]
lea edx, [ebp - 0x80c]
push edx
push edi
push eax
mov eax, dword [ecx + 0x28]
call eax
test eax, eax
js 0x408e40
mov eax, dword [ebp - 0x80c]
mov ecx, dword [eax]
lea edx, [ebp - 0x830]
push edx
push eax
mov eax, dword [ecx + 0x6c]
call eax
mov edi, eax
test edi, edi
jns 0x4088be
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
lea ecx, [ebp - 0x808]
push 0x41ec90
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [ebp - 0x808]
add esp, 0x14
push edx
call fcn.00402950
add esp, 4
xor esi, esi
jmp 0x408f7c
mov eax, dword [ebp - 0x830]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
cmp eax, 1
je 0x408939
push 1
push eax
push esi
lea eax, [ebp - 0x808]
push 0x41ed38
push eax
call edi
lea ecx, [ebp - 0x808]
add esp, 0x14
push ecx
call fcn.00402950
mov eax, dword [ebp - 0x80c]
mov edx, dword [eax]
add esp, 4
push 1
push eax
mov eax, dword [edx + 0x70]
call eax
mov ebx, eax
test ebx, ebx
jns 0x408939
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
lea ecx, [ebp - 0x808]
push 0x41edc8
push ecx
call edi
lea edx, [ebp - 0x808]
add esp, 0x14
push edx
call fcn.00402950
add esp, 4
xor esi, esi
jmp 0x408f7c
mov eax, dword [ebp - 0x80c]
mov ecx, dword [eax]
lea edx, [ebp - 0x83c]
push edx
push eax
mov eax, dword [ecx + 0xa4]
call eax
mov ebx, eax
test ebx, ebx
jns 0x408987
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
lea ecx, [ebp - 0x808]
push 0x41ee70
push ecx
call edi
lea edx, [ebp - 0x808]
add esp, 0x14
push edx
call fcn.00402950
add esp, 4
xor esi, esi
jmp 0x408f7c
mov eax, dword [ebp - 0x83c]
cmp eax, 1
je 0x4089ff
push 1
push eax
push esi
lea eax, [ebp - 0x808]
push 0x41ef10
push eax
call edi
lea ecx, [ebp - 0x808]
add esp, 0x14
push ecx
call fcn.00402950
mov eax, dword [ebp - 0x80c]
mov edx, dword [eax]
add esp, 4
push 1
push eax
mov eax, dword [edx + 0xa8]
call eax
mov ebx, eax
test ebx, ebx
jns 0x4089ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
lea ecx, [ebp - 0x808]
push 0x41efa0
push ecx
call edi
lea edx, [ebp - 0x808]
add esp, 0x14
push edx
call fcn.00402950
add esp, 4
xor esi, esi
jmp 0x408f7c
mov eax, dword [ebp - 0x80c]
mov ecx, dword [eax]
lea edx, [ebp - 0x82c]
push edx
push eax
mov eax, dword [ecx + 0x84]
call eax
mov ebx, eax
test ebx, ebx
jns 0x408a4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
lea ecx, [ebp - 0x808]
push 0x41f040
push ecx
call edi
lea edx, [ebp - 0x808]
add esp, 0x14
push edx
call fcn.00402950
add esp, 4
xor esi, esi
jmp 0x408f7c
mov ax, word [ebp - 0x82c]
cmp ax, 0xffff
je 0x408aab
push 0xffffffffffffffff
cwde
push eax
push esi
lea ecx, [ebp - 0x808]
push 0x41f0e0
push ecx
call edi
lea edx, [ebp - 0x808]
add esp, 0x14
push edx
call fcn.00402950
mov eax, dword [ebp - 0x80c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x88]
add esp, 4
push 0xffffffffffffffff
push eax
call edx
mov ebx, eax
test ebx, ebx
jns 0x408aab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
push 0x41f168
jmp 0x408da1
mov eax, dword [ebp - 0x80c]
mov edx, dword [eax]
mov edx, dword [edx + 0x94]
lea ecx, [ebp - 0x838]
push ecx
push eax
call edx
mov ebx, eax
test ebx, ebx
jns 0x408adc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
push 0x41f208
jmp 0x408da1
mov eax, dword [ebp - 0x838]
cmp eax, 7
je 0x408b37
push 7
push eax
push esi
lea edx, [ebp - 0x808]
push 0x41f2b0
push edx
call edi
lea eax, [ebp - 0x808]
add esp, 0x14
push eax
call fcn.00402950
mov eax, dword [ebp - 0x80c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x98]
add esp, 4
push 7
push eax
call edx
mov ebx, eax
test ebx, ebx
jns 0x408b37
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
push 0x41f340
jmp 0x408da1
cmp dword [ebp - 0x81c], 0
mov eax, dword [ebp - 0x80c]
jne 0x408c25
mov edx, dword [eax]
mov edx, dword [edx + 0x2c]
lea ecx, [ebp - 0x810]
push ecx
push eax
call edx
mov ebx, eax
test ebx, ebx
jns 0x408b72
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
push 0x41f3e8
jmp 0x408da1
mov ebx, dword [ebp - 0x814]
mov eax, dword [ebp - 0x810]
mov ecx, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408ba6
test dx, dx
je 0x408ba2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408ba6
add eax, 4
add ecx, 4
test dx, dx
jne 0x408b80
xor eax, eax
jmp 0x408bab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408d00
mov edx, dword [ebp - 0x810]
push ebx
push edx
push esi
lea eax, [ebp - 0x808]
push 0x41f498
push eax
call edi
lea ecx, [ebp - 0x808]
add esp, 0x14
push ecx
call fcn.00402950
mov eax, dword [ebp - 0x80c]
mov edx, dword [eax]
add esp, 4
push ebx
push eax
mov eax, dword [edx + 0x30]
call eax
mov ebx, eax
test ebx, ebx
jns 0x408d00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
lea ecx, [ebp - 0x808]
push 0x41f530
push ecx
call edi
lea edx, [ebp - 0x808]
add esp, 0x14
push edx
call fcn.00402950
add esp, 4
xor esi, esi
jmp 0x408f7c
mov ecx, dword [eax]
lea edx, [ebp - 0x810]
push edx
push eax
mov eax, dword [ecx + 0x64]
call eax
mov ebx, eax
test ebx, ebx
jns 0x408c6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
lea ecx, [ebp - 0x808]
push 0x41f5e0
push ecx
call edi
lea edx, [ebp - 0x808]
add esp, 0x14
push edx
call fcn.00402950
add esp, 4
xor esi, esi
jmp 0x408f7c
mov ebx, dword [ebp - 0x814]
mov eax, dword [ebp - 0x810]
mov ecx, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408c9e
test dx, dx
je 0x408c9a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408c9e
add eax, 4
add ecx, 4
test dx, dx
jne 0x408c78
xor eax, eax
jmp 0x408ca3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408d78
mov eax, dword [ebp - 0x810]
push ebx
push eax
push esi
lea ecx, [ebp - 0x808]
push 0x41f498
push ecx
call edi
lea edx, [ebp - 0x808]
add esp, 0x14
push edx
call fcn.00402950
mov eax, dword [ebp - 0x80c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x68]
add esp, 4
push ebx
push eax
call edx
mov ebx, eax
test ebx, ebx
jns 0x408d78
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
push 0x41f698
jmp 0x408da1
mov eax, dword [ebp - 0x80c]
mov edx, dword [eax]
mov edx, dword [edx + 0x3c]
lea ecx, [ebp - 0x828]
push ecx
push eax
call edx
mov ebx, eax
test ebx, ebx
js 0x408d93
mov eax, dword [ebp - 0x828]
cmp eax, 6
je 0x408f77
push 6
push eax
push esi
lea edx, [ebp - 0x808]
push 0x41f7f8
push edx
call edi
lea eax, [ebp - 0x808]
add esp, 0x14
push eax
call fcn.00402950
mov eax, dword [ebp - 0x80c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
add esp, 4
push 6
push eax
call edx
mov ebx, eax
test ebx, ebx
jns 0x408f77
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
push 0x41f888
jmp 0x408da1
mov eax, dword [ebp - 0x80c]
mov edx, dword [eax]
mov edx, dword [edx + 0x3c]
lea ecx, [ebp - 0x828]
push ecx
push eax
call edx
mov ebx, eax
test ebx, ebx
jns 0x408dc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
push 0x41f750
lea eax, [ebp - 0x808]
push eax
call edi
lea ecx, [ebp - 0x808]
add esp, 0x14
push ecx
call fcn.00402950
add esp, 4
xor esi, esi
jmp 0x408f7c
mov eax, dword [ebp - 0x828]
cmp eax, 1
je 0x408f77
push 1
push eax
push esi
lea edx, [ebp - 0x808]
push 0x41f7f8
push edx
call edi
lea eax, [ebp - 0x808]
add esp, 0x14
push eax
call fcn.00402950
mov eax, dword [ebp - 0x80c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
add esp, 4
push 1
push eax
call edx
mov ebx, eax
test ebx, ebx
jns 0x408f77
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
lea eax, [ebp - 0x808]
push 0x41f888
push eax
call edi
lea ecx, [ebp - 0x808]
add esp, 0x14
push ecx
call fcn.00402950
add esp, 4
xor esi, esi
jmp 0x408f7c
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [ebp - 0x808]
push str._FireWallRuleSet___s
push edx
call esi
lea eax, [ebp - 0x808]
add esp, 0xc
push eax
call fcn.00402950
add esp, 4
lea ecx, [ebp - 0x80c]
push ecx
push 0x420afc
push 1
push 0
push 0x420aec
call ebx
test eax, eax
jns 0x408eaa
push eax
lea edx, [ebp - 0x808]
push 0x41f978
push edx
call esi
lea eax, [ebp - 0x808]
add esp, 0xc
push eax
call fcn.00402950
add esp, 4
xor esi, esi
jmp 0x408f7c
mov eax, dword [ebp - 0x80c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
push edi
push eax
call edx
mov eax, dword [ebp - 0x80c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x70]
push 1
push eax
call edx
mov eax, dword [ebp - 0x80c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa8]
push 1
push eax
call edx
mov eax, dword [ebp - 0x80c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x88]
push 0xffffffffffffffff
push eax
call edx
mov eax, dword [ebp - 0x80c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x98]
push 7
push eax
call edx
cmp dword [ebp - 0x81c], 0
mov edx, dword [ebp - 0x814]
mov eax, dword [ebp - 0x80c]
mov ecx, dword [eax]
push edx
push eax
jne 0x408f24
mov eax, dword [ecx + 0x30]
call eax
push 6
jmp 0x408f2b
mov eax, dword [ecx + 0x68]
call eax
push 1
mov eax, dword [ebp - 0x80c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
push eax
call edx
mov eax, dword [ebp - 0x818]
mov edx, dword [ebp - 0x80c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
jns 0x408f77
push eax
lea ecx, [ebp - 0x808]
push 0x41fa08
push ecx
call esi
lea edx, [ebp - 0x808]
add esp, 0xc
push edx
call fcn.00402950
add esp, 4
xor esi, esi
jmp 0x408f7c
mov esi, 1
cmp dword [ebp - 0x820], 0
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
je 0x408f94
mov eax, dword [ebp - 0x820]
push eax
call edi
mov eax, dword [ebp - 0x814]
test eax, eax
je 0x408fa1
push eax
call edi
mov eax, dword [ebp - 0x810]
test eax, eax
je 0x408fae
push eax
call edi
mov eax, dword [ebp - 0x80c]
test eax, eax
je 0x408fc0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x818]
test eax, eax
je 0x408fd2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x824]
test eax, eax
je 0x408fe4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [ebp - 0x834], 0
jl 0x408ff3
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f51e
mov esp, ebp
pop ebp
ret