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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f1896
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x536ed4]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x536ed4]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp edi, 2
mov esi, edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], 0x50d3c8
mov dword [esp + 0x84], str.Music
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], str.Game
mov dword [esp + 0x54], 0x509a94
mov dword [esp + 0x58], 0x509ae4
mov dword [esp + 0x5c], 0x509b70
mov dword [esp + 0x60], 0x509b84
mov dword [esp + 0x64], 0x509b20
mov dword [esp + 0x68], 0x509b34
mov dword [esp + 0x6c], 0x509b5c
mov dword [esp + 0x70], 0x509a58
mov dword [esp + 0x74], 0x509a80
mov dword [esp + 0x78], 0x509a30
je 0x461c99
cmp edi, 1
je 0x461c99
cmp edi, 4
jne 0x462080
mov eax, dword [esi + 0x1c]
cmp eax, 3
jg 0x462080
cmp eax, 1
jl 0x462080
mov dword [esp + 0x10], ebx
push 0x5106b0
lea ecx, [esp + 0x18]
mov dword [esp + 0xa4], ebx
call fcn.00401b10
push 0x502e10
lea ecx, [esp + 0x18]
mov byte [esp + 0xa4], 1
call fcn.0042bac0
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax*4 + 0x53a600]
push ecx
lea ecx, [esp + 0x18]
call fcn.0042bac0
mov edx, dword [esp + edi*4 + 0x7c]
push edx
lea ecx, [esp + 0x18]
call fcn.0042bac0
push str.Default
lea ecx, [esp + 0x18]
call fcn.0042bac0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x461d47
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
lea edi, [edi + edi*4]
add edi, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edi
jmp 0x461d96
mov eax, dword [esp + 0x14]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov edx, 0x20019
lea esi, [esp + 0x18]
call fcn.0043d980
test eax, eax
je 0x461d38
mov esi, dword [esp + 0x10]
cmp esi, ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x461d76
push esi
call edi
xor esi, esi
lea ecx, [esp + 0x14]
call fcn.00401fb0
cmp esi, ebx
je 0x462080
push esi
call edi
jmp 0x462080
mov edi, dword [esp + 0x20]
xor ebx, ebx
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + ecx*4 + 0x54]
mov dword [esp + 0x28], ebx
mov edx, dword [esi]
mov dword [esp + 0x7c], edx
mov eax, dword [esi + 4]
mov dword [esp + 0x80], eax
mov ecx, dword [esi + 8]
mov dword [esp + 0x84], ecx
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x88], edx
mov edx, dword [ecx + 0x1c]
mov eax, dword [esi + 0x10]
add edx, edi
imul edx, edx, 0x3e8
add eax, edx
mov dword [esp + 0x8c], eax
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x10]
xor edi, edi
cmp dword [esp + 0x10], ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x30], ebx
je 0x461e61
lea ebx, [esp + 0x30]
lea ecx, [esp + 0x34]
call fcn.0048c250
test eax, eax
jl 0x461e61
mov ebx, dword [esp + 0x30]
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x58]
push ecx
push edi
push ebx
push edx
mov dword [esp + 0x60], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x461e56
cmp dword [esp + 0x50], 4
jne 0x461e56
lea edi, [eax + 1]
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
jne 0x461e8a
lea ebx, [esp + 0x2c]
call fcn.0048cdf0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x461e8a
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
push edx
mov ecx, 1
lea edx, [esp + 0x84]
call fcn.004398f0
test eax, eax
jne 0x461ed6
lea esi, [esp + 0x7c]
lea ebx, [esp + 0x18]
call fcn.0048cdf0
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 0x461ed6
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 0x461d90
mov ecx, dword [0x509a6c]
mov edx, dword [0x509a70]
mov eax, dword [0x509a74]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x7c], ecx
mov ecx, dword [0x509a78]
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x88], ecx
mov ecx, dword [edx + 0x1c]
add ecx, dword [esp + 0x20]
mov edx, dword [0x509a94]
imul ecx, ecx, 0x3e8
mov dword [esp + 0x84], eax
mov eax, dword [0x509a7c]
add eax, ecx
mov ecx, dword [0x509a9c]
mov dword [esp + 0x8c], eax
mov eax, dword [0x509a98]
xor esi, esi
cmp edi, esi
mov dword [esp + 0x34], edx
mov edx, dword [0x509aa0]
mov dword [esp + 0x38], eax
mov eax, dword [0x509aa4]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], esi
je 0x461fc9
lea ebx, [esp + 0x20]
lea ecx, [esp + 0x34]
call fcn.0048c250
test eax, eax
jl 0x461fc9
mov ebx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x34]
push eax
push esi
push ebx
push edi
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x461fbe
cmp dword [esp + 0x2c], 4
jne 0x461fbe
lea esi, [eax + 1]
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test esi, esi
jne 0x461ff7
mov esi, 0x509a94
lea ebx, [esp + 0x18]
call fcn.0048cdf0
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 0x461ff7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x80]
call fcn.0043a400
test eax, eax
jne 0x46203d
lea esi, [esp + 0x7c]
lea ebx, [esp + 0x18]
call fcn.0048cdf0
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 0x46203d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
cmp edi, ebx
je 0x462052
push edi
call esi
mov dword [esp + 0x10], ebx
mov edi, ebx
mov byte [esp + 0xa0], bl
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 0x462079
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebx
je 0x462080
push edi
call esi
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.004cf0b8
mov esp, ebp
pop ebp
ret