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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f3a38
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x536ed4]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x536ed4]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x10]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x40], ebx
je 0x467646
cmp dword [eax + 0xb8], esi
je 0x467646
call fcn.004bb047
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x467013
push 0x80004005
call fcn.00401730
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x88], esi
call fcn.004bb047
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x467044
push 0x80004005
call fcn.00401730
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], esi
mov byte [esp + 0x88], 3
mov eax, dword [ebx + 0x28]
cmp eax, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x4c], 0x50d3c8
mov dword [esp + 0x50], str.Music
mov dword [esp + 0x54], str.Game
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], 1
mov dword [esp + 0x60], 2
mov dword [esp + 0x48], 0x53a5cc
jne 0x46738e
mov dword [esp + 0x48], str.Internal
mov dword [esp + 0x3c], 0x53a5c0
xor ecx, ecx
cmp eax, esi
setne cl
push str.SOFTWAREDTSU2PPresets
lea ecx, [ecx*4 + 3]
mov edi, ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x48], edi
call fcn.00401d80
push 0x502e10
lea ecx, [esp + 0x24]
call fcn.0042bac0
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push edx
push 0x20019
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x46739b
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x50b6cc]
mov edx, dword [0x50b6d0]
mov eax, dword [0x50b6c8]
mov dword [esp + 0x68], ecx
mov ecx, dword [0x50b6d8]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x64], eax
mov eax, dword [0x50b6d4]
lea edx, [esp + 0x2c]
mov dword [esp + 0x74], ecx
push edx
lea ecx, [esp + 0x68]
lea esi, [esp + 0x18]
mov dword [esp + 0x74], eax
call fcn.0048d560
add esp, 4
test eax, eax
je 0x467173
mov eax, dword [esp + 0x2c]
push eax
push ebx
mov ecx, 1
lea edx, [esp + 0x6c]
call fcn.004398f0
xor esi, esi
test edi, edi
jle 0x467255
mov ecx, dword [0x50960c]
mov edx, dword [0x509610]
mov eax, dword [0x509614]
mov dword [esp + 0x64], ecx
mov ecx, dword [0x509618]
mov dword [esp + 0x68], edx
mov edx, dword [0x50961c]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x74], edx
mov edx, dword [ecx + esi*4]
push edx
mov dword [esp + 0x70], eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x18]
lea ecx, [esp + 0x68]
push ecx
mov ecx, ebx
mov dword [esp + 0x34], 0
call edx
xor eax, eax
xor edi, edi
cmp dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
je 0x46722a
lea ebx, [esp + 0x1c]
lea ecx, [esp + 0x64]
call fcn.0048c250
test eax, eax
jl 0x467228
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x2c]
push edx
push edi
push ebx
push eax
mov dword [esp + 0x4c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x467221
cmp dword [esp + 0x24], 4
jne 0x467221
lea edi, [eax + 1]
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
mov ebx, dword [esp + 0x40]
neg eax
sbb eax, eax
and eax, dword [esp + 0x2c]
mov ecx, 1
push eax
push ebx
lea edx, [esp + 0x6c]
call fcn.004398f0
mov edi, dword [esp + 0x44]
add esi, 1
cmp esi, edi
jl 0x46717d
push 0x50148c
lea ecx, [esp + 0x2c]
call fcn.00401b10
mov byte [esp + 0x88], 4
mov ecx, dword [0x509864]
mov edx, dword [0x509868]
mov eax, dword [0x50986c]
mov dword [esp + 0x64], ecx
mov ecx, dword [0x509870]
mov dword [esp + 0x68], edx
mov edx, dword [0x509874]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
push eax
lea ecx, [esp + 0x68]
lea edx, [esp + 0x18]
call fcn.0048d630
add esp, 4
push 1
lea ecx, [esp + 0x68]
push ecx
push ebx
lea esi, [esp + 0x34]
call fcn.0043a840
mov edx, dword [0x5098c8]
mov ecx, dword [0x5098d0]
mov eax, dword [0x5098cc]
mov dword [esp + 0x64], edx
mov edx, dword [0x5098d4]
mov dword [esp + 0x6c], ecx
mov ecx, esi
mov dword [esp + 0x68], eax
mov eax, dword [0x5098d8]
mov dword [esp + 0x70], edx
push ecx
lea ecx, [esp + 0x68]
lea edx, [esp + 0x18]
mov dword [esp + 0x78], eax
call fcn.0048d630
add esp, 4
push 1
lea edx, [esp + 0x68]
push edx
push ebx
call fcn.0043a840
mov eax, dword [esp + 0x14]
xor esi, esi
cmp eax, esi
je 0x467327
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], esi
cmp edi, esi
mov dword [esp + 0x24], esi
jle 0x4675a6
mov dword [esp + 0x38], 0
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
add esi, 0xfffffff0
add eax, 0xfffffff0
cmp eax, esi
je 0x4673f3
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4673e1
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x4673e1
push eax
call fcn.00401850
add esp, 4
mov edi, eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x467385
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add edi, 0x10
mov dword [esp + 0x18], edi
jmp 0x4673f3
mov dword [esp + 0x3c], 0x53a5e8
jmp 0x4670b7
mov edx, dword [esp + 0x20]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov edx, 0x20006
lea esi, [esp + 0x1c]
call fcn.0043d980
test eax, eax
je 0x467116
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4673ca
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call fcn.00401fb0
lea ecx, [esp + 0x20]
call fcn.00401fb0
jmp 0x467646
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00401e60
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
mov edx, dword [eax + ecx*4]
test edx, edx
jne 0x467406
xor eax, eax
jmp 0x46741f
mov eax, edx
lea esi, [eax + 2]
jmp 0x467410
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x467410
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.00404ab0
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + edx + 0x4c]
test ecx, ecx
jne 0x46743a
xor eax, eax
jmp 0x46744f
mov eax, ecx
lea esi, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x467440
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00404ab0
push 7
push str.Default
lea ecx, [esp + 0x20]
call fcn.00404ab0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x467579
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4674a5
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x30], edx
jne 0x467579
xor esi, esi
mov eax, dword [esi + 0x53a114]
mov ecx, dword [eax]
mov dword [esp + 0x64], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x68], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x70], edx
mov eax, dword [eax + 0x10]
mov edx, dword [esi + 0x53a110]
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x78], eax
push edx
lea ecx, [esp + 0x6c]
lea eax, [esp + 0x38]
mov dword [esp + 0x3c], 0
call fcn.0048d3c0
add esp, 8
test eax, eax
je 0x467553
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x467553
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + ecx + 0x58]
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
mov eax, dword [edi]
mov eax, dword [eax + 0x1c]
push edx
mov edx, dword [esp + 0x28]
mov ecx, dword [ecx + edx*4]
push ecx
lea edx, [esp + 0x6c]
push edx
mov ecx, edi
call eax
mov ecx, dword [esi + 0x53a110]
push ecx
mov ecx, ebx
lea edx, [esp + 0x68]
mov eax, edi
call fcn.0043a8e0
push ebx
call fcn.004d0442
add esp, 4
add esi, 0x18
cmp esi, 0x348
jb 0x4674b7
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x467579
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x38]
add eax, 4
cmp eax, 0xc
mov dword [esp + 0x38], eax
jb 0x46733b
mov eax, dword [esp + 0x24]
add eax, 1
cmp eax, dword [esp + 0x44]
mov dword [esp + 0x24], eax
jl 0x467333
mov ebx, dword [esp + 0x40]
mov ecx, ebx
call fcn.00467670
mov byte [esp + 0x88], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4675d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4675e4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4675f3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x88], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46761b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x88], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x467646
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004cf0b8
mov esp, ebp
pop ebp
ret