Function at 0x403061
Capabilities:
Access firewall policy via inetfwpolicy2
Access firewall rule properties via inetfwrule

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
push dword [esp + 0x3c]
xor edi, edi
or ebx, 0xffffffff
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
call fcn.004033aa
push dword [esp + 0x40]
mov dword [esp + 0x40], eax
call fcn.004033aa
push dword [esp + 0x44]
mov esi, eax
mov dword [esp + 0x24], esi
call fcn.004033aa
push dword [esp + 0x38]
mov ebp, eax
call fcn.004033aa
push dword [esp + 0x48]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x28]
push 0x404110
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x24]
push eax
call fcn.004033aa
mov dword [esp + 0x44], eax
cmp dword [esp + 0x3c], edi
je 0x40330b
test esi, esi
je 0x40330b
test ebp, ebp
je 0x40330b
cmp dword [esp + 0x40], edi
je 0x40330b
test eax, eax
je 0x40330b
push 2
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, eax
cmp ebx, 0x80010106
je 0x40312b
test ebx, ebx
jns 0x40312b
push ebx
push str.CoInitializeEx_failed:__Xh_n
call fcn.00401ddb
pop ecx
pop ecx
jmp 0x40330b
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [esp + 0x18]
push eax
push 0x404324
push 1
push edi
push 0x404314
call esi
test eax, eax
jns 0x403151
push eax
push str.CoCreateInstance___for_INetFwPolicy2_failed:__Xh_n
jmp 0x40311f
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
test eax, eax
jns 0x40316c
push eax
push str.get_Rules_failed:__Xh_n
jmp 0x40311f
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jns 0x403187
push eax
push str.get_CurrentProfileTypes_failed:__Xh_n
jmp 0x40311f
lea eax, [esp + 0x10]
mov dword [esp + 0x1c], SysStringLen
push eax
push 0x404344
push 1
push edi
push 0x404334
call esi
test eax, eax
jns 0x4031b2
push eax
push str.CoCreateInstance_for_Firewall_Rule_failed:__Xh_n
jmp 0x40311f
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x3c]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
test eax, eax
jns 0x4031d0
push eax
push str.put_Name_failed:__Xh_n
jmp 0x40311f
mov eax, dword [esp + 0x10]
push dword [esp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
test eax, eax
jns 0x4031ed
push eax
push str.put_Description_failed:__Xh_n
jmp 0x40311f
mov eax, dword [esp + 0x10]
push dword [esp + 0x40]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
test eax, eax
jns 0x40320a
push eax
push str.put_ApplicationName_failed:__Xh_n
jmp 0x40311f
mov eax, dword [esp + 0x10]
push dword [esp + 0x50]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
test eax, eax
jns 0x403227
push eax
push str.put_Protocol_failed:__Xh_n
jmp 0x40311f
cmp dword [esp + 0x48], edi
je 0x40324a
mov eax, dword [esp + 0x10]
push dword [esp + 0x44]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
test eax, eax
jns 0x40324a
push eax
push str.put_LocalPorts_failed:__Xh_n
jmp 0x40311f
mov eax, dword [esp + 0x10]
push dword [esp + 0x4c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x70]
test eax, eax
jns 0x403267
push eax
push str.put_Direction_failed:__Xh_n
jmp 0x40311f
mov eax, dword [esp + 0x10]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x90]
test eax, eax
jns 0x403284
push eax
push str.put_Grouping_failed:__Xh_n
jmp 0x40311f
mov eax, dword [esp + 0x10]
push dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x98]
test eax, eax
jns 0x4032a4
push eax
push str.put_Profiles_failed:__Xh_n
jmp 0x40311f
mov eax, dword [esp + 0x10]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
test eax, eax
jns 0x4032c2
push eax
push str.put_Action_failed:__Xh_n
jmp 0x40311f
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
mov ecx, dword [eax]
call dword [ecx + 0x88]
test eax, eax
jns 0x4032e0
push eax
push str.put_Enabled_failed:__Xh_n
jmp 0x40311f
mov eax, dword [esp + 0x14]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [esp + 0x14]
push dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
test eax, eax
jns 0x403308
push eax
push str.Firewall_Rule_Add_failed:__Xh_n
jmp 0x40311f
xor edi, edi
inc edi
push dword [esp + 0x3c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [esp + 0x20]
call esi
push ebp
call esi
push dword [esp + 0x40]
call esi
push dword [esp + 0x44]
call esi
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40333a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x403348
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x403356
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test ebx, ebx
js 0x403360
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x1c