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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54d91e
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5ab720]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x5ab720]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x18]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x20], edi
je 0x46096f
cmp dword [eax + 0x24], ebx
je 0x46096f
call fcn.00505193
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x460323
push 0x80004005
call fcn.00402900
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 0x98], ebx
call fcn.00505193
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x460354
push 0x80004005
call fcn.00402900
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], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x98], 3
mov ecx, 1
mov eax, 2
mov dword [esp + 0x48], ecx
mov dword [esp + 0x60], ecx
push str.SOFTWAREDTSU2PPresets
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x6c], str.Movie
mov dword [esp + 0x70], str.Music
mov dword [esp + 0x74], str.Game
mov dword [esp + 0x54], str.Internal
mov dword [esp + 0x58], str.External
mov dword [esp + 0x5c], 0x56d514
mov dword [esp + 0x48], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], eax
call fcn.004049b0
push 0x56497c
lea ecx, [esp + 0x2c]
call fcn.00410cd0
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x46047f
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
mov ecx, dword [0x56459c]
mov edx, dword [0x5645a0]
mov eax, dword [0x564598]
mov dword [esp + 0x78], ecx
mov ecx, dword [0x5645a8]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x74], eax
mov eax, dword [0x5645a4]
lea edx, [esp + 0x30]
mov dword [esp + 0x84], ecx
push edx
lea ecx, [esp + 0x78]
lea esi, [esp + 0x18]
mov dword [esp + 0x84], eax
call fcn.00428940
add esp, 4
cmp eax, ebx
je 0x46047b
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
push eax
mov edi, 1
lea ecx, [esp + 0x78]
call fcn.004b51d0
mov edi, dword [esp + 0x20]
xor esi, esi
jmp 0x4604d4
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov edx, 0x20006
lea esi, [esp + 0x1c]
call fcn.00416a60
cmp eax, ebx
je 0x460411
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4604aa
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call fcn.00401640
lea ecx, [esp + 0x28]
call fcn.00401640
jmp 0x46096f
mov edi, dword [esp + 0x20]
mov ecx, dword [0x561f50]
mov edx, dword [0x561f54]
mov eax, dword [0x561f58]
mov dword [esp + 0x74], ecx
mov ecx, dword [0x561f5c]
mov dword [esp + 0x78], edx
mov edx, dword [0x561f60]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + esi*4 + 0x44]
mov dword [esp + 0x7c], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x84], edx
push ecx
lea edx, [esp + 0x78]
push edx
mov ecx, edi
mov dword [esp + 0x38], ebx
call eax
cmp dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
jne 0x460534
xor eax, eax
jmp 0x46058f
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x78]
call fcn.00428620
add esp, 4
test eax, eax
jl 0x46058b
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x44]
push ecx
push ebx
push edi
push edx
mov dword [esp + 0x44], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x460584
cmp dword [esp + 0x3c], 4
jne 0x460584
mov dword [esp + 0x24], 1
push edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
neg eax
sbb eax, eax
and eax, dword [esp + 0x30]
mov edi, 1
push eax
lea ecx, [esp + 0x78]
call fcn.004b51d0
add esi, edi
cmp esi, 3
jb 0x4604d0
push 0x564f30
lea ecx, [esp + 0x3c]
call fcn.00404670
mov byte [esp + 0x98], 4
mov ecx, dword [0x5621ac]
mov edx, dword [0x5621b0]
mov eax, dword [0x5621a8]
mov dword [esp + 0x78], ecx
mov ecx, dword [0x5621b8]
mov dword [esp + 0x7c], edx
lea edx, [esp + 0x38]
mov dword [esp + 0x74], eax
mov eax, dword [0x5621b4]
mov dword [esp + 0x84], ecx
push edx
lea ecx, [esp + 0x78]
lea edx, [esp + 0x18]
mov dword [esp + 0x84], eax
call fcn.00428ff0
mov esi, dword [esp + 0x24]
add esp, 4
lea eax, [esp + 0x74]
push eax
lea ebx, [esp + 0x3c]
mov eax, esi
call fcn.004b4ff0
mov ecx, dword [0x56220c]
mov edx, dword [0x562210]
mov eax, dword [0x562214]
mov dword [esp + 0x74], ecx
mov ecx, dword [0x562218]
mov dword [esp + 0x78], edx
mov edx, dword [0x56221c]
mov dword [esp + 0x7c], eax
mov eax, ebx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
push eax
lea ecx, [esp + 0x78]
lea edx, [esp + 0x18]
call fcn.00428ff0
add esp, 4
lea ecx, [esp + 0x74]
push ecx
mov eax, esi
call fcn.004b4ff0
mov eax, dword [esp + 0x14]
xor esi, esi
cmp eax, esi
je 0x460695
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x28]
mov edx, esi
mov eax, dword [esp + edx + 0x50]
lea edi, [ecx - 0x10]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], esi
jmp 0x4606d4
mov edx, dword [esp + 0x24]
mov eax, dword [esp + edx + 0x50]
mov ecx, dword [esp + 0x28]
xor esi, esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], esi
jmp 0x4606d4
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
add esi, 0xfffffff0
cmp edi, esi
je 0x46072a
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x46071c
mov edx, dword [edi]
cmp edx, dword [esi]
jne 0x46071c
push edi
call fcn.00404600
mov edi, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x46070f
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x10
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x1c]
jmp 0x46072a
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00404a30
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x460744
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x460735
sub eax, edx
sar eax, 1
mov ecx, dword [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00404550
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + edx + 0x68]
test ecx, ecx
jne 0x460763
xor eax, eax
jmp 0x46077f
mov eax, ecx
lea esi, [eax + 2]
jmp 0x460770
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x460770
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00404550
push 7
push str.Default
lea ecx, [esp + 0x20]
call fcn.00404550
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push eax
push 0x20019
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x40], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4608ac
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4607d5
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x34], edi
jne 0x4608a8
xor esi, esi
mov eax, dword [esi + 0x5ade04]
mov edx, dword [eax]
mov dword [esp + 0x74], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x78], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x7c], edx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x80], ecx
mov edx, dword [eax + 0x10]
mov ecx, dword [esi + 0x5ade00]
lea eax, [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x7c]
lea eax, [esp + 0x3c]
mov dword [esp + 0x34], 0
mov dword [esp + 0x8c], edx
call fcn.004287a0
add esp, 8
test eax, eax
je 0x460886
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x460886
mov eax, dword [esp + 0x40]
mov eax, dword [esp + eax + 0x5c]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 0x34]
push eax
mov eax, dword [esp + 0x28]
mov eax, dword [esp + eax + 0x48]
push eax
lea eax, [esp + 0x7c]
push eax
call edx
mov eax, dword [esi + 0x5ade00]
mov edx, dword [esp + 0x20]
push eax
mov eax, ebx
lea ecx, [esp + 0x78]
call fcn.004b4ad0
push ebx
call fcn.005223dc
add esp, 4
add esi, 0x18
cmp esi, 0x348
jb 0x4607e7
test edi, edi
je 0x4608a8
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x34], 0
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
add eax, 4
cmp eax, 0xc
mov dword [esp + 0x40], eax
jb 0x4606d0
mov eax, dword [esp + 0x24]
add eax, 4
cmp eax, 0xc
mov dword [esp + 0x24], eax
jb 0x4606b4
mov ecx, dword [esp + 0x20]
call fcn.00460990
mov byte [esp + 0x98], 3
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x460905
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x460914
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x460923
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x98], 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 0x46094b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x98], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46096f
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0052151a
mov esp, ebp
pop ebp
ret