Function at 0x406a70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x920
mov eax, dword [0x5b9ec0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x91c], ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x90c], edx
push edi
mov edi, ecx
test ebx, ebx
jne 0x406aba
mov dword [edi + 0x2c], ebx
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534944
mov esp, ebp
pop ebp
ret 0x18
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp ebx, 3
jae 0x406b70
lea eax, [ebp - 0x910]
mov dword [ebp - 0x920], 0
push eax
push 0x20019
push 0
push str.SOFTWAREINTELNETWORK_SERVICESNCS2
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x918], 4
mov dword [ebp - 0x914], 4
call esi
test eax, eax
jne 0x406b45
lea eax, [ebp - 0x914]
push eax
lea eax, [ebp - 0x920]
push eax
lea eax, [ebp - 0x918]
push eax
push 0
push str.TRACE
push dword [ebp - 0x910]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406aa4
mov ebx, dword [ebp - 0x920]
test ebx, ebx
je 0x406aa4
jmp 0x406b6a
lea eax, [ebp - 0x910]
push eax
push 0x20019
push 0
push str.SOFTWAREIntelBasedriversDebug
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x406aa4
lea ebx, [eax + 1]
mov edx, dword [ebp - 0x90c]
mov ecx, dword [ebp - 0x91c]
lea esi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406b80
sub ecx, esi
je 0x406aa4
cmp ecx, 0xf5
ja 0x406aa4
mov esi, edx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x406ba0
sub esi, ecx
inc esi
push esi
call fcn.0041a02f
push dword [ebp - 0x90c]
mov dword [edi + 4], eax
push esi
push eax
push 0x1a4
push str.....CommonSrcNcsDebug.cpp
call fcn.00409350
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x34], eax
lea eax, [ebp - 0x508]
push 0x563c84
push eax
push 0x1ae
push str.....CommonSrcNcsDebug.cpp
call fcn.00406660
mov esi, dword [ebp - 0x90c]
push str.DxSetup
push esi
call fcn.005357ee
add esp, 0x30
test eax, eax
jne 0x406c27
push dword [ebp - 0x91c]
lea eax, [ebp - 0x508]
push eax
push 0x1b4
push str.....CommonSrcNcsDebug.cpp
call fcn.004065e0
add esp, 0x10
jmp 0x406d1d
lea eax, [ebp - 0x910]
mov dword [ebp - 0x914], 1
push eax
push 0x20019
push 0
push str.SOFTWAREINTELNETWORK_SERVICESNCS2
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x918], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406caf
push str.Ncs2Setp
push esi
call fcn.005357ee
add esp, 8
test eax, eax
je 0x406caf
push 0x400
lea eax, [ebp - 0x908]
push 0
push eax
call fcn.00535400
add esp, 0xc
lea eax, [ebp - 0x918]
push eax
lea eax, [ebp - 0x908]
push eax
lea eax, [ebp - 0x914]
push eax
push 0
push str.InstalledDir
push dword [ebp - 0x910]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x406cc6
push 0x104
lea eax, [ebp - 0x908]
push eax
push str.Temp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0x908]
push eax
lea eax, [ebp - 0x508]
push eax
push 0x1d0
push str.....CommonSrcNcsDebug.cpp
call fcn.004065e0
push 0x564134
lea eax, [ebp - 0x508]
push eax
push 0x1d3
push str.....CommonSrcNcsDebug.cpp
call fcn.004065e0
push dword [ebp - 0x91c]
lea eax, [ebp - 0x508]
push eax
push 0x1d6
push str.....CommonSrcNcsDebug.cpp
call fcn.004065e0
add esp, 0x30
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0x508]
test esi, esi
je 0x406d31
push 0x564444
jmp 0x406d36
push 0x564448
push eax
call fcn.00535e11
add esp, 8
mov dword [edi + 8], eax
test eax, eax
jne 0x406daf
push 0x104
lea eax, [ebp - 0x108]
push eax
push str.Temp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0x508]
push 0x5c
push eax
call fcn.005359b0
push eax
lea eax, [ebp - 0x108]
push eax
push 0x1f0
push str.....CommonSrcNcsDebug.cpp
call fcn.00406560
add esp, 0x18
lea eax, [ebp - 0x108]
test esi, esi
je 0x406d96
push 0x564444
jmp 0x406d9b
push 0x564448
push eax
call fcn.00535e11
add esp, 8
mov dword [edi + 8], eax
test eax, eax
je 0x406aa4
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [edi + 0x2c], ebx
xor ecx, ebp
mov byte [edi + 0x28], 1
pop edi
pop esi
pop ebx
call fcn.00534944
mov esp, ebp
pop ebp
ret 0x18