Function at 0x403a60
Capabilities:
Access firewall settings via inetfwmgr
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40a302
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push edi
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SOFTWARECanonDIASSETUP
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x48], bl
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebp, 0x114
test eax, eax
jne 0x403af8
lea ecx, [esp + 0x18]
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x34]
push edx
push eax
push ebx
push str.Path
push ecx
mov dword [esp + 0x30], ebp
call edi
test eax, eax
je 0x403aed
mov byte [esp + 0x34], bl
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x34], bl
jne 0x403c16
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x403c06
lea ecx, [esp + 0x18]
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x34]
push edx
push eax
push ebx
push str.ProgramFilesDir
push ecx
mov dword [esp + 0x30], ebp
call edi
test eax, eax
je 0x403b49
mov byte [esp + 0x34], bl
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ecx, 0xffffffff
mov edi, 0x40d15c
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x34]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.Canon
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x34]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40d15c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x34]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.DIAS
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [esp + 0x34], bl
jne 0x403c16
mov eax, 1
jmp 0x403ea1
or ebp, 0xffffffff
mov edi, 0x40d15c
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x34]
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x34]
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov edi, str.CnxDias.exe
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x10]
mov edi, 1
push eax
push 0x40d468
push edi
push ebx
push 0x40d458
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x403cf6
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jl 0x403ce6
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
test eax, eax
jge 0x403cd3
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
jmp 0x403ea1
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x1c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
cmp eax, ebx
jge 0x403cfd
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
jmp 0x403ea1
push 0xc
call fcn.00404d52
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
cmp esi, ebx
mov dword [esp + 0x150], ebx
je 0x403d42
lea edx, [esp + 0x34]
mov dword [esi + 4], ebx
push edx
mov dword [esi + 8], edi
call fcn.00404b20
cmp eax, ebx
mov dword [esi], eax
jne 0x403d44
lea eax, [esp + 0x34]
test eax, eax
je 0x403d44
push 0x8007000e
call fcn.00404ad4
jmp 0x403d44
xor esi, esi
cmp esi, ebx
mov dword [esp + 0x150], ebp
mov dword [esp + 0x20], esi
jne 0x403d5d
push 0x8007000e
call fcn.00404ad4
cmp esi, ebx
mov dword [esp + 0x150], edi
je 0x403d6c
mov ecx, dword [esi]
jmp 0x403d6e
xor ecx, ecx
mov eax, dword [esp + 0x1c]
lea edi, [esp + 0x2c]
push edi
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x28]
mov dword [esp + 0x150], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp esi, ebx
mov edi, eax
je 0x403dc1
lea eax, [esi + 8]
push eax
call ebp
test eax, eax
jne 0x403dc1
mov eax, dword [esi]
cmp eax, ebx
je 0x403da8
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x403db8
push eax
call fcn.00404600
add esp, 4
push esi
call fcn.00404600
add esp, 4
cmp edi, ebx
jl 0x403e8f
push 0xc
call fcn.00404d52
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
cmp esi, ebx
mov dword [esp + 0x150], 2
je 0x403e16
lea edx, [esp + 0x34]
mov dword [esi + 4], ebx
push edx
mov dword [esi + 8], 1
call fcn.00404b20
cmp eax, ebx
mov dword [esi], eax
jne 0x403e18
lea eax, [esp + 0x34]
test eax, eax
je 0x403e18
push 0x8007000e
call fcn.00404ad4
jmp 0x403e18
xor esi, esi
or edi, 0xffffffff
cmp esi, ebx
mov dword [esp + 0x150], edi
mov dword [esp + 0x20], esi
jne 0x403e34
push 0x8007000e
call fcn.00404ad4
cmp esi, ebx
mov dword [esp + 0x150], 3
je 0x403e47
mov ecx, dword [esi]
jmp 0x403e49
xor ecx, ecx
mov eax, dword [esp + 0x1c]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x24]
cmp esi, ebx
mov dword [esp + 0x150], edi
je 0x403e8f
lea eax, [esi + 8]
push eax
call ebp
test eax, eax
jne 0x403e8f
mov eax, dword [esi]
cmp eax, ebx
je 0x403e76
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x403e86
push eax
call fcn.00404600
add esp, 4
push esi
call fcn.00404600
add esp, 4
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [esp + 0x148]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x144
ret