Function at 0x403940
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 8], edi
call fcn.00404030
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], edi
jle 0x4039a8
push 0x3b
push eax
call fcn.00412d44
add esp, 8
cmp eax, edi
je 0x4039a8
sub eax, dword [ebp - 4]
js 0x4039a8
lea ecx, [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00404160
lea ebx, [ebp - 4]
call fcn.004040f0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4039a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, 4
cmp esi, edi
je 0x403c69
mov ecx, dword [ebp - 4]
push str.APORenderGFX
push ecx
call fcn.00412bab
add esp, 8
test eax, eax
je 0x403c69
mov edx, dword [ebp - 4]
push str.APORenderA
push edx
call fcn.00412bab
add esp, 8
test eax, eax
je 0x403c69
mov eax, dword [ebp - 4]
push str.APOCaptureLFX
push eax
call fcn.00412bab
add esp, 8
test eax, eax
jne 0x403a1e
push 0x638
call fcn.00411f99
add esp, 4
cmp eax, edi
je 0x403c83
push 1
push eax
call fcn.00404c20
jmp 0x403c85
mov ecx, dword [ebp - 4]
push str.APOVSDRenderGFX
push ecx
call fcn.00412bab
add esp, 8
test eax, eax
jne 0x403a55
push 0x638
call fcn.00411f99
add esp, 4
cmp eax, edi
je 0x403c83
push 2
push eax
call fcn.00404c20
jmp 0x403c85
mov edx, dword [ebp - 4]
push str.APOVSDCaptureLFX
push edx
call fcn.00412bab
add esp, 8
test eax, eax
jne 0x403a8c
push 0x638
call fcn.00411f99
add esp, 4
cmp eax, edi
je 0x403c83
push 3
push eax
call fcn.00404c20
jmp 0x403c85
mov eax, dword [ebp - 4]
push str.APOMVCaptureLFX
push eax
call fcn.00412bab
add esp, 8
test eax, eax
jne 0x403ac2
push 0x638
call fcn.00411f99
add esp, 4
cmp eax, edi
je 0x403c83
push ebx
push eax
call fcn.00404c20
jmp 0x403c85
mov ecx, dword [ebp - 4]
push str.APOMSCaptureLFX
push ecx
call fcn.00412bab
add esp, 8
test eax, eax
jne 0x403af9
push 0x638
call fcn.00411f99
add esp, 4
cmp eax, edi
je 0x403c83
push 5
push eax
call fcn.00404c20
jmp 0x403c85
mov edx, dword [ebp - 4]
push str.APORenderB
push edx
call fcn.00412bab
add esp, 8
test eax, eax
jne 0x403b30
push 0x638
call fcn.00411f99
add esp, 4
cmp eax, edi
je 0x403c83
push 6
push eax
call fcn.00404c20
jmp 0x403c85
mov eax, dword [ebp - 4]
push str.APORenderDockA
push eax
call fcn.00412bab
add esp, 8
test eax, eax
jne 0x403b67
push 0x638
call fcn.00411f99
add esp, 4
cmp eax, edi
je 0x403c83
push 8
push eax
call fcn.00404c20
jmp 0x403c85
mov ecx, dword [ebp - 4]
push str.APORenderDockB
push ecx
call fcn.00412bab
add esp, 8
test eax, eax
jne 0x403b9e
push 0x638
call fcn.00411f99
add esp, 4
cmp eax, edi
je 0x403c83
push 9
push eax
call fcn.00404c20
jmp 0x403c85
mov edx, dword [ebp - 4]
push str.APOCustom
push edx
call fcn.00412bab
add esp, 8
test eax, eax
jne 0x403bd5
push 0x638
call fcn.00411f99
add esp, 4
cmp eax, edi
je 0x403c83
push 0xa
push eax
call fcn.00404c20
jmp 0x403c85
mov eax, dword [ebp - 4]
push str.ExternalModule
push eax
call fcn.00412bab
add esp, 8
test eax, eax
jne 0x403c09
push 0x638
call fcn.00411f99
add esp, 4
cmp eax, edi
je 0x403c83
push 0xb
push eax
call fcn.00404c20
jmp 0x403c85
mov ecx, dword [ebp - 4]
push str.APOMVCapturePSS
push ecx
call fcn.00412bab
add esp, 8
test eax, eax
jne 0x403c39
push 0x638
call fcn.00411f99
add esp, 4
cmp eax, edi
je 0x403c83
push 7
push eax
call fcn.00404c20
jmp 0x403c85
mov edx, dword [ebp - 4]
push str.APOMVCaptureDock
push edx
call fcn.00412bab
add esp, 8
test eax, eax
jne 0x403c88
push 0x638
call fcn.00411f99
add esp, 4
cmp eax, edi
je 0x403c83
push 0xc
push eax
call fcn.00404c20
jmp 0x403c85
push 0x638
call fcn.00411f99
add esp, 4
cmp eax, edi
je 0x403c83
push edi
push eax
call fcn.00404c20
jmp 0x403c85
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 1
push edi
push str.SOFTWAREWaves_AudioMaxxAudioGeneral
push 0x80000002
xor esi, esi
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x403cde
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x18]
push ecx
push edi
push str.Debug
push eax
mov esi, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
jne 0x403cde
cmp dword [ebp - 0x18], ebx
jne 0x403cde
mov edx, dword [ebp - 0x10]
mov dword [0x449360], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
push edi
push edi
push eax
push ecx
push str.WavesFX_Initialize__wfx0x_x____s____u____s__
push edi
push 0x82
mov edi, str.C:p4clientConsumerdev_dadiConsumerPlatformVistaSharedWavesMaxxAudioGeneric.cpp
call fcn.00403850
mov edi, dword [ebp - 8]
add esp, 0x1c
test edi, edi
je 0x403d18
mov edx, dword [edi]
mov eax, dword [ebp + 8]
mov edx, dword [edx + 4]
push 0
push 0
push eax
mov ecx, edi
call edx
test esi, esi
je 0x403d23
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403d42
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret