Function at 0x4223de
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push 0x28
mov eax, 0x4aa78f
call fcn.004a956e
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x42241f
test byte [eax + 0x1c], 1
je 0x42241f
cmp byte [eax + 0x19], 5
jb 0x42241f
push dword [ebx + 0x40]
mov edx, 0x4066d8
mov ecx, 0x103
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041610f
xor ecx, ecx
mov edi, ecx
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ecx
push eax
push 0x406624
push 1
push ecx
push 0x406614
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
mov edx, dword [0x4b70c8]
cmp edx, 0x4b70c8
je 0x422485
test byte [edx + 0x1c], 2
je 0x422485
movzx ecx, byte [edx + 0x19]
xor eax, eax
test esi, esi
sets al
dec eax
and eax, 3
add eax, 2
cmp ecx, eax
jb 0x422485
push dword [ebp - 0x14]
mov ecx, 0x104
push esi
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x4066d8
call fcn.00417822
test esi, esi
js 0x42268f
xor eax, eax
lea edx, [ebp - 0x10]
mov word [ebp - 0x10], ax
mov eax, dword [ebp - 0x14]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x4bb544]
call esi
mov esi, eax
mov edx, dword [0x4b70c8]
cmp edx, 0x4b70c8
je 0x4224f1
test byte [edx + 0x1c], 2
je 0x4224f1
movzx ecx, byte [edx + 0x19]
xor eax, eax
test esi, esi
sets al
dec eax
and eax, 3
add eax, 2
cmp ecx, eax
jb 0x4224f1
movsx eax, word [ebp - 0x10]
mov ecx, 0x105
push eax
push esi
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x4066d8
call fcn.00417822
test esi, esi
js 0x42268f
or esi, 0xffffffff
cmp si, word [ebp - 0x10]
jne 0x422692
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
push 0x406644
push 1
push 0
push 0x406634
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
mov edx, dword [0x4b70c8]
cmp edx, 0x4b70c8
je 0x42256b
test byte [edx + 0x1c], 2
je 0x42256b
movzx ecx, byte [edx + 0x19]
xor eax, eax
test esi, esi
sets al
dec eax
and eax, 3
add eax, 2
cmp ecx, eax
jb 0x42256b
push dword [ebp - 0x10]
mov ecx, 0x106
push esi
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x4066d8
call fcn.00417822
test esi, esi
js 0x422674
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
and dword [ebp - 0x18], 0
push eax
call fcn.0041eb6b
test eax, eax
js 0x422674
cmp dword [ebp - 0x18], 0
je 0x422674
lea esi, [ebx + 0xa0]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebx + 0xb8]
mov ecx, eax
mov dword [ebp - 0x1c], eax
call fcn.004239ea
mov dword [ebp - 0x18], eax
test eax, eax
je 0x42266d
mov ebx, dword [ebp - 0x1c]
test edi, edi
jne 0x422664
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.00423a3f
mov eax, dword [eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x42265a
call fcn.004271c8
lea ecx, [ebp - 0x28]
push dword [eax]
call fcn.00499170
mov dword [ebp - 0x28], 0x401660
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x28]
call fcn.004992ed
test eax, eax
jne 0x422643
xor esi, esi
cmp dword [ebp - 0x30], esi
jle 0x422643
test edi, edi
jne 0x422643
push esi
lea ecx, [ebp - 0x34]
call fcn.00423367
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x28]
push dword [eax]
call fcn.00499a70
test eax, eax
jne 0x42263d
cmp dword [ebp - 0x1c], 1
jne 0x42263d
inc edi
inc esi
cmp esi, dword [ebp - 0x30]
jl 0x422617
lea ecx, [ebp - 0x34]
call fcn.0042338c
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.004174b0
cmp dword [ebp - 0x18], 0
jne 0x4225c0
mov ebx, dword [ebp - 0x20]
lea esi, [ebx + 0xa0]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x42268f
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4bb544]
call esi
or esi, 0xffffffff
mov dword [ebx + 0x40], edi
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x4226c3
test byte [eax + 0x1c], 1
je 0x4226c3
cmp byte [eax + 0x19], 5
jb 0x4226c3
push edi
push dword [eax + 0x14]
mov edx, 0x4066d8
mov ecx, 0x107
push dword [eax + 0x10]
call fcn.0041610f
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4226dd
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4bb544]
call esi
call fcn.004a953c
ret