Function at 0x402de0
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x67c
mov eax, dword [0x495808]
xor eax, esp
mov dword [esp + 0x674], eax
push ebx
push ebp
push esi
xor ebp, ebp
cmp dword [0x499ce4], 2
push edi
mov edi, ecx
mov byte [esp + 0x1b], 0
je 0x402e11
mov al, 1
jmp 0x403634
push ebp
call dword [0x4865a4]
mov ebx, dword [0x4862fc]
push str.SetupApi.DLL
call ebx
mov esi, eax
cmp esi, ebp
je 0x402e3e
lea eax, [esp + 0x1b]
push eax
mov ecx, esi
call fcn.00401410
push esi
call dword [0x4862dc]
mov cl, byte [esp + 0x1b]
mov edx, dword [0x499cec]
mov byte [edi + 0xac], cl
mov byte [edi + 0xa8], 0
mov eax, dword [edx + 4]
push str._install
push eax
call fcn.0046cbb1
add esp, 8
test eax, eax
je 0x4032f2
mov ecx, dword [0x499cec]
mov edx, dword [ecx + 4]
push str._install1
push edx
call fcn.0046cbb1
add esp, 8
test eax, eax
je 0x4032f2
mov eax, dword [0x499cec]
mov ecx, dword [eax + 4]
push str._install2
push ecx
call fcn.0046cbb1
add esp, 8
test eax, eax
jne 0x402ec7
mov esi, edi
call fcn.00401640
cmp byte [edi + 0xa8], 0
jne 0x40362c
mov ecx, edi
call fcn.004021b0
jmp 0x40362c
mov edx, dword [0x499cec]
mov eax, dword [edx + 4]
push str._installwizard
push eax
call fcn.0046cbb1
add esp, 8
test eax, eax
jne 0x402eec
call fcn.00402750
jmp 0x40362c
mov esi, edi
call fcn.00401640
push str.nvSCPAPI.dll
call ebx
mov dword [esp + 0x14], eax
cmp eax, ebp
je 0x40362c
mov esi, dword [0x4862f8]
push str.StereoObjFactory1
mov ebp, eax
push ebp
call esi
push str.StereoAllowed
push ebp
mov ebx, eax
call esi
push str.setMode
push ebp
mov dword [esp + 0x18], eax
call esi
mov ebp, eax
test ebx, ebx
je 0x4032e2
call ebx
mov esi, eax
test esi, esi
je 0x4032e2
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
mov ecx, esi
xor bl, bl
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
call edx
test al, al
je 0x402f79
cmp dword [esp + 0x12c], 8
jne 0x402f77
test byte [esp + 0x136], 0x20
jne 0x402f77
mov bl, 1
jmp 0x402f79
xor bl, bl
mov eax, dword [0x499cec]
mov ecx, dword [eax + 4]
push str._update
push ecx
call fcn.0046cbb1
add esp, 8
test eax, eax
jne 0x40304f
cmp byte [edi + 0xa8], al
jne 0x4032d9
lea edx, [esp + 0x10]
push edx
push 0xf023f
xor ebx, ebx
push ebx
push 0x48c028
push 0x80000002
mov dword [esp + 0x24], ebx
call dword [0x48600c]
mov eax, dword [esp + 0x10]
mov ebp, eax
cmp eax, ebx
je 0x403043
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x2c]
push ecx
push 0
mov dword [esp + 0x2c], ebx
push 0x48c300
mov ebx, 4
push eax
mov dword [esp + 0x38], ebx
call dword [0x486028]
test eax, eax
jne 0x403002
cmp dword [esp + 0x1c], eax
jne 0x40303c
push 0
push 1
call fcn.00401760
push ebx
lea edx, [esp + 0x20]
push edx
push ebx
push 0
push 0x48c300
push ebp
mov dword [esp + 0x34], 3
call dword [0x486020]
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
mov ecx, esi
call edx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
push 0
call eax
push ebp
call dword [0x486024]
mov ecx, edi
call fcn.004021b0
jmp 0x4032d9
mov ecx, dword [0x499cec]
mov edx, dword [ecx + 4]
push str._enable
push edx
call fcn.0046cbb1
add esp, 8
test eax, eax
jne 0x4030c0
call dword [esp + 0x10]
test eax, eax
je 0x4032ac
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
mov ecx, esi
call edx
test al, al
je 0x4032d9
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
mov ecx, esi
call edx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov ecx, esi
test al, al
je 0x40329c
mov eax, dword [edx + 8]
call eax
test al, al
jne 0x4032d9
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
jmp 0x4032d9
mov edx, dword [0x499cec]
mov eax, dword [edx + 4]
push str._disable
push eax
call fcn.0046cbb1
add esp, 8
test eax, eax
jne 0x403117
call dword [esp + 0x10]
test eax, eax
je 0x4032ac
mov edx, dword [esi]
mov eax, dword [edx + 0x3c]
mov ecx, esi
call eax
test al, al
je 0x4032d9
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
test al, al
je 0x4032d9
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
jmp 0x4032d9
mov edx, dword [0x499cec]
mov eax, dword [edx + 4]
push str._enable_windowed
push eax
call fcn.0046cbb1
add esp, 8
test eax, eax
jne 0x403157
call dword [esp + 0x10]
test eax, eax
je 0x4032ac
push 1
push 0
call ebp
push 1
push 1
call ebp
add esp, 0x10
call fcn.00402a70
jmp 0x4032d9
mov edx, dword [0x499cec]
mov eax, dword [edx + 4]
push str._disable_windowed
push eax
call fcn.0046cbb1
add esp, 8
test eax, eax
jne 0x40319a
call dword [esp + 0x10]
push 0
test eax, eax
je 0x4032ae
push 1
call ebp
add esp, 8
call fcn.00402a70
push 0
push 0
call ebp
add esp, 8
jmp 0x4032d9
mov edx, dword [0x499cec]
mov eax, dword [edx + 4]
push str._enable_desktop
push eax
call fcn.0046cbb1
add esp, 8
test eax, eax
jne 0x4031e0
call dword [esp + 0x10]
test eax, eax
je 0x4032ac
mov edx, dword [esi]
mov eax, dword [edx + 0x3c]
mov ecx, esi
call eax
test al, al
je 0x4032d9
push 1
push 1
call ebp
add esp, 8
jmp 0x4032d9
mov edx, dword [0x499cec]
mov eax, dword [edx + 4]
push str._disable_desktop
push eax
call fcn.0046cbb1
add esp, 8
test eax, eax
jne 0x403226
call dword [esp + 0x10]
test eax, eax
je 0x4032ac
mov edx, dword [esi]
mov eax, dword [edx + 0x3c]
mov ecx, esi
call eax
test al, al
je 0x4032d9
push 0
push 1
call ebp
add esp, 8
jmp 0x4032d9
mov edx, dword [0x499cec]
mov eax, dword [edx + 4]
push str._popup
push eax
call fcn.0046cbb1
add esp, 8
test eax, eax
je 0x4032d9
mov ecx, dword [0x499cec]
mov edx, dword [ecx + 4]
push str._show
push edx
call fcn.0046cbb1
add esp, 8
test eax, eax
jne 0x4032d9
call dword [esp + 0x10]
test eax, eax
je 0x4032ac
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
mov ecx, esi
call edx
test al, al
je 0x4032d9
test bl, bl
jne 0x4032d9
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ecx, esi
test al, al
je 0x40329a
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
call edx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x20]
call eax
jmp 0x4032d9
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1c]
call eax
jmp 0x4032d9
push 0
push 0
push 1
mov eax, 0x1389
call fcn.00403930
movzx ecx, byte [edi + 0xa9]
add esp, 8
push eax
push ecx
call fcn.004037f0
add esp, 4
push eax
push 0
call dword [0x4864c0]
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x4862dc]
jmp 0x40362c
call fcn.004049a0
test eax, eax
jne 0x403513
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00405760
add esp, 8
test eax, eax
jne 0x403513
cmp dword [esp + 0x24], ebp
je 0x403513
lea ecx, [esp + 0x470]
push ecx
call fcn.00401080
add esp, 4
test al, al
je 0x403513
lea edx, [esp + 0x20]
push edx
push 0x20219
push ebp
lea eax, [esp + 0x47c]
push eax
push 0x80000002
mov dword [esp + 0x34], ebp
call dword [0x48600c]
mov esi, dword [esp + 0x20]
cmp esi, ebp
je 0x4034ce
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x144]
push edx
lea eax, [esp + 0x24]
push eax
push ebp
mov ebp, dword [0x486014]
push str.MatchingDeviceID
push esi
mov dword [esp + 0x2c], 0x100
call ebp
test eax, eax
je 0x4033cc
mov ebx, dword [0x4862a4]
lea esp, [esp]
push 0x14
call ebx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x144]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push str.MatchingDeviceID
push esi
mov dword [esp + 0x2c], 0x100
call ebp
test eax, eax
jne 0x4033a0
mov eax, str.pci_ven_10de
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4033d4
sub eax, edx
push eax
lea ecx, [esp + 0x144]
push str.pci_ven_10de
push ecx
call fcn.0046da54
add esp, 0xc
test eax, eax
jne 0x4034c7
mov ebp, dword [0x486028]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0x48c094
mov ebx, 4
push esi
mov dword [esp + 0x2c], ebx
call ebp
cmp dword [esp + 0x10], 0
lea eax, [esp + 0x14]
push eax
setne dl
lea ecx, [esp + 0x14]
push ecx
mov byte [edi + 0xa8], dl
lea edx, [esp + 0x24]
push edx
push 0
push 0x48c0bc
push esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], ebx
call ebp
cmp dword [esp + 0x10], 0
lea ecx, [esp + 0x14]
push ecx
setne al
lea edx, [esp + 0x14]
push edx
mov byte [edi + 0xaa], al
lea eax, [esp + 0x24]
push eax
push 0
push str.DisableWindowedStereo
push esi
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
jne 0x403494
cmp dword [esp + 0x10], eax
je 0x403494
call fcn.00402bb0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push 0x48c118
push esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], ebx
call ebp
cmp dword [esp + 0x10], 0
setne cl
mov byte [edi + 0xa9], cl
push esi
call dword [0x486024]
mov edx, dword [0x499cec]
mov eax, dword [edx + 4]
push str._install1
push eax
call fcn.0046cbb1
add esp, 8
test eax, eax
je 0x403624
push 0
push edi
call fcn.00402c30
call fcn.004029f0
cmp byte [edi + 0xa8], 0
jne 0x40362c
mov ecx, edi
call fcn.004021b0
jmp 0x40362c
mov ecx, dword [0x499cec]
mov edx, dword [ecx + 4]
push str._install
push edx
call fcn.0046cbb1
add esp, 8
test eax, eax
jne 0x403624
lea eax, [esp + 0x20]
push eax
push 0xf023f
push ebp
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov dword [esp + 0x34], ebp
call dword [0x48600c]
mov esi, dword [esp + 0x20]
cmp esi, ebp
je 0x40362c
push 0x22c
lea ecx, [esp + 0x248]
push ebp
push ecx
mov dword [esp + 0x24c], 0x22
call fcn.0046ea40
add esp, 0xc
push 0x118
lea edx, [esp + 0x246]
push edx
push ebp
call dword [0x4862ac]
lea eax, [esp + 0x240]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x4035a0
mov ecx, dword [str.___install1]
mov edx, dword [0x48c820]
mov dword [eax], ecx
mov ecx, dword [0x48c824]
mov dword [eax + 4], edx
mov edx, dword [0x48c828]
mov dword [eax + 8], ecx
mov ecx, dword [0x48c82c]
mov dword [eax + 0xc], edx
mov edx, dword [0x48c830]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
lea eax, [esp + 0x240]
lea edx, [eax + 2]
jmp 0x4035f0
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4035f0
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0x244]
push ecx
push 1
push ebp
push str.StereoLinksInstall
push esi
call dword [0x486020]
push esi
call dword [0x486024]
jmp 0x40362c
push 1
push edi
call fcn.00402c30
call dword [0x4865a0]
xor al, al
mov ecx, dword [esp + 0x684]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046c67d
add esp, 0x67c
ret