Function at 0x40bae0
Capabilities:
Access firewall settings via inetfwmgr
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x240
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
mov dword [esp + 4], 0x104
mov dword [esp], 0
call dword [sym.imp.oleaut32.dll_SysAllocStringLen]
sub esp, 8
mov esi, eax
mov dword [esp + 8], 0x104
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
sub esp, 0xc
test eax, eax
je 0x40c020
lea edi, [ebp - 0x214]
mov dword [esp + 4], 0x104
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
sub esp, 8
test eax, eax
je 0x40c020
cmp word [ebp - 0x214], 0
mov edx, edi
je 0x40bb99
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x40bb90
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + str.dpnsvr.exe]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40bba0
mov dword [esp + 4], 2
mov dword [esp], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x22c], eax
sub esp, 8
lea eax, [ebp - 0x228]
mov dword [esp + 0x10], eax
mov eax, dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [esp + 0xc], 0x418ed8
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x418e78
mov dword [ebp - 0x230], eax
call eax
sub esp, 0x14
mov ebx, eax
call fcn.0040f8c0
mov dword [eax], 0x415224
mov dword [eax + 4], 0x15d
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.got__08lx_n
mov dword [esp], eax
call fcn.0040b890
test ebx, ebx
jne 0x40bd08
mov eax, dword [ebp - 0x228]
lea ecx, [ebp - 0x224]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x1c]
sub esp, 8
mov ebx, eax
call fcn.0040f8c0
mov dword [eax], 0x415224
mov dword [eax + 4], 0x161
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.got__08lx_n
mov dword [esp], eax
call fcn.0040b890
test ebx, ebx
jne 0x40bd08
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x220]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x1c]
sub esp, 8
mov ebx, eax
test eax, eax
jne 0x40bd08
mov eax, dword [ebp - 0x220]
lea ecx, [ebp - 0x218]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x50]
sub esp, 8
mov ebx, eax
call fcn.0040f8c0
mov dword [eax], 0x415224
mov dword [eax + 4], 0x168
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.got__08lx_n
mov dword [esp], eax
call fcn.0040b890
test ebx, ebx
je 0x40bda0
lea esi, [esi]
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x40bd1d
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x40bd32
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x40bd47
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x40bd5c
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x40bd71
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0x22c]
test eax, eax
js 0x40bd81
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esp], esi
call dword [sym.imp.oleaut32.dll_SysFreeString]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebx, [ebp - 0x21c]
mov dword [esp + 0xc], 0x418f88
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x418e88
mov eax, dword [ebp - 0x230]
call eax
sub esp, 0x14
mov ebx, eax
call fcn.0040f8c0
mov dword [eax], 0x415224
mov dword [eax + 4], 0x16d
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.got__08lx_n
mov dword [esp], eax
call fcn.0040b890
test ebx, ebx
jne 0x40bd08
mov eax, dword [ebp - 0x21c]
mov edx, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x28]
sub esp, 8
mov ebx, eax
test eax, eax
jne 0x40bd08
mov eax, dword [sym.imp.oleaut32.dll_SysAllocString]
mov dword [esp], str.dpnet_client
mov dword [ebp - 0x238], eax
call eax
mov edx, eax
mov eax, dword [ebp - 0x21c]
sub esp, 4
mov ecx, dword [eax]
mov dword [esp + 4], edx
mov dword [ebp - 0x234], edx
mov dword [esp], eax
call dword [ecx + 0x20]
mov edx, dword [ebp - 0x234]
sub esp, 8
mov ebx, eax
mov dword [esp], edx
call dword [sym.imp.oleaut32.dll_SysFreeString]
sub esp, 4
call fcn.0040f8c0
mov dword [eax], 0x415224
mov dword [eax + 4], 0x176
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.got__08lx_n
mov dword [esp], eax
call fcn.0040b890
test ebx, ebx
jne 0x40bd08
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x40c036
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x21c]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x20]
sub esp, 8
mov ebx, eax
test ebx, ebx
jne 0x40bd08
mov eax, dword [ebp - 0x21c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
lea eax, [ebp - 0x21c]
sub esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x418f88
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x418e88
mov eax, dword [ebp - 0x230]
call eax
sub esp, 0x14
mov ebx, eax
call fcn.0040f8c0
mov dword [eax], 0x415224
mov dword [eax + 4], 0x184
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.got__08lx_n
mov dword [esp], eax
call fcn.0040b890
test ebx, ebx
jne 0x40bd08
mov dword [esp], esi
call dword [sym.imp.oleaut32.dll_SysFreeString]
sub esp, 4
mov dword [esp], edi
mov edi, dword [ebp - 0x238]
call edi
mov esi, eax
mov eax, dword [ebp - 0x21c]
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x28]
sub esp, 8
mov ebx, eax
test eax, eax
jne 0x40bd08
mov dword [esp], str.dpnet_server
call edi
mov edi, eax
mov eax, dword [ebp - 0x21c]
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x20]
sub esp, 8
mov ebx, eax
mov dword [esp], edi
call dword [sym.imp.oleaut32.dll_SysFreeString]
sub esp, 4
call fcn.0040f8c0
mov dword [eax], 0x415224
mov dword [eax + 4], 0x18f
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.got__08lx_n
mov dword [esp], eax
call fcn.0040b890
test ebx, ebx
jne 0x40bd08
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x40c061
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x21c]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x20]
sub esp, 8
mov ebx, eax
jmp 0x40bd08
mov dword [esp], esi
mov ebx, 0x80004005
call dword [sym.imp.oleaut32.dll_SysFreeString]
sub esp, 4
jmp 0x40bd8d
cmp dword [ebp + 8], 1
mov ebx, 0x80070057
jne 0x40bd08
mov eax, dword [ebp - 0x218]
mov edx, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x24]
sub esp, 8
mov ebx, eax
jmp 0x40becf
cmp dword [ebp + 8], 1
jne 0x40bd08
mov eax, dword [ebp - 0x218]
mov edx, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x24]
mov ebx, eax
push edx
push edx
jmp 0x40bd08