Function at 0x4095d0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1224
call fcn.0041d680
mov eax, dword [0x448070]
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 - 0x1220], ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x1210], edx
push edi
mov edi, ecx
test ebx, ebx
jne 0x40961e
mov dword [edi + 0x2c], ebx
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b486
mov esp, ebp
pop ebp
ret 0x18
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp ebx, 3
jae 0x4096d4
lea eax, [ebp - 0x1214]
mov dword [ebp - 0x1224], 0
push eax
push 0x20019
push 0
push str.SOFTWAREINTELNETWORK_SERVICESNCS2
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x121c], 4
mov dword [ebp - 0x1218], 4
call esi
test eax, eax
jne 0x4096a9
lea eax, [ebp - 0x1218]
push eax
lea eax, [ebp - 0x1224]
push eax
lea eax, [ebp - 0x121c]
push eax
push 0
push str.TRACE
push dword [ebp - 0x1214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409608
mov ebx, dword [ebp - 0x1224]
test ebx, ebx
je 0x409608
jmp 0x4096ce
lea eax, [ebp - 0x1214]
push eax
push 0x20019
push 0
push str.SOFTWAREIntelBasedriversDebug
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x409608
lea ebx, [eax + 1]
mov edx, dword [ebp - 0x1210]
mov ecx, dword [ebp - 0x1220]
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4096e0
sub ecx, esi
sar ecx, 1
je 0x409608
cmp ecx, 0xf5
ja 0x409608
mov esi, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x409706
sub esi, ecx
mov edx, 2
sar esi, 1
xor ecx, ecx
inc esi
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041aa20
push dword [ebp - 0x1210]
mov dword [edi + 4], eax
push esi
push eax
push 0x1a4
push str.....CommonSrcNcsDebug.cpp
call fcn.0040be40
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x34], eax
lea eax, [ebp - 0xa0c]
push 0x431fdc
push eax
push 0x1ae
push str.....CommonSrcNcsDebug.cpp
call fcn.00409190
mov esi, dword [ebp - 0x1210]
push str.DxSetup
push esi
call fcn.0041cd47
add esp, 0x30
test eax, eax
jne 0x4097a5
push dword [ebp - 0x1220]
lea eax, [ebp - 0xa0c]
push eax
push 0x1b4
push str.....CommonSrcNcsDebug.cpp
call fcn.00409110
add esp, 0x10
jmp 0x40989b
lea eax, [ebp - 0x1214]
mov dword [ebp - 0x1218], 1
push eax
push 0x20019
push 0
push str.SOFTWAREINTELNETWORK_SERVICESNCS2
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x121c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40982d
push str.Ncs2Setp
push esi
call fcn.0041cd47
add esp, 8
test eax, eax
je 0x40982d
push 0x800
lea eax, [ebp - 0x120c]
push 0
push eax
call fcn.0041c090
add esp, 0xc
lea eax, [ebp - 0x121c]
push eax
lea eax, [ebp - 0x120c]
push eax
lea eax, [ebp - 0x1218]
push eax
push 0
push str.InstalledDir
push dword [ebp - 0x1214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x409844
push 0x104
lea eax, [ebp - 0x120c]
push eax
push str.Temp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x120c]
push eax
lea eax, [ebp - 0xa0c]
push eax
push 0x1d0
push str.....CommonSrcNcsDebug.cpp
call fcn.00409110
push 0x431fe0
lea eax, [ebp - 0xa0c]
push eax
push 0x1d3
push str.....CommonSrcNcsDebug.cpp
call fcn.00409110
push dword [ebp - 0x1220]
lea eax, [ebp - 0xa0c]
push eax
push 0x1d6
push str.....CommonSrcNcsDebug.cpp
call fcn.00409110
add esp, 0x30
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0xa0c]
test esi, esi
je 0x4098af
push 0x433cf4
jmp 0x4098b4
push 0x433cfc
push eax
call fcn.0041d185
add esp, 8
mov dword [edi + 8], eax
test eax, eax
jne 0x40992d
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.Temp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0xa0c]
push 0x5c
push eax
call fcn.0041cca1
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x1f0
push str.....CommonSrcNcsDebug.cpp
call fcn.00409090
add esp, 0x18
lea eax, [ebp - 0x20c]
test esi, esi
je 0x409914
push 0x433cf4
jmp 0x409919
push 0x433cfc
push eax
call fcn.0041d185
add esp, 8
mov dword [edi + 8], eax
test eax, eax
je 0x409608
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.0041b486
mov esp, ebp
pop ebp
ret 0x18