Function at 0x40e310
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d870
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x49ffb8]
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
mov dword [ebp - 0x44], edx
mov ebx, ecx
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, eax
test edi, edi
jns 0x40e3eb
cmp dword [0x4a1a34], 0
jl 0x40e3e4
lea ecx, [ebp - 0x48]
call fcn.0041de50
mov dword [ebp - 4], 0
mov ecx, dword [eax + 4]
mov dword [ecx + 8], 0
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x40e389
add esi, 0x10
jmp 0x40e38b
xor esi, esi
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.00425580
push eax
push ecx
push str.AuthorizeApplication_failing_CoInitializeEx_failed_with_hr_
push esi
mov byte [ebp - 4], 1
call fcn.00407740
add esp, 0xc
push eax
call fcn.004079f0
add esp, 8
cmp dword [ebp - 0x14], 0x10
jb 0x40e3c3
push dword [ebp - 0x28]
call fcn.0043d98b
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.0041dee0
xor al, al
jmp 0x40ec12
push 0
push 0
push 0
push 3
push 6
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov esi, eax
test esi, esi
jns 0x40e465
cmp esi, 0x80010119
jne 0x40e4c5
cmp dword [0x4a1a34], 3
jl 0x40e465
lea ecx, [ebp - 0x58]
call fcn.0041de50
mov dword [ebp - 4], 2
mov ecx, dword [eax + 4]
mov dword [ecx + 8], 3
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x40e446
add eax, 0x10
jmp 0x40e448
xor eax, eax
push str.AuthorizeApplication_CoInitializeSecurity_failed_with_hr__RPC_E_TOO_LATE____continuing.
push eax
call fcn.00407740
add esp, 8
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.0041dee0
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [ebp - 0x64]
push eax
push 0x48e8a4
push 1
push 0
push 0x48e8b4
mov dword [ebp - 0x64], 0
call esi
mov edi, eax
test edi, edi
jns 0x40e566
cmp dword [0x4a1a34], 0
jl 0x40e3e4
lea ecx, [ebp - 0x48]
call fcn.0041de50
mov dword [ebp - 4], 5
mov ecx, dword [eax + 4]
mov dword [ecx + 8], 0
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x40e530
add esi, 0x10
jmp 0x40e532
cmp dword [0x4a1a34], 0
jl 0x40e3e4
lea ecx, [ebp - 0x48]
call fcn.0041de50
mov dword [ebp - 4], 3
mov ecx, dword [eax + 4]
mov dword [ecx + 8], 0
mov eax, dword [eax + 4]
mov edi, dword [eax + 4]
test edi, edi
je 0x40e4fa
add edi, 0x10
jmp 0x40e4fc
xor edi, edi
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.00425580
push eax
push ecx
push str.AuthorizeApplication_failing_CoInitializeSecurity_failed_with_hr_
push edi
mov byte [ebp - 4], 4
call fcn.00407740
add esp, 0xc
push eax
call fcn.004079f0
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.00404080
jmp 0x40e3d5
xor esi, esi
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.00425580
push eax
push ecx
mov byte [ebp - 4], 6
push str.AuthorizeApplication_CoCreateInstance_failed_hr:
push esi
call fcn.00407740
add esp, 0xc
push eax
call fcn.004079f0
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.00404080
jmp 0x40e3d5
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1c]
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ecx]
mov edi, eax
call dword [edx + 8]
test edi, edi
jns 0x40e5da
cmp dword [0x4a1a34], 0
jl 0x40e3e4
lea ecx, [ebp - 0x48]
call fcn.0041de50
mov dword [ebp - 4], 7
mov ecx, dword [eax + 4]
mov dword [ecx + 8], 0
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x40e5be
add esi, 0x10
jmp 0x40e5c0
xor esi, esi
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.00425580
push eax
push ecx
mov byte [ebp - 4], 8
push str.AuthorizeApplication_get_LocalPolicy_failed_hr:
jmp 0x40e547
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x60]
mov dword [ebp - 0x60], 0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1c]
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ecx]
mov edi, eax
call dword [edx + 8]
test edi, edi
jns 0x40e64e
cmp dword [0x4a1a34], 0
jl 0x40e3e4
lea ecx, [ebp - 0x48]
call fcn.0041de50
mov dword [ebp - 4], 9
mov ecx, dword [eax + 4]
mov dword [ecx + 8], 0
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x40e632
add esi, 0x10
jmp 0x40e634
xor esi, esi
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.00425580
push eax
push ecx
mov byte [ebp - 4], 0xa
push str.AuthorizeApplication_get_CurrentProfile_failed_hr:
jmp 0x40e547
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x50]
mov dword [ebp - 0x50], 0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ecx]
mov edi, eax
call dword [edx + 8]
test edi, edi
jns 0x40e6c2
cmp dword [0x4a1a34], 0
jl 0x40e3e4
lea ecx, [ebp - 0x48]
call fcn.0041de50
mov dword [ebp - 4], 0xb
mov ecx, dword [eax + 4]
mov dword [ecx + 8], 0
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x40e6a6
add esi, 0x10
jmp 0x40e6a8
xor esi, esi
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.00425580
push eax
push ecx
mov byte [ebp - 4], 0xc
push str.AuthorizeApplication_get_AuthorizedApplications_failed:
jmp 0x40e547
mov edx, ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x4c], 0
call fcn.0041c500
cmp dword [eax + 0x14], 8
jb 0x40e6db
mov eax, dword [eax]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.0040be60
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
mov edx, dword [ecx]
push eax
push edi
push ecx
call dword [edx + 0x28]
test eax, eax
js 0x40e830
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x54]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x44]
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ecx]
mov edi, eax
call dword [edx + 8]
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test edi, edi
jns 0x40e77f
cmp dword [0x4a1a34], 0
jl 0x40e3e4
lea ecx, [ebp - 0x48]
call fcn.0041de50
mov dword [ebp - 4], 0xd
mov ecx, dword [eax + 4]
mov dword [ecx + 8], 0
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x40e763
add esi, 0x10
jmp 0x40e765
xor esi, esi
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.00425580
push eax
push ecx
mov byte [ebp - 4], 0xe
push str.AuthorizeApplication_get_Enabled_failed:
jmp 0x40e547
cmp word [ebp - 0x54], 0
jne 0x40e7db
cmp dword [0x4a1a34], 2
jl 0x40e3e4
lea ecx, [ebp - 0x48]
call fcn.0041de50
mov dword [ebp - 4], 0xf
mov ecx, dword [eax + 4]
mov dword [ecx + 8], 2
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x40e7bb
add eax, 0x10
jmp 0x40e7bd
xor eax, eax
push ebx
push ecx
push str.AuthorizeApplication_app_is_found_as_firewall_exception_but_NOT_enabled_:
push eax
call fcn.00407740
add esp, 0xc
push eax
call fcn.004079f0
add esp, 8
jmp 0x40e3d5
cmp dword [0x4a1a34], 2
jl 0x40ec10
lea ecx, [ebp - 0x48]
call fcn.0041de50
mov dword [ebp - 4], 0x10
mov ecx, dword [eax + 4]
mov dword [ecx + 8], 2
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x40e810
add eax, 0x10
jmp 0x40e812
xor eax, eax
push ebx
push ecx
push str.AuthorizeApplication_app_is_found_as_firewall_exception_but_NOT_enabled_:
push eax
call fcn.00407740
add esp, 0xc
push eax
call fcn.004079f0
lea ecx, [ebp - 0x48]
jmp 0x40ec01
lea eax, [ebp - 0x4c]
push eax
push 0x48ec48
push 1
push 0
push 0x48e894
call esi
mov dword [ebp - 0x54], eax
test eax, eax
jns 0x40e8d8
cmp dword [0x4a1a34], 0
jl 0x40e8c1
lea ecx, [ebp - 0x48]
call fcn.0041de50
mov dword [ebp - 4], 0x11
mov ecx, dword [eax + 4]
mov dword [ecx + 8], 0
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x40e880
add esi, 0x10
jmp 0x40e882
xor esi, esi
mov edx, dword [ebp - 0x54]
lea ecx, [ebp - 0x40]
call fcn.00425580
push eax
push ecx
push str.AuthorizeApplication_CoCreateInstance_failed:_hr
push esi
mov byte [ebp - 4], 0x12
call fcn.00407740
add esp, 0xc
push eax
call fcn.004079f0
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.00404080
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.0041dee0
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor al, al
jmp 0x40ec12
mov eax, dword [ebp - 0x4c]
push edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov dword [ebp - 0x54], eax
test eax, eax
jns 0x40e99d
cmp dword [0x4a1a34], 0
jl 0x40e97d
lea ecx, [ebp - 0x48]
call fcn.0041de50
mov dword [ebp - 4], 0x13
mov ecx, dword [eax + 4]
mov dword [ecx + 8], 0
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x40e922
add esi, 0x10
jmp 0x40e924
xor esi, esi
mov edx, dword [ebp - 0x54]
lea ecx, [ebp - 0x40]
call fcn.00425580
push eax
push ecx
push str.:_hr
push ecx
push ebx
push ecx
push str.AuthorizeApplication_put_ProcessImageFileName_failed_for_file:
push esi
mov byte [ebp - 4], 0x14
call fcn.00407740
add esp, 0xc
push eax
call fcn.004079f0
add esp, 0xc
push eax
call fcn.00407740
add esp, 0xc
push eax
call fcn.004079f0
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.00404080
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.0041dee0
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor al, al
jmp 0x40ec12
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
call fcn.0041c500
cmp dword [eax + 0x14], 8
jb 0x40e9b7
mov eax, dword [eax]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.0040be60
mov ecx, dword [ebp - 0x4c]
push esi
mov edx, dword [ecx]
push ecx
call dword [edx + 0x20]
push esi
mov dword [ebp - 0x54], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x54], 0
jge 0x40ea71
cmp dword [0x4a1a34], 0
jl 0x40ea58
lea ecx, [ebp - 0x48]
call fcn.0041de50
mov dword [ebp - 4], 0x15
mov ecx, dword [eax + 4]
mov dword [ecx + 8], 0
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x40ea17
add esi, 0x10
jmp 0x40ea19
xor esi, esi
mov edx, dword [ebp - 0x54]
lea ecx, [ebp - 0x40]
call fcn.00425580
push eax
push ecx
push str.AuthorizeApplication_put_ProcessImageFileName_failed:_hr
push esi
mov byte [ebp - 4], 0x16
call fcn.00407740
add esp, 0xc
push eax
call fcn.004079f0
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.00404080
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.0041dee0
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor al, al
jmp 0x40ec12
mov eax, dword [ebp - 0x4c]
push 0xffffffffffffffff
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov dword [ebp - 0x44], eax
test eax, eax
jns 0x40eb12
cmp dword [0x4a1a34], 0
jl 0x40eaf9
lea ecx, [ebp - 0x58]
call fcn.0041de50
mov dword [ebp - 4], 0x17
mov ecx, dword [eax + 4]
mov dword [ecx + 8], 0
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x40eab8
add esi, 0x10
jmp 0x40eaba
xor esi, esi
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
call fcn.00425580
push eax
push ecx
push str.AuthorizeApplication_put_Enabled_failed:_hr
push esi
mov byte [ebp - 4], 0x18
call fcn.00407740
add esp, 0xc
push eax
call fcn.004079f0
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.00404080
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.0041dee0
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor al, al
jmp 0x40ec12
mov eax, dword [ebp - 0x50]
push dword [ebp - 0x4c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov dword [ebp - 0x44], eax
test eax, eax
jns 0x40eba3
cmp dword [0x4a1a34], 0
jl 0x40eb97
lea ecx, [ebp - 0x58]
call fcn.0041de50
mov dword [ebp - 4], 0x19
mov ecx, dword [eax + 4]
mov dword [ecx + 8], 0
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x40eb56
add esi, 0x10
jmp 0x40eb58
xor esi, esi
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
call fcn.00425580
push eax
push ecx
push str.AuthorizeApplication_fwApps__Add_failed:_hr
push esi
mov byte [ebp - 4], 0x1a
call fcn.00407740
add esp, 0xc
push eax
call fcn.004079f0
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.00404080
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.0041dee0
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x40ea58
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [0x4a1a34], 2
jl 0x40ec10
lea ecx, [ebp - 0x6c]
call fcn.0041de50
mov dword [ebp - 4], 0x1b
mov ecx, dword [eax + 4]
mov dword [ecx + 8], 2
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x40ebe6
add eax, 0x10
jmp 0x40ebe8
xor eax, eax
push ebx
push ecx
push str.AuthorizeApplication_app_is_added_as_exception:
push eax
call fcn.00407740
add esp, 0xc
push eax
call fcn.004079f0
lea ecx, [ebp - 0x6c]
add esp, 8
mov dword [ebp - 4], 0xffffffff
call fcn.0041dee0
mov al, 1
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.0043cee8
mov esp, ebp
pop ebp
ret