Function at 0x421eb0
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x6c
push 0xffffffffffffffff
push 0x4441c0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x467fd4]
xor eax, ebp
mov dword [ebp + 0x68], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x74]
mov edi, dword [ebp + 0x78]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], vtable.SmartCOMPointer_struct_INetFwPolicy2_.0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], vtable.SmartCOMPointer_struct_INetFwRules_.0
mov dword [ebp - 0x10], 0
xor esi, esi
mov dword [ebp - 0x38], vtable.SmartCOMPointer_struct_INetFwRule_.0
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
push 0x450454
push 1
push esi
push 0x45019c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
jns 0x421f99
mov dword [ebp], 0x44789c
mov dword [ebp + 4], esi
push str.New_Authorized_Application
push str.Failed_to_instantiate_COM_object
lea eax, [ebp]
mov byte [ebp - 4], 3
push str._s__Message:___s_
push eax
call fcn.0040d0c0
add esp, 0x10
test al, al
je 0x421f83
push esi
lea ecx, [ebp]
call fcn.0040d1e0
push eax
push ebx
mov ecx, edi
call fcn.00405aa0
test al, al
je 0x421f83
mov bl, 1
jmp 0x421f85
xor bl, bl
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.0040ca60
test bl, bl
je 0x42201e
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x1c]
test ecx, ecx
je 0x421fa9
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
mov eax, dword [ebx]
push ecx
push ebx
call dword [eax + 0x48]
mov ebx, eax
test ebx, ebx
jns 0x422025
mov dword [ebp], 0x44789c
mov dword [ebp + 4], 0
push str.Get_Firewall_Rules
push str.COM_error_occurred
lea eax, [ebp]
mov byte [ebp - 4], 4
push str._s__Message:___s_
push eax
call fcn.0040d0c0
add esp, 0x10
test al, al
je 0x42200c
push 0
lea ecx, [ebp]
call fcn.0040d1e0
push eax
push ebx
mov ecx, edi
call fcn.00405aa0
test al, al
je 0x42200c
mov bl, 1
jmp 0x42200e
xor bl, bl
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.0040ca60
test bl, bl
jne 0x422025
xor bl, bl
jmp 0x422193
push edi
lea eax, [ebp - 0x38]
push eax
push 0
push 0
push dword [ebp - 0x3c]
lea eax, [ebp - 0x14]
push eax
call fcn.00421580
mov esi, dword [ebp - 0x34]
mov bl, al
add esp, 0x18
test bl, bl
je 0x422193
test esi, esi
je 0x422193
mov dword [ebp + 4], 0
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.00407000
push 0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x4c]
push 0x10
push eax
call fcn.0040bfe0
add esp, 0x10
test eax, eax
je 0x422176
lea eax, [ebp + 8]
push eax
lea ecx, [ebp + 4]
call fcn.0040a260
test al, al
je 0x422176
push dword [ebp + 4]
mov eax, dword [esi]
push esi
call dword [eax + 0x20]
mov edi, eax
test edi, edi
jns 0x422105
mov dword [ebp - 0x28], 0x44789c
mov dword [ebp - 0x24], 0
push str.Rename_existing_rule
push str.COM_error_occurred
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push str._s__Message:___s_
push eax
call fcn.0040d0c0
add esp, 0x10
test al, al
je 0x4220f3
push 0
lea ecx, [ebp - 0x28]
call fcn.0040d1e0
mov ecx, dword [ebp - 0x18]
push eax
push edi
call fcn.00405aa0
test al, al
je 0x4220f3
mov bl, 1
jmp 0x4220f5
xor bl, bl
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.0040ca60
test bl, bl
je 0x422176
mov eax, dword [ebp - 0x10]
push dword [ebp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edi, eax
test edi, edi
jns 0x422172
mov dword [ebp - 0x30], 0x44789c
mov dword [ebp - 0x2c], 0
push str.Remove_existing_rule
push str.COM_error_occurred
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 7
push str._s__Message:___s_
push eax
call fcn.0040d0c0
add esp, 0x10
test al, al
je 0x422164
push 0
lea ecx, [ebp - 0x30]
call fcn.0040d1e0
mov ecx, dword [ebp - 0x18]
push eax
push edi
call fcn.00405aa0
test al, al
je 0x422164
mov bl, 1
jmp 0x422166
xor bl, bl
lea ecx, [ebp - 0x30]
call fcn.0040ca60
test bl, bl
je 0x422176
mov bl, 1
jmp 0x422178
xor bl, bl
lea ecx, [ebp + 4]
mov byte [ebp - 4], 8
call fcn.00409060
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 2
test bl, bl
jne 0x422025
mov byte [ebp - 4], 9
test esi, esi
je 0x4221a1
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x14], vtable.SmartCOMPointer_struct_INetFwRules_.0
test ecx, ecx
je 0x4221b9
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x20], vtable.SmartCOMPointer_struct_INetFwPolicy2_.0
test ecx, ecx
je 0x4221d4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x68]
xor ecx, ebp
call fcn.00422c85
lea esp, [ebp + 0x6c]
pop ebp
ret