Function at 0x402790
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdcc
push ebx
push edi
xor ebx, ebx
push 2
push ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, eax
mov dword [ebp - 0x28], edi
cmp edi, ebx
je 0x4027cf
cmp edi, 1
je 0x4027cf
cmp edi, 0x80010106
jne 0x4029d4
push esi
push 0x104
lea eax, [ebp - 0x234]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea ecx, [ebp - 0x234]
push ecx
call esi
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x402979
push str.Windows_Explorer
call esi
mov edi, eax
cmp edi, ebx
je 0x402963
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea edx, [ebp - 0x24]
push edx
push 0x40c66c
push 0x4401
push ebx
push 0x40c65c
mov dword [ebp - 0x24], ebx
call esi
or eax, eax
jne 0x402937
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x402937
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x14], eax
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jne 0x402963
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jne 0x402963
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
jne 0x402963
or ebx, 0xffffffff
cmp word [ebp - 0x1c], bx
jne 0x402961
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jne 0x402961
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp - 0x10]
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
cmp eax, 0x80070002
jne 0x40293c
lea ecx, [ebp - 0x2c]
push ecx
push 0x40c68c
push 0x4401
push 0
push 0x40c67c
mov dword [ebp - 0x2c], 0
call esi
test eax, eax
jne 0x4028ec
mov ebx, dword [ebp - 0x2c]
or ebx, ebx
jne 0x4028ee
xor ebx, ebx
mov dword [ebp - 4], ebx
or ebx, ebx
je 0x402961
mov edx, dword [ebx]
push edi
push ebx
mov eax, dword [edx + 0x20]
call eax
or eax, eax
jne 0x402961
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
test eax, eax
jne 0x402961
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x38]
push 0
push eax
call edx
test eax, eax
jne 0x402961
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
jmp 0x402961
mov dword [ebp - 0x14], ebx
jmp 0x402963
mov esi, dword [ebp - 4]
mov ecx, dword [esi]
lea edx, [ebp - 0x20]
push edx
push esi
mov eax, dword [ecx + 0x44]
call eax
test eax, eax
jne 0x402961
cmp word [ebp - 0x20], bx
je 0x402961
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x48]
push ebx
push eax
call edx
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push eax
call esi
cmp edi, ebx
je 0x402976
push edi
call esi
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
pop esi
cmp eax, ebx
je 0x402989
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x402998
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x4029a7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x4029b6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4029c5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp edi, ebx
je 0x4029ce
cmp edi, 1
jne 0x4029d4
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret