Function at 0x41dfa0
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
sub esp, 0xa8
mov eax, dword [0x45cdfc]
xor eax, esp
mov dword [esp + 0xa4], eax
push ebx
push ebp
mov ebp, dword [esp + 0xb8]
lea eax, [esp + 0x1c]
push esi
push edi
mov edi, dword [esp + 0xbc]
push eax
push 0x44b574
push 1
push 0
push 0x44b2bc
mov dword [esp + 0x4c], edi
mov dword [esp + 0x34], vtable.SmartCOMPointer_struct_INetFwPolicy2_.0
mov dword [esp + 0x38], 0
mov dword [esp + 0x2c], vtable.SmartCOMPointer_struct_INetFwRules_.0
mov dword [esp + 0x30], 0
mov dword [esp + 0x50], vtable.SmartCOMPointer_struct_INetFwRule_.0
mov dword [esp + 0x54], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jns 0x41e078
push str.New_Authorized_Application
push str.Failed_to_instantiate_COM_object
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x442970
push str._s__Message:___s_
push eax
mov dword [esp + 0x24], 0
call fcn.0040b9e0
add esp, 0x10
test al, al
je 0x41e065
push 0
lea ecx, [esp + 0x14]
call fcn.0040baf0
push eax
push esi
mov ecx, ebp
call fcn.00404f00
test al, al
je 0x41e065
mov bl, 1
jmp 0x41e067
xor bl, bl
lea ecx, [esp + 0x10]
call fcn.0040b370
test bl, bl
je 0x41e0fe
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
test ecx, ecx
je 0x41e08a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esp + 0x1c], 0
lea ecx, [esp + 0x1c]
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x48]
mov esi, eax
test esi, esi
jns 0x41e105
push str.Get_Firewall_Rules
push str.COM_error_occurred
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x442970
push str._s__Message:___s_
push eax
mov dword [esp + 0x24], 0
call fcn.0040b9e0
add esp, 0x10
test al, al
je 0x41e0ef
push 0
lea ecx, [esp + 0x14]
call fcn.0040baf0
push eax
push esi
mov ecx, ebp
call fcn.00404f00
test al, al
je 0x41e0ef
mov bl, 1
jmp 0x41e0f1
xor bl, bl
lea ecx, [esp + 0x10]
call fcn.0040b370
test bl, bl
jne 0x41e105
xor bl, bl
jmp 0x41e279
push ebp
lea eax, [esp + 0x40]
push eax
push 0
push 0
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0041d570
mov esi, dword [esp + 0x58]
mov bl, al
add esp, 0x18
test bl, bl
je 0x41e26f
test esi, esi
je 0x41e279
push 1
lea ecx, [esp + 0x48]
mov dword [esp + 0x14], 0
call fcn.004062c0
push 0
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x4c]
push 0x10
push eax
call fcn.0040a900
add esp, 0x10
test eax, eax
je 0x41e258
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x14]
call fcn.004087b0
test al, al
je 0x41e258
push dword [esp + 0x10]
mov eax, dword [esi]
push esi
call dword [eax + 0x20]
mov edi, eax
test edi, edi
jns 0x41e1e5
push str.Rename_existing_rule
push str.COM_error_occurred
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x442970
push str._s__Message:___s_
push eax
mov dword [esp + 0x3c], 0
call fcn.0040b9e0
add esp, 0x10
test al, al
je 0x41e1d6
push 0
lea ecx, [esp + 0x2c]
call fcn.0040baf0
push eax
push edi
mov ecx, ebp
call fcn.00404f00
test al, al
je 0x41e1d6
mov bl, 1
jmp 0x41e1d8
xor bl, bl
lea ecx, [esp + 0x28]
call fcn.0040b370
test bl, bl
je 0x41e258
mov eax, dword [esp + 0x1c]
push dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edi, eax
test edi, edi
jns 0x41e254
push str.Remove_existing_rule
push str.COM_error_occurred
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0x442970
push str._s__Message:___s_
push eax
mov dword [esp + 0x44], 0
call fcn.0040b9e0
add esp, 0x10
test al, al
je 0x41e245
push 0
lea ecx, [esp + 0x34]
call fcn.0040baf0
push eax
push edi
mov ecx, ebp
call fcn.00404f00
test al, al
je 0x41e245
mov bl, 1
jmp 0x41e247
xor bl, bl
lea ecx, [esp + 0x30]
call fcn.0040b370
test bl, bl
je 0x41e258
mov bl, 1
jmp 0x41e25a
xor bl, bl
lea ecx, [esp + 0x10]
call fcn.004081a0
mov edi, dword [esp + 0x38]
test bl, bl
jne 0x41e105
test esi, esi
je 0x41e279
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], vtable.SmartCOMPointer_struct_INetFwRules_.0
test ecx, ecx
je 0x41e28f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], vtable.SmartCOMPointer_struct_INetFwPolicy2_.0
test ecx, ecx
je 0x41e2a5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0xb4]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041e5aa
add esp, 0xa8
ret