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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1224
call fcn.00414bd0
mov eax, dword [0x439010]
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 0x4089de
mov dword [edi + 0x2c], ebx
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413026
mov esp, ebp
pop ebp
ret 0x18
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp ebx, 3
jae 0x408a94
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 0x408a69
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 0x4089c8
mov ebx, dword [ebp - 0x1224]
test ebx, ebx
je 0x4089c8
jmp 0x408a8e
lea eax, [ebp - 0x1214]
push eax
push 0x20019
push 0
push str.SOFTWAREIntelBasedriversDebug
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x4089c8
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 0x408aa0
sub ecx, esi
sar ecx, 1
je 0x4089c8
cmp ecx, 0xf5
ja 0x4089c8
mov esi, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x408ac6
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.004125c0
push dword [ebp - 0x1210]
mov dword [edi + 4], eax
push esi
push eax
push 0x1a4
push str...CommonSrcNcsDebug.cpp
call fcn.0040b470
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x34], eax
lea eax, [ebp - 0xa0c]
push 0x426f5c
push eax
push 0x1ae
push str...CommonSrcNcsDebug.cpp
call fcn.00408550
mov esi, dword [ebp - 0x1210]
push str.DxSetup
push esi
call fcn.00414206
add esp, 0x30
test eax, eax
jne 0x408b65
push dword [ebp - 0x1220]
lea eax, [ebp - 0xa0c]
push eax
push 0x1b4
push str...CommonSrcNcsDebug.cpp
call fcn.004084d0
add esp, 0x10
jmp 0x408c5b
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 0x408bed
push str.Ncs2Setp
push esi
call fcn.00414206
add esp, 8
test eax, eax
je 0x408bed
push 0x800
lea eax, [ebp - 0x120c]
push 0
push eax
call fcn.00413c30
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 0x408c04
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.004084d0
push 0x426f60
lea eax, [ebp - 0xa0c]
push eax
push 0x1d3
push str...CommonSrcNcsDebug.cpp
call fcn.004084d0
push dword [ebp - 0x1220]
lea eax, [ebp - 0xa0c]
push eax
push 0x1d6
push str...CommonSrcNcsDebug.cpp
call fcn.004084d0
add esp, 0x30
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0xa0c]
test esi, esi
je 0x408c6f
push 0x428b80
jmp 0x408c74
push 0x428b88
push eax
call fcn.004146d7
add esp, 8
mov dword [edi + 8], eax
test eax, eax
jne 0x408ced
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.004140d8
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x1f0
push str...CommonSrcNcsDebug.cpp
call fcn.00408450
add esp, 0x18
lea eax, [ebp - 0x20c]
test esi, esi
je 0x408cd4
push 0x428b80
jmp 0x408cd9
push 0x428b88
push eax
call fcn.004146d7
add esp, 8
mov dword [edi + 8], eax
test eax, eax
je 0x4089c8
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.00413026
mov esp, ebp
pop ebp
ret 0x18