Function at 0x41d680
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
sub esp, 0xac
mov eax, dword [0x44a1a0]
xor eax, esp
mov dword [esp + 0xa4], eax
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], vtable.SmartCOMPointer_struct_INetFwPolicy2_.0
push eax
push 0x445f44
push 1
push 0
mov ebp, edx
mov dword [esp + 0x3c], 0
mov edi, ecx
mov dword [esp + 0x2c], ebp
push 0x445fe4
mov dword [esp + 0x50], edi
mov dword [esp + 0x28], vtable.SmartCOMPointer_struct_INetFwRules_.0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x48], vtable.SmartCOMPointer_struct_INetFwRule_.0
mov dword [esp + 0x4c], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
push ebp
push ecx
push eax
call fcn.0041e0f0
test al, al
je 0x41d8b1
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x2c]
test ecx, ecx
je 0x41d70f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push ebp
push ecx
mov dword [esp + 0x20], 0
lea ecx, [esp + 0x20]
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x48]
push eax
call fcn.0041ddb0
test al, al
je 0x41d8b1
push ebp
lea eax, [esp + 0x38]
mov edx, edi
push eax
sub esp, 8
lea ecx, [esp + 0x24]
call fcn.0041d260
mov bl, al
add esp, 0x10
test bl, bl
je 0x41d8a1
mov edi, dword [esp + 0x38]
test edi, edi
je 0x41d8b3
lea eax, [esp + 0x40]
xorps xmm0, xmm0
push eax
movdqu xmmword [esp + 0x44], xmm0
call dword [sym.imp.ole32.dll_CoCreateGuid]
movzx ebx, byte [esp + 0x40]
lea esi, [esp + 0x50]
mov edx, ebx
mov dword [esp + 0x30], esi
mov eax, edx
lea ecx, [esp + 0x40]
shl eax, 8
or edx, eax
mov eax, edx
shl eax, 0x10
or edx, eax
mov eax, dword [ecx]
add ecx, 4
cmp eax, edx
jne 0x41d7b2
lea eax, [esp + 0x4c]
cmp ecx, eax
jbe 0x41d794
test ebx, ebx
jne 0x41d7b2
xor eax, eax
mov word [esp + 0x50], ax
jmp 0x41d7d0
push 0
lea eax, [esp + 0x44]
mov ecx, str.0123456789ABCDEF
push 0x10
push eax
lea edx, [esp + 0x3c]
call fcn.004046a0
mov esi, dword [esp + 0x3c]
add esp, 0xc
xor eax, eax
mov word [esi], ax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
je 0x41d888
mov eax, dword [edi]
push esi
push edi
call dword [eax + 0x20]
mov edi, eax
test edi, edi
jns 0x41d869
push str.Rename_existing_rule
push str.COM_error_occurred
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x43c8e0
push str._s__Message:___s_
push eax
mov dword [esp + 0x34], 0
call fcn.004068a0
mov ebp, dword [esp + 0x30]
add esp, 0x10
test al, al
je 0x41d83f
push ecx
mov ecx, dword [esp + 0x20]
push ebp
push edi
call fcn.00408c20
test al, al
je 0x41d83f
mov bl, 1
jmp 0x41d841
xor bl, bl
cmp dword [esp + 0x24], 0
je 0x41d861
push ebp
call fcn.0041f5f1
add esp, 4
mov dword [esp + 0x20], 0x43c8e0
mov dword [esp + 0x24], 0
mov ebp, dword [esp + 0x1c]
test bl, bl
je 0x41d888
mov eax, dword [esp + 0x18]
push ebp
push str.Remove_existing_rule
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
push eax
call fcn.0041dba0
test al, al
je 0x41d888
mov bl, 1
jmp 0x41d88a
xor bl, bl
test esi, esi
je 0x41d895
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edi, dword [esp + 0x3c]
test bl, bl
jne 0x41d732
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x41d8b3
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x41d8b3
xor bl, bl
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], vtable.SmartCOMPointer_struct_INetFwRules_.0
test ecx, ecx
je 0x41d8c9
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], vtable.SmartCOMPointer_struct_INetFwPolicy2_.0
test ecx, ecx
je 0x41d8df
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.0041e8c8
add esp, 0xac
ret