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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448ca0
mov eax, dword fs:[0]
push eax
sub esp, 0xa6c
mov eax, dword [0x45d780]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x410
lea eax, [ebp - 0x830]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0xa70], ebx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xa70]
push ecx
push 0x44d878
push 1
push ebx
push 0x44d868
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x40626a
mov dword [ebp - 0xa68], ebx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xa70]
mov edx, dword [eax]
mov edx, dword [edx + 0x48]
lea ecx, [ebp - 0xa68]
push ecx
push eax
call edx
mov esi, eax
cmp esi, ebx
jl 0x406254
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str.RemoteEnet_Module
call edi
mov esi, eax
mov dword [ebp - 0xa78], esi
cmp esi, ebx
jne 0x405f00
push 0x8007000e
call fcn.00401770
mov byte [ebp - 4], 4
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0xa5c]
call fcn.00405da0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xa50]
cmp eax, ebx
jne 0x4060af
mov dword [ebp - 0xa6c], ebx
mov byte [ebp - 4], 6
mov dword [ebp - 0xa60], ebx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0xa68]
mov ecx, dword [eax]
lea edx, [ebp - 0xa60]
push edx
push esi
push eax
mov eax, dword [ecx + 0x28]
call eax
mov edi, eax
cmp edi, ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
jl 0x406063
mov dword [ebp - 0xa74], 0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0xa60]
mov ecx, dword [eax]
lea edx, [ebp - 0xa74]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov esi, eax
test esi, esi
js 0x40603b
mov eax, dword [ebp - 0xa74]
test eax, eax
je 0x406036
mov ecx, dword [ebp - 0xa6c]
push ecx
push eax
call fcn.00431649
add esp, 8
test eax, eax
jne 0x406036
mov eax, dword [ebp - 0xa60]
mov edx, dword [eax]
mov edx, dword [edx + 0x6c]
lea ecx, [ebp - 0xa64]
push ecx
push eax
call edx
mov esi, eax
test esi, esi
js 0x40603b
cmp dword [ebp - 0xa64], 1
jne 0x406036
mov eax, dword [ebp - 0xa60]
mov ecx, dword [eax]
lea edx, [ebp - 0xa64]
push edx
push eax
mov eax, dword [ecx + 0xa4]
call eax
mov esi, eax
test esi, esi
js 0x40603b
cmp dword [ebp - 0xa64], 1
jne 0x406036
mov eax, dword [ebp - 0xa60]
lea edx, [ebp - 0xa64]
mov dword [ebp - 0xa64], 0
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x94]
call eax
mov esi, eax
test esi, esi
js 0x40603b
mov ecx, dword [ebp - 0xa64]
and ecx, 7
cmp cl, 7
je 0x406052
mov esi, 0x80004005
mov eax, dword [ebp - 0xa68]
mov ecx, dword [ebp - 0xa78]
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
push ecx
push eax
call edx
mov edi, esi
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0xa74]
push eax
call ebx
test edi, edi
jns 0x406088
lea ecx, [ebp - 0xa60]
push ecx
push 0x44d8e0
push 1
push 0
push 0x44d8d0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x406213
mov esi, dword [ebp - 0xa60]
push str.RemoteEnet_Module
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0xa64], edi
test edi, edi
jne 0x4060ca
push 0x8007000e
call fcn.00401770
push eax
call edi
mov dword [ebp - 0xa6c], eax
cmp eax, ebx
jne 0x405f2e
push 0x8007000e
call fcn.00401770
mov byte [ebp - 4], 0xa
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
push edi
push esi
call eax
mov esi, eax
mov byte [ebp - 4], 8
push edi
call ebx
test esi, esi
js 0x406213
mov esi, dword [ebp - 0xa60]
push str.Allow_inbound_trafic_for_remote
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0xa64], edi
test edi, edi
jne 0x40610f
push 0x8007000e
call fcn.00401770
mov byte [ebp - 4], 0xb
mov ecx, dword [esi]
mov edx, dword [ecx + 0x28]
push edi
push esi
call edx
mov esi, eax
mov byte [ebp - 4], 8
push edi
call ebx
test esi, esi
js 0x406213
mov eax, dword [ebp - 0xa60]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x70]
push 1
push eax
call edx
mov esi, eax
test esi, esi
js 0x406213
mov eax, dword [ebp - 0xa60]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa8]
push 1
push eax
call edx
mov esi, eax
test esi, esi
js 0x406213
mov eax, dword [ebp - 0xa60]
mov edx, dword [ebp - 0xa6c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
mov esi, eax
test esi, esi
js 0x406213
mov eax, dword [ebp - 0xa60]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x98]
push bind
push eax
call edx
mov esi, eax
test esi, esi
js 0x406213
mov esi, dword [ebp - 0xa60]
push 0x44d888
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0xa64], edi
test edi, edi
jne 0x4061c6
push 0x8007000e
call fcn.00401770
mov byte [ebp - 4], 0xc
mov eax, dword [esi]
mov ecx, dword [eax + 0x80]
push edi
push esi
call ecx
mov esi, eax
mov byte [ebp - 4], 8
push edi
call ebx
test esi, esi
js 0x406213
mov eax, dword [ebp - 0xa60]
mov edx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [edx + 0x88]
call eax
mov esi, eax
test esi, esi
js 0x406213
mov eax, dword [ebp - 0xa68]
mov edx, dword [ebp - 0xa60]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov esi, eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xa60]
test eax, eax
je 0x406229
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xa6c]
push eax
call ebx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa5c]
call fcn.004030c0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xa78]
push ecx
call ebx
xor ebx, ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xa68]
cmp eax, ebx
je 0x40626a
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xa70]
cmp eax, ebx
je 0x406283
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00430215
mov esp, ebp
pop ebp
ret