Function at 0x457f70
Capabilities:
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54a223
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x5ab720]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x5ab720]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
cmp dword [ebx + 0x18], esi
mov dword [esp + 0x24], ebx
je 0x458483
mov dword [esp + 0x38], esi
push str.SOFTWAREDTSPremiumSuitPresets
lea ecx, [esp + 0x20]
mov dword [esp + 0xb4], esi
call fcn.00404670
push 1
push 0x56497c
lea ecx, [esp + 0x24]
mov byte [esp + 0xb8], 1
call fcn.00404550
mov eax, dword [ebx + 0x28]
mov edx, dword [eax*4 + 0x5addd8]
cmp edx, esi
jne 0x458004
xor eax, eax
jmp 0x45801f
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x458010
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.00404550
mov eax, str.Music
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x458032
sub eax, edx
sar eax, 1
push eax
push str.Music
lea ecx, [esp + 0x24]
call fcn.00404550
push 7
push str.Default
lea ecx, [esp + 0x24]
call fcn.00404550
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push 0x20019
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x4582ae
cmp dword [ebp + 8], esi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x38], edi
je 0x45827f
mov ecx, dword [ebx + 0x18]
test dword [ecx + 0x104], 0x8000
jne 0x45827f
mov dword [esp + 0x5c], 0x5624c8
mov dword [esp + 0x60], 0x5624dc
mov dword [esp + 0x64], 0x5623ec
mov dword [esp + 0x68], 0x562400
mov dword [esp + 0x6c], 0x562414
mov dword [esp + 0x70], 0x562428
mov dword [esp + 0x74], 0x56243c
mov dword [esp + 0x78], 0x562450
mov dword [esp + 0x7c], 0x562478
mov dword [esp + 0x80], 0x56248c
mov dword [esp + 0x84], 0x5624a0
mov dword [esp + 0x88], 0x5624b4
mov dword [esp + 0x14], esi
jmp 0x458120
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], esi
mov esi, dword [esp + edx*4 + 0x5c]
mov eax, dword [esi]
mov dword [esp + 0x8c], eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x90], ecx
mov ecx, dword [ebx + 0x28]
mov edx, dword [esi + 8]
imul ecx, ecx, 0x3e8
mov dword [esp + 0x94], edx
mov eax, dword [esi + 0xc]
mov dword [esp + 0x98], eax
mov eax, dword [esi + 0x10]
add eax, ecx
mov dword [esp + 0x9c], eax
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x40], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x18], ebx
je 0x4581ea
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x44]
call fcn.00428620
add esp, 4
test eax, eax
jl 0x4581ea
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x44]
push ecx
push ebx
push edx
push edi
mov dword [esp + 0x44], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4581db
cmp dword [esp + 0x3c], 4
jne 0x4581db
lea ebx, [eax + 1]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jne 0x458213
lea ebx, [esp + 0x34]
call fcn.00422d00
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x458213
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
mov edi, 1
lea ecx, [esp + 0x90]
call fcn.004b51d0
test eax, eax
jne 0x458261
lea esi, [esp + 0x8c]
lea ebx, [esp + 0x30]
call fcn.00422d00
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x458261
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
add eax, 1
xor esi, esi
cmp eax, 0xc
mov dword [esp + 0x14], eax
jb 0x458120
cmp dword [ebp + 0xc], esi
je 0x45843f
mov ecx, dword [ebx + 0x18]
test byte [ecx + 0x106], 1
jne 0x45843f
mov dword [esp + 0x54], 0x562388
mov dword [esp + 0x58], 0x56239c
mov dword [esp + 0x18], esi
jmp 0x4582e4
mov byte [esp + 0xb0], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x458483
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x458483
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x28], esi
mov esi, dword [esp + edx*4 + 0x54]
mov eax, dword [esi]
mov dword [esp + 0x8c], eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x90], ecx
mov ecx, dword [ebx + 0x28]
mov edx, dword [esi + 8]
imul ecx, ecx, 0x3e8
mov dword [esp + 0x94], edx
mov eax, dword [esi + 0xc]
mov dword [esp + 0x98], eax
mov eax, dword [esi + 0x10]
add eax, ecx
mov dword [esp + 0x9c], eax
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x40], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x14], ebx
je 0x4583ae
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x44]
call fcn.00428620
add esp, 4
test eax, eax
jl 0x4583ae
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebx
push edx
push edi
mov dword [esp + 0x48], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45839f
cmp dword [esp + 0x34], 4
jne 0x45839f
lea ebx, [eax + 1]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jne 0x4583d7
lea ebx, [esp + 0x3c]
call fcn.00422d00
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4583d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
mov edi, 1
lea ecx, [esp + 0x90]
call fcn.004b51d0
test eax, eax
jne 0x458425
lea esi, [esp + 0x8c]
lea ebx, [esp + 0x2c]
call fcn.00422d00
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x458425
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
add eax, 1
xor esi, esi
cmp eax, 2
mov dword [esp + 0x18], eax
jb 0x4582e0
cmp edi, esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x458450
push edi
call ebx
mov dword [esp + 0x38], esi
mov byte [esp + 0xb0], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x458478
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
cmp eax, esi
je 0x458483
push eax
call ebx
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0052151a
mov esp, ebp
pop ebp
ret 8