Function at 0x421e60
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x6c
push 0xffffffffffffffff
push 0x4444e0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x466df4]
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 0x44ede4
push 1
push esi
push 0x44eb2c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
jns 0x421f49
mov dword [ebp], 0x4477bc
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.0040cd80
add esp, 0x10
test al, al
je 0x421f33
push esi
lea ecx, [ebp]
call fcn.0040cea0
push eax
push ebx
mov ecx, edi
call fcn.00405b50
test al, al
je 0x421f33
mov bl, 1
jmp 0x421f35
xor bl, bl
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.0040c7b0
test bl, bl
je 0x421fce
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x1c]
test ecx, ecx
je 0x421f59
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 0x421fd5
mov dword [ebp], 0x4477bc
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.0040cd80
add esp, 0x10
test al, al
je 0x421fbc
push 0
lea ecx, [ebp]
call fcn.0040cea0
push eax
push ebx
mov ecx, edi
call fcn.00405b50
test al, al
je 0x421fbc
mov bl, 1
jmp 0x421fbe
xor bl, bl
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.0040c7b0
test bl, bl
jne 0x421fd5
xor bl, bl
jmp 0x422143
push edi
lea eax, [ebp - 0x38]
push eax
push 0
push 0
push dword [ebp - 0x3c]
lea eax, [ebp - 0x14]
push eax
call fcn.00421530
mov esi, dword [ebp - 0x34]
mov bl, al
add esp, 0x18
test bl, bl
je 0x422143
test esi, esi
je 0x422143
mov dword [ebp + 4], 0
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.00406f40
push 0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x4c]
push 0x10
push eax
call fcn.0040be60
add esp, 0x10
test eax, eax
je 0x422126
lea eax, [ebp + 8]
push eax
lea ecx, [ebp + 4]
call fcn.00409fb0
test al, al
je 0x422126
push dword [ebp + 4]
mov eax, dword [esi]
push esi
call dword [eax + 0x20]
mov edi, eax
test edi, edi
jns 0x4220b5
mov dword [ebp - 0x28], 0x4477bc
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.0040cd80
add esp, 0x10
test al, al
je 0x4220a3
push 0
lea ecx, [ebp - 0x28]
call fcn.0040cea0
mov ecx, dword [ebp - 0x18]
push eax
push edi
call fcn.00405b50
test al, al
je 0x4220a3
mov bl, 1
jmp 0x4220a5
xor bl, bl
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.0040c7b0
test bl, bl
je 0x422126
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 0x422122
mov dword [ebp - 0x30], 0x4477bc
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.0040cd80
add esp, 0x10
test al, al
je 0x422114
push 0
lea ecx, [ebp - 0x30]
call fcn.0040cea0
mov ecx, dword [ebp - 0x18]
push eax
push edi
call fcn.00405b50
test al, al
je 0x422114
mov bl, 1
jmp 0x422116
xor bl, bl
lea ecx, [ebp - 0x30]
call fcn.0040c7b0
test bl, bl
je 0x422126
mov bl, 1
jmp 0x422128
xor bl, bl
lea ecx, [ebp + 4]
mov byte [ebp - 4], 8
call fcn.00408db0
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 2
test bl, bl
jne 0x421fd5
mov byte [ebp - 4], 9
test esi, esi
je 0x422151
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 0x422169
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 0x422184
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.00422f50
lea esp, [ebp + 0x6c]
pop ebp
ret