Function at 0x4055e0
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x43c
mov eax, dword [0x42a0d0]
xor eax, esp
mov dword [esp + 0x438], eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
mov eax, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push str.SOFTWARENVIDIA_CorporationGlobalStereo3DPersistent
push 0x80000002
call esi
test eax, eax
jne 0x40566d
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push str.StereoVisionConfirmed
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40566d
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 8]
push eax
push 0x2001f
push 0
push str.SOFTWARENVIDIA_CorporationGlobalStereo3D
push 0x80000002
call esi
push 0x105
lea ecx, [esp + 0x20]
push ecx
push str.nvstreg.exe
call fcn.00402b50
add esp, 0xc
test al, al
je 0x405702
push 0x105
lea edx, [esp + 0x33c]
push edx
push str._ProgramFiles_NVIDIA_Corporation3D_Vision
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x405702
lea eax, [esp + 0x338]
push eax
lea ecx, [esp + 0x20]
push str._s_nvstreg.exe
push ecx
call fcn.0040d54d
lea edx, [esp + 0x344]
push edx
mov eax, edx
push eax
lea ecx, [esp + 0x138]
push str.__s_nvstdef.reg____soglstreg.reg_
push ecx
call fcn.0040d54d
add esp, 0x1c
push 1
push 1
push 0x402
call fcn.00401990
add esp, 8
push eax
lea edx, [esp + 0x12c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00401f80
add esp, 0x10
push str.Kernel32.DLL
call fcn.00401640
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
add esp, 4
mov dword [0x434044], eax
test eax, eax
je 0x405965
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64DisableWow64FsRedirection
push eax
call esi
mov ecx, dword [0x434044]
push str.Wow64RevertWow64FsRedirection
push ecx
mov dword [0x434048], eax
call esi
mov dword [0x43404c], eax
mov eax, dword [0x434048]
test eax, eax
je 0x40594f
lea edx, [esp + 0xc]
push edx
call eax
test eax, eax
je 0x40594f
push 0x105
lea eax, [esp + 0x20]
push eax
push str.Nv3DVisionIePlugin64.dll
call fcn.00402b50
add esp, 0xc
test al, al
je 0x405804
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x128]
push str._i__s___s_
push edx
call fcn.0040d54d
add esp, 0xc
push 0x105
lea eax, [esp + 0x20]
push eax
call edi
lea eax, [esp + 0x1c]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4057b0
mov ecx, dword [str._regsvr32.exe]
mov edx, dword [0x424c90]
mov dword [eax], ecx
mov ecx, dword [0x424c94]
mov dword [eax + 4], edx
mov dx, word [0x424c98]
push 1
push 1
mov dword [eax + 8], ecx
push 0x402
mov word [eax + 0xc], dx
call fcn.00401990
add esp, 8
push eax
lea eax, [esp + 0x12c]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00401f80
add esp, 0x10
push 0x105
lea edx, [esp + 0x20]
push edx
push str.Nv3DVStreamingIePlugin64.dll
call fcn.00402b50
add esp, 0xc
test al, al
je 0x4058a4
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x128]
push str._i__s___s_
push ecx
call fcn.0040d54d
add esp, 0xc
push 0x105
lea edx, [esp + 0x20]
push edx
call edi
lea eax, [esp + 0x1c]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405850
mov ecx, dword [str._regsvr32.exe]
mov edx, dword [0x424c90]
mov dword [eax], ecx
mov ecx, dword [0x424c94]
mov dword [eax + 4], edx
mov dx, word [0x424c98]
push 1
push 1
mov dword [eax + 8], ecx
push 0x402
mov word [eax + 0xc], dx
call fcn.00401990
add esp, 8
push eax
lea eax, [esp + 0x12c]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00401f80
add esp, 0x10
push 0x105
lea edx, [esp + 0x20]
push edx
push str.Nv3DVStreaming64.dll
call fcn.00402b50
add esp, 0xc
test al, al
je 0x405944
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x128]
push str._i__s___s_
push ecx
call fcn.0040d54d
add esp, 0xc
push 0x105
lea edx, [esp + 0x20]
push edx
call edi
lea eax, [esp + 0x1c]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4058f0
mov ecx, dword [str._regsvr32.exe]
mov edx, dword [0x424c90]
mov dword [eax], ecx
mov ecx, dword [0x424c94]
mov dword [eax + 4], edx
mov dx, word [0x424c98]
push 1
push 1
mov dword [eax + 8], ecx
push 0x402
mov word [eax + 0xc], dx
call fcn.00401990
add esp, 8
push eax
lea eax, [esp + 0x12c]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00401f80
add esp, 0x10
mov edx, dword [esp + 0xc]
push edx
call dword [0x43404c]
mov eax, dword [0x434044]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x434044], 0
push 0x105
lea ecx, [esp + 0x20]
push ecx
push str.Nv3DVisionIePlugin.dll
call fcn.00402b50
add esp, 0xc
test al, al
je 0x405a04
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x128]
push str._i__s___s_
push eax
call fcn.0040d54d
add esp, 0xc
push 0x105
lea ecx, [esp + 0x20]
push ecx
call edi
lea eax, [esp + 0x1c]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4059b0
mov edx, dword [str._regsvr32.exe]
mov ecx, dword [0x424c90]
mov dword [eax], edx
mov edx, dword [0x424c94]
mov dword [eax + 4], ecx
mov cx, word [0x424c98]
push 1
push 1
mov dword [eax + 8], edx
push 0x402
mov word [eax + 0xc], cx
call fcn.00401990
add esp, 8
push eax
lea edx, [esp + 0x12c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00401f80
add esp, 0x10
push 0x105
lea ecx, [esp + 0x20]
push ecx
push str.Nv3DVStreamingIePlugin.dll
call fcn.00402b50
add esp, 0xc
test al, al
je 0x405aa4
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x128]
push str._i__s___s_
push eax
call fcn.0040d54d
add esp, 0xc
push 0x105
lea ecx, [esp + 0x20]
push ecx
call edi
lea eax, [esp + 0x1c]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405a50
mov edx, dword [str._regsvr32.exe]
mov ecx, dword [0x424c90]
mov dword [eax], edx
mov edx, dword [0x424c94]
mov dword [eax + 4], ecx
mov cx, word [0x424c98]
push 1
push 1
mov dword [eax + 8], edx
push 0x402
mov word [eax + 0xc], cx
call fcn.00401990
add esp, 8
push eax
lea edx, [esp + 0x12c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00401f80
add esp, 0x10
push 0x105
lea ecx, [esp + 0x20]
push ecx
push str.Nv3DVStreaming.dll
call fcn.00402b50
add esp, 0xc
test al, al
je 0x405b44
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x128]
push str._i__s___s_
push eax
call fcn.0040d54d
add esp, 0xc
push 0x105
lea ecx, [esp + 0x20]
push ecx
call edi
lea eax, [esp + 0x1c]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405af0
mov edx, dword [str._regsvr32.exe]
mov ecx, dword [0x424c90]
mov dword [eax], edx
mov edx, dword [0x424c94]
mov dword [eax + 4], ecx
mov cx, word [0x424c98]
push 1
push 1
mov dword [eax + 8], edx
push 0x402
mov word [eax + 0xc], cx
call fcn.00401990
add esp, 8
push eax
lea edx, [esp + 0x12c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00401f80
add esp, 0x10
push 0x105
lea ecx, [esp + 0x20]
push ecx
push str.nvTimings.ini
call fcn.00402b50
add esp, 0xc
pop edi
pop esi
test al, al
je 0x405b66
call fcn.00401530
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.0040d609
add esp, 0x43c
ret