Function at 0x404c20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423e1b
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x448090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 4], vtable.CGenericWindow.0
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
lea eax, [esi + 0x20]
mov byte [ebp - 4], 1
push eax
mov dword [esi], vtable.CMyAPO.0
mov dword [esi + 4], vtable.CMyAPO.1.0
call fcn.0040fb70
lea ecx, [esi + 0x42c]
push ecx
mov byte [ebp - 4], 2
call fcn.00425000
mov eax, vtable.CMaxxAudioRegistryPreset.0
mov dword [esi + 0x45c], eax
mov dword [esi + 0x460], ebx
mov dword [esi + 0x464], ebx
mov dword [esi + 0x468], eax
mov dword [esi + 0x46c], ebx
mov dword [esi + 0x470], ebx
mov byte [ebp - 4], 5
mov edx, dword [0x44924c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44924c
call eax
add eax, 0x10
mov dword [esi + 0x474], eax
mov byte [ebp - 4], 6
mov edx, dword [0x44924c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44924c
call eax
add eax, 0x10
mov dword [esi + 0x478], eax
mov byte [ebp - 4], 7
mov edx, dword [0x44924c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44924c
call eax
add eax, 0x10
mov dword [esi + 0x47c], eax
mov byte [ebp - 4], 8
mov edx, dword [0x44924c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44924c
call eax
add eax, 0x10
mov dword [esi + 0x480], eax
mov byte [ebp - 4], 9
mov edx, dword [0x44924c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44924c
call eax
add eax, 0x10
mov dword [esi + 0x494], eax
mov byte [ebp - 4], 0xa
mov edx, dword [0x44924c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44924c
call eax
add eax, 0x10
mov dword [esi + 0x498], eax
mov byte [ebp - 4], 0xb
mov ecx, 0x44924c
mov edx, dword [0x44924c]
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x49c], eax
mov byte [ebp - 4], 0xc
mov edx, dword [0x44924c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44924c
call eax
add eax, 0x10
mov dword [esi + 0x4a0], eax
mov byte [ebp - 4], 0xd
mov edx, dword [0x44924c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44924c
call eax
add eax, 0x10
mov dword [esi + 0x4a4], eax
mov byte [ebp - 4], 0xe
mov edx, dword [0x44924c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44924c
call eax
add eax, 0x10
mov dword [esi + 0x4a8], eax
mov byte [ebp - 4], 0xf
mov edx, dword [0x44924c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44924c
call eax
add eax, 0x10
mov dword [esi + 0x4ac], eax
mov edi, dword [sym.imp.USER32.dll_RegisterClipboardFormatA]
mov dword [esi + 0x4bc], 0x43e934
mov dword [esi + 0x4d0], ebx
mov eax, 0xf
mov dword [esi + 0x4d4], eax
mov byte [esi + 0x4c0], bl
mov dword [esi + 0x4e8], ebx
mov dword [esi + 0x4ec], ebx
mov dword [esi + 0x4f0], ebx
mov dword [esi + 0x4f8], ebx
mov dword [esi + 0x4fc], ebx
mov dword [esi + 0x500], ebx
mov dword [esi + 0x51c], eax
mov dword [esi + 0x518], ebx
mov byte [esi + 0x508], bl
mov dword [esi + 0x524], ebx
mov dword [esi + 0x528], ebx
mov dword [esi + 0x52c], ebx
mov dword [esi + 0x548], eax
mov dword [esi + 0x544], ebx
push str.MaxxAudioPresets
mov byte [esi + 0x534], bl
call edi
push str.MaxxAudioPresetParameters
mov dword [0x44a414], eax
call edi
push str.MaxxAudioOutputModes
mov dword [0x44a410], eax
call edi
mov dword [0x44a418], eax
mov dword [esi + 0x4dc], ebx
mov dword [esi + 0x4e0], ebx
mov word [esi + 0x4e4], bx
lea ecx, [esi + 0x57c]
mov edi, 0x11
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], edi
mov dword [ecx + 0x18], 0xffffffff
mov dword [ecx + 0x1c], ebx
mov dword [ecx + 0x20], ebx
mov dword [ecx + 0x24], 0xa
fld dword [0x4443b0]
mov dword [ecx + 0x28], ebx
fstp dword [ecx + 0xc]
mov dword [ecx + 0x2c], ebx
fld dword [0x4443ac]
fstp dword [ecx + 0x10]
fld dword [0x4443a8]
fstp dword [ecx + 0x14]
call fcn.0040b400
fld dword [0x4443b0]
lea ecx, [esi + 0x5ac]
fstp dword [ecx + 0xc]
mov dword [ecx], ebx
fld dword [0x4443ac]
mov dword [ecx + 4], ebx
fstp dword [ecx + 0x10]
mov dword [ecx + 8], edi
fld dword [0x4443a8]
mov dword [ecx + 0x18], 0xffffffff
fstp dword [ecx + 0x14]
mov dword [ecx + 0x1c], ebx
mov dword [ecx + 0x20], ebx
mov dword [ecx + 0x24], 0xa
mov dword [ecx + 0x28], ebx
mov dword [ecx + 0x2c], ebx
call fcn.0040b400
fld dword [0x4443b0]
lea ecx, [esi + 0x5dc]
fstp dword [ecx + 0xc]
mov dword [ecx], ebx
fld dword [0x4443ac]
mov dword [ecx + 4], ebx
fstp dword [ecx + 0x10]
mov dword [ecx + 8], edi
fld dword [0x4443a8]
mov dword [ecx + 0x18], 0xffffffff
fstp dword [ecx + 0x14]
mov dword [ecx + 0x1c], ebx
mov dword [ecx + 0x20], ebx
mov dword [ecx + 0x24], 0xa
mov dword [ecx + 0x28], ebx
mov dword [ecx + 0x2c], ebx
call fcn.0040b400
mov dword [esi + 0x60c], ebx
mov dword [esi + 0x610], ebx
mov dword [esi + 0x614], ebx
mov dword [esi + 0x618], ebx
mov byte [ebp - 4], 0x15
lea edi, [esi + 0x620]
push 8
mov dword [edi], ebx
call fcn.00411f99
add esp, 4
cmp eax, ebx
je 0x405332
mov dword [edi], eax
mov dword [eax + 4], ebx
xor ecx, ecx
mov dword [eax], ecx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov byte [ebp - 4], 0x16
fldz
mov eax, dword [ebp + 0xc]
fstp qword [esi + 0x4b0]
mov dword [esi + 0x484], eax
mov dword [esi + 0x488], ebx
mov dword [esi + 0x558], ebx
mov dword [esi + 0x55c], ebx
mov dword [esi + 0x560], ebx
mov dword [esi + 0x564], ebx
mov dword [esi + 0x4b8], ebx
mov dword [esi + 0x568], ebx
mov dword [esi + 0x56c], ebx
mov dword [esi + 0x570], ebx
mov dword [esi + 0x574], ebx
mov byte [esi + 0x61c], 1
mov dword [esi + 0x578], ebx
mov dword [esi + 0x550], ebx
mov dword [esi + 0x554], ebx
mov dword [esi + 0x48c], ebx
mov dword [esi + 0x490], 1
cmp eax, 0xc
ja case.0x40505f.10
jmp dword [eax*4 + 0x405358]
mov edx, str.SOFTWAREWaves_AudioMaxxAudioGeneral
lea ebx, [esi + 0x494]
call fcn.00404260
mov edx, str.SOFTWAREWaves_AudioMaxxAudioPresetsDefault
lea ebx, [esi + 0x4a0]
call fcn.00404260
xor eax, eax
jmp 0x4051c4
mov edx, str.SOFTWAREWaves_AudioMaxxAudio_DockAGeneral
lea ebx, [esi + 0x494]
call fcn.00404260
mov edx, str.SOFTWAREWaves_AudioMaxxAudio_DockAPresetsDefault
lea ebx, [esi + 0x4a0]
call fcn.00404260
xor eax, eax
jmp 0x4051c4
mov edx, str.SOFTWAREWaves_AudioMaxxAudio_DockBGeneral
lea ebx, [esi + 0x494]
call fcn.00404260
mov edx, str.SOFTWAREWaves_AudioMaxxAudio_DockBPresetsDefault
lea ebx, [esi + 0x4a0]
call fcn.00404260
xor eax, eax
jmp 0x4051c4
mov edx, str.SOFTWAREWaves_AudioMaxxAudio_BGeneral
lea ebx, [esi + 0x494]
call fcn.00404260
mov edx, str.SOFTWAREWaves_AudioMaxxAudio_BPresetsDefault
lea ebx, [esi + 0x4a0]
call fcn.00404260
xor eax, eax
jmp 0x4051c4
mov edx, str.SOFTWAREWaves_AudioMaxxAudioCapture
jmp 0x40506b
mov edx, str.SOFTWAREWaves_AudioMaxxVolumeSDGeneral
lea ebx, [esi + 0x494]
call fcn.00404260
mov edx, str.SOFTWAREWaves_AudioMaxxVolumeSDPresetsDefault
lea ebx, [esi + 0x4a0]
call fcn.00404260
xor eax, eax
jmp 0x4051c4
mov edx, str.SOFTWAREWaves_AudioMaxxVolumeSDCapture
lea ebx, [esi + 0x494]
call fcn.00404260
mov edx, str.SOFTWAREWaves_AudioMaxxVolumeSDPresetsDefault
jmp 0x4051b4
mov edx, str.SOFTWAREWaves_AudioMaxxVoiceGeneral
lea ebx, [esi + 0x494]
call fcn.00404260
mov edx, str.SOFTWAREWaves_AudioMaxxVoicePresetsDefault
jmp 0x4051b4
mov edx, str.SOFTWAREWaves_AudioMaxxVoice_DockGeneral
lea ebx, [esi + 0x494]
call fcn.00404260
mov edx, str.SOFTWAREWaves_AudioMaxxVoice_DockPresetsDefault
jmp 0x4051b4
mov edx, str.SOFTWAREWaves_AudioMaxxSpeechGeneral
lea ebx, [esi + 0x494]
call fcn.00404260
mov edx, str.SOFTWAREWaves_AudioMaxxSpeechPresetsDefault
lea ebx, [esi + 0x4a0]
call fcn.00404260
mov eax, 2
jmp 0x4051c4
mov edx, str.SOFTWAREWaves_AudioMaxxVoice_PSSGeneral
lea ebx, [esi + 0x494]
call fcn.00404260
mov edx, str.SOFTWAREWaves_AudioMaxxVoice_PSSPresetsDefault
lea ebx, [esi + 0x4a0]
call fcn.00404260
mov eax, 1
mov dword [esi + 0x430], eax
xor ebx, ebx
mov ecx, dword [esi + 0x494]
mov dword [ebp - 0x10], ecx
cmp dword [ecx - 0xc], ebx
je 0x40523f
mov eax, dword [esi + 0x488]
mov edx, eax
and edx, 2
mov dword [ebp + 0xc], ebx
cmp dl, 2
jne 0x4051f6
mov dword [ebp + 0xc], 0x200
jmp 0x405204
and eax, 4
cmp al, 4
jne 0x405204
mov dword [ebp + 0xc], 0x100
mov eax, dword [esi + 0x46c]
lea edi, [esi + 0x46c]
cmp eax, ebx
je 0x405226
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
mov dword [edi], ebx
mov dword [esi + 0x470], ebx
mov eax, dword [ebp + 0xc]
push edi
or eax, 0x20017
push eax
push ebx
push ecx
push 0x80000002
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esi + 0x4a0]
lea eax, [esi + 0x4a0]
cmp dword [ecx - 0xc], ebx
je 0x4052cc
push 0x43e394
push eax
lea edx, [ebp - 0x10]
push edx
call fcn.004092b0
push 0x43e384
push eax
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 0x17
call fcn.004092b0
add esp, 0x18
lea ebx, [esi + 0x49c]
mov byte [ebp - 4], 0x18
call fcn.004040f0
mov byte [ebp - 4], 0x17
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4052a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x16
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 0x4052ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp + 8]
push ecx
lea eax, [esi + 0x550]
push eax
mov eax, dword [esi + 0x460]
lea edx, [ebp + 0xc]
push edx
push ebx
push str.ActiveOutputMode
push eax
mov dword [ebp + 8], 4
call edi
lea ecx, [ebp + 8]
push ecx
lea eax, [esi + 0x554]
push eax
mov eax, dword [esi + 0x460]
lea edx, [ebp + 0xc]
push edx
push ebx
push str.ActiveSoundMode
push eax
mov dword [ebp + 8], 4
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
call fcn.00411860
push 0x4451f8
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.00413e69
mov edi, edi
push ax
inc eax
add byte [edx], al
push ecx
inc eax
add byte [ecx + edx*2], cl
inc eax
add byte [ebx], dh
push ecx
inc eax
add byte [edx + 0x51], cl
inc eax
add byte [eax + 0x51], bh
inc eax
add bl, bl
push eax
inc eax
add byte [edi - 0x72ffbfaf], bl
push eax
inc eax
add byte [eax + edx*2 + 0x51cc0040], dh
inc eax
add byte [esi + 0x50], ah
inc eax
add byte [ecx + 0x51], ah
inc eax
add ah, cl
int3