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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54a2c6
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5ab720]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x5ab720]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
cmp ebx, 2
mov edi, edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], str.Movie
mov dword [esp + 0x84], str.Music
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], str.Game
mov dword [esp + 0x54], 0x5623ec
mov dword [esp + 0x58], 0x56243c
mov dword [esp + 0x5c], 0x5624c8
mov dword [esp + 0x60], 0x5624dc
mov dword [esp + 0x64], 0x562478
mov dword [esp + 0x68], 0x56248c
mov dword [esp + 0x6c], 0x5624b4
mov dword [esp + 0x70], 0x5623b0
mov dword [esp + 0x74], 0x5623d8
mov dword [esp + 0x78], 0x562388
je 0x4573c9
cmp ebx, 1
je 0x4573c9
cmp ebx, 4
jne 0x4577d0
mov eax, dword [edi + 0x28]
cmp eax, 3
jg 0x4577d0
cmp eax, 1
jl 0x4577d0
mov dword [esp + 0x10], esi
push str.SOFTWAREDTSPremiumSuitPresets
lea ecx, [esp + 0x18]
mov dword [esp + 0xa4], esi
call fcn.00404670
push 0x56497c
lea ecx, [esp + 0x18]
mov byte [esp + 0xa4], 1
call fcn.00410cd0
mov eax, dword [edi + 0x28]
mov ecx, dword [eax*4 + 0x5addd8]
push ecx
lea ecx, [esp + 0x18]
call fcn.00410cd0
mov edx, dword [esp + ebx*4 + 0x7c]
push edx
lea ecx, [esp + 0x18]
call fcn.00410cd0
push str.Default
lea ecx, [esp + 0x18]
call fcn.00410cd0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push esi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x457477
mov edi, dword [esp + 0x1c]
lea ecx, [ebx + ebx*4]
add ecx, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
jmp 0x4574da
mov edx, dword [esp + 0x14]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov edx, 0x20019
lea esi, [esp + 0x18]
call fcn.00416a60
test eax, eax
je 0x4574b4
mov esi, dword [esp + 0x10]
test esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4574a6
push esi
call edi
xor esi, esi
lea ecx, [esp + 0x14]
call fcn.00401640
jmp 0x4577c9
mov edi, dword [esp + 0x10]
xor esi, esi
lea ecx, [ebx + ebx*4]
add ecx, ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
jmp 0x4574da
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
xor esi, esi
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], esi
mov esi, dword [esp + eax*4 + 0x54]
mov edx, dword [esi]
mov dword [esp + 0x7c], edx
mov eax, dword [esi + 4]
mov dword [esp + 0x80], eax
mov edx, dword [esi + 8]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x24]
mov edx, dword [edx + 0x28]
mov eax, dword [esi + 0xc]
add edx, ecx
imul edx, edx, 0x3e8
mov dword [esp + 0x88], eax
mov eax, dword [esi + 0x10]
add eax, edx
mov dword [esp + 0x8c], eax
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x30], ebx
je 0x4575a7
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x38]
call fcn.00428620
add esp, 4
test eax, eax
jl 0x4575a7
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x58]
push edx
push ebx
push eax
push edi
mov dword [esp + 0x60], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x457598
cmp dword [esp + 0x50], 4
jne 0x457598
lea ebx, [eax + 1]
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jne 0x4575d0
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 0x4575d0
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 + 0x80]
call fcn.004b51d0
test eax, eax
jne 0x45761b
lea esi, [esp + 0x7c]
lea ebx, [esp + 0x18]
call fcn.00422d00
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45761b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, 0xa
mov dword [esp + 0x1c], eax
jb 0x4574d0
mov ecx, dword [0x5623c4]
mov edx, dword [0x5623c8]
mov eax, dword [0x5623cc]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x7c], ecx
mov ecx, dword [0x5623d0]
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x88], ecx
mov ecx, dword [edx + 0x28]
add ecx, dword [esp + 0x20]
mov edx, dword [0x5623ec]
imul ecx, ecx, 0x3e8
mov dword [esp + 0x84], eax
mov eax, dword [0x5623d4]
add eax, ecx
mov ecx, dword [0x5623f4]
mov dword [esp + 0x8c], eax
mov eax, dword [0x5623f0]
xor edi, edi
cmp esi, edi
mov dword [esp + 0x34], edx
mov edx, dword [0x5623f8]
mov dword [esp + 0x38], eax
mov eax, dword [0x5623fc]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], edi
je 0x457712
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x38]
call fcn.00428620
add esp, 4
test eax, eax
jl 0x457712
mov ebx, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
push ebx
push esi
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x457707
cmp dword [esp + 0x2c], 4
jne 0x457707
lea edi, [eax + 1]
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
jne 0x457740
mov esi, 0x5623ec
lea ebx, [esp + 0x18]
call fcn.00422d00
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x457740
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
lea edi, [esp + 0x80]
call fcn.004b5450
test eax, eax
jne 0x457784
mov esi, edi
lea ebx, [esp + 0x18]
call fcn.00422d00
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x457784
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x10]
test esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4577a1
push esi
call edi
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x10]
mov byte [esp + 0xa0], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4577c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x4577d0
push esi
call edi
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0052151a
mov esp, ebp
pop ebp
ret