Function at 0x4216e0
Capabilities:
Access firewall rule properties via inetfwrule

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b3e0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x5a4aa8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], ebx
jne 0x42174f
push str.Firewall_Policy_2_is_invalid__
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
push ecx
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
call esi
mov edi, eax
mov dword [ebp - 0x1c], edi
mov edx, dword [ebp + 0xc]
push edx
call esi
mov esi, eax
mov dword [ebp - 0x20], esi
cmp edi, ebx
jne 0x421796
cmp esi, ebx
jne 0x421796
push str.SysAllocString_fail__
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 0x28], ebx
push 0x5815cc
lea eax, [ebp - 0x28]
push eax
call fcn.004fd5a3
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
mov edx, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
push eax
mov edx, dword [edx + 0x48]
call edx
cmp eax, ebx
jge 0x4217cf
push str.retrieve_firewall_rules_collection_fail__
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 0x2c], ebx
push 0x5815cc
lea eax, [ebp - 0x2c]
push eax
call fcn.004fd5a3
lea ecx, [ebp - 0x18]
push ecx
push 0x541b78
push 1
push ebx
push 0x541b68
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x42180d
push str.CoCreateInstance_for_INetFwRule_failed
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 0x30], ebx
push 0x5815cc
lea edx, [ebp - 0x30]
push edx
call fcn.004fd5a3
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push edi
push eax
mov edx, dword [ecx + 0x20]
call edx
cmp eax, ebx
jge 0x421840
push str.Failed_INetFwRule::put_Name_failed
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 0x34], ebx
push 0x5815cc
lea eax, [ebp - 0x34]
push eax
call fcn.004fd5a3
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push edi
push eax
mov edx, dword [ecx + 0x90]
call edx
cmp eax, ebx
jge 0x421865
push str.Failed_INetFwRule::put_Grouping_failed
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push edi
push eax
mov edx, dword [ecx + 0x28]
call edx
cmp eax, ebx
jge 0x421887
push str.Failed_INetFwRule::put_Description_failed
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push 1
push eax
mov edx, dword [ecx + 0x70]
call edx
cmp eax, ebx
jge 0x4218aa
push str.Failed_INetFwRule::put_Direction_failed
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push 1
push eax
mov edx, dword [ecx + 0xa8]
call edx
cmp eax, ebx
jge 0x4218e1
push str.Failed_INetFwRule::put_Action_failed
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 0x38], ebx
push 0x5815cc
lea eax, [ebp - 0x38]
push eax
call fcn.004fd5a3
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push esi
push eax
mov edx, dword [ecx + 0x30]
call edx
cmp eax, ebx
jge 0x421914
push str.Failed_INetFwRule::put_ApplicationName_failed
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 0x3c], ebx
push 0x5815cc
lea eax, [ebp - 0x3c]
push eax
call fcn.004fd5a3
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push bind
push eax
mov edx, dword [ecx + 0x98]
call edx
cmp eax, ebx
jge 0x42194e
push str.Failed_INetFwRule::put_Profiles_failed
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 0x40], ebx
push 0x5815cc
lea eax, [ebp - 0x40]
push eax
call fcn.004fd5a3
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov edx, dword [ecx + 0x88]
call edx
cmp eax, ebx
jge 0x421974
push str.Failed_INetFwRule::put_Enabled_failed
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
cmp eax, ebx
jge 0x4219a2
push str.Failed_to_add_firewall_rule_to_the_firewall_rules_collection
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x4219f9
mov byte [ebp - 0x11], 1
mov ecx, dword [ebp + 0x10]
push ecx
push str.Success_to_add_firewall_rule_to_the_firewall_rules_collection_:___s_
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x4219f9
mov dword [ebp - 4], 2
cmp edi, ebx
je 0x421a0b
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp esi, ebx
je 0x421a16
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x421a25
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x421a34
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc