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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f1846
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x536ed4]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push esi
push edi
mov eax, dword [0x536ed4]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [eax + 0x10], ebx
mov dword [esp + 0x28], eax
je 0x4627eb
mov eax, 1
mov dword [esp + 0x7c], 0x50d3c8
mov dword [esp + 0x80], str.Music
mov dword [esp + 0x84], str.Game
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 2
mov dword [esp + 0x70], 4
mov dword [esp + 0x18], ebx
push 0x5106b0
lea ecx, [esp + 0x14]
mov dword [esp + 0x10c], ebx
call fcn.00401b10
lea eax, [esp + 0x20]
push eax
push 0x20019
mov byte [esp + 0x110], 1
mov ecx, dword [esp + 0x18]
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x60], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4621f3
mov edi, dword [esp + 0x20]
lea edx, [esp + 0x4c]
push edx
mov ecx, 0x50b678
lea esi, [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.0048d560
add esp, 4
test eax, eax
je 0x4621e4
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
lea ecx, [ebx + 1]
mov edx, 0x50b678
call fcn.004398f0
cmp edi, ebx
je 0x4621f3
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x9c]
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], 0x53a604
mov dword [esp + 0x48], 3
mov edi, edi
xor edi, edi
mov dword [esp + 0x3c], edi
push 0x20
push 0x5106b0
lea ecx, [esp + 0x18]
call fcn.00401e60
push 1
push 0x502e10
lea ecx, [esp + 0x18]
call fcn.00404ab0
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
cmp edx, ebx
jne 0x462244
xor eax, eax
jmp 0x46225f
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x462250
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00404ab0
mov edx, dword [esp + edi + 0x7c]
cmp edx, ebx
jne 0x462276
xor eax, eax
jmp 0x46228f
mov eax, edx
lea esi, [eax + 2]
jmp 0x462280
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x462280
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00404ab0
push 7
push str.Default
lea ecx, [esp + 0x18]
call fcn.00404ab0
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x462790
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, ebx
je 0x4622e2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
jne 0x462790
cmp dword [ebp + 0xc], ebx
je 0x462591
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x10]
test dword [eax + 0x1f4], 0x8000
jne 0x462591
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [esp + edi + 0x68]
mov dword [esp + 0xb4], 0x509b70
mov dword [esp + 0xb8], 0x509b84
mov dword [esp + 0xbc], 0x509a94
mov dword [esp + 0xc0], 0x509aa8
mov dword [esp + 0xc4], 0x509abc
mov dword [esp + 0xc8], 0x509ad0
mov dword [esp + 0xcc], 0x509ae4
mov dword [esp + 0xd0], 0x509af8
mov dword [esp + 0xd4], 0x509b20
mov dword [esp + 0xd8], 0x509b34
mov dword [esp + 0xdc], 0x509b48
mov dword [esp + 0xe0], 0x509b5c
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x34], eax
jmp 0x4623c0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + ecx*4 + 0xb4]
mov dword [esp + 0x24], ebx
mov edx, dword [eax]
mov dword [esp + 0xe4], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0xe8], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0xec], edx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xf0], ecx
mov edx, dword [eax + 0x10]
mov dword [esp + 0xf4], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x88], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x8c], edx
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
xor edi, edi
cmp dword [esp + 0x14], ebx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], eax
mov dword [esp + 0x2c], ebx
je 0x462492
lea ebx, [esp + 0x2c]
lea ecx, [esp + 0x88]
call fcn.0048c250
test eax, eax
jl 0x462492
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x6c]
push eax
push edi
push esi
mov ebx, 4
push ecx
mov dword [esp + 0x50], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x462487
cmp dword [esp + 0x64], ebx
jne 0x462487
lea edi, [ebx - 3]
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
jne 0x4624c2
lea esi, [esp + 0xe4]
lea ebx, [esp + 0x50]
call fcn.0048cdf0
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4624c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x44], 0
je 0x4624d6
add dword [esp + 0xf4], 0xbb8
jmp 0x4624f5
cmp dword [esp + 0x40], 0
je 0x4624ea
add dword [esp + 0xf4], 0x3e8
jmp 0x4624f5
add dword [esp + 0xf4], 0x7d0
mov eax, dword [esp + 0x34]
cmp eax, 4
jne 0x46250b
add dword [esp + 0xf4], 0x9c40
jmp 0x462528
cmp eax, 2
jne 0x46251d
add dword [esp + 0xf4], 0x4e20
jmp 0x462528
add dword [esp + 0xf4], 0x2710
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push ecx
push edx
mov ecx, 1
lea edx, [esp + 0xec]
call fcn.004398f0
test eax, eax
jne 0x462577
lea esi, [esp + 0xe4]
lea ebx, [esp + 0x5c]
call fcn.0048cdf0
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x462577
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
xor ebx, ebx
cmp eax, 0xc
mov dword [esp + 0x1c], eax
jb 0x4623c0
mov edi, dword [esp + 0x3c]
cmp dword [ebp + 0x10], ebx
je 0x46277d
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x10]
test byte [edx + 0x1f6], 1
jne 0x46277d
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [esp + edi + 0x68]
mov dword [esp + 0x74], 0x509a30
mov dword [esp + 0x78], 0x509a44
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x38], eax
jmp 0x4625e0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + ecx*4 + 0x74]
mov dword [esp + 0x2c], ebx
mov edx, dword [eax]
mov dword [esp + 0xe4], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0xe8], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0xec], edx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xf0], ecx
mov edx, dword [eax + 0x10]
xor edi, edi
cmp dword [esp + 0x14], ebx
mov dword [esp + 0xf4], edx
mov dword [esp + 0x24], ebx
je 0x46267e
lea ebx, [esp + 0x24]
lea ecx, [esp + 0xe4]
call fcn.0048c250
test eax, eax
jl 0x46267e
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x5c]
push edx
push edi
push esi
mov ebx, 4
push eax
mov dword [esp + 0x4c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x462673
cmp dword [esp + 0x54], ebx
jne 0x462673
lea edi, [ebx - 3]
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
jne 0x4626ae
lea esi, [esp + 0xe4]
lea ebx, [esp + 0x58]
call fcn.0048cdf0
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4626ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x40], 0
je 0x4626c2
add dword [esp + 0xf4], 0xbb8
jmp 0x4626e1
cmp dword [esp + 0x44], 0
je 0x4626d6
add dword [esp + 0xf4], 0x3e8
jmp 0x4626e1
add dword [esp + 0xf4], 0x7d0
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x4626f7
add dword [esp + 0xf4], 0x9c40
jmp 0x462714
cmp eax, 2
jne 0x462709
add dword [esp + 0xf4], 0x4e20
jmp 0x462714
add dword [esp + 0xf4], 0x2710
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
push edx
mov ecx, 1
lea edx, [esp + 0xec]
call fcn.004398f0
test eax, eax
jne 0x462763
lea esi, [esp + 0xe4]
lea ebx, [esp + 0x60]
call fcn.0048cdf0
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x462763
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
xor ebx, ebx
cmp eax, 2
mov dword [esp + 0x1c], eax
jb 0x4625e0
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x462790
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
add edi, 4
cmp edi, 0xc
mov dword [esp + 0x3c], edi
jb 0x462216
add dword [esp + 0x20], 4
add dword [esp + 0x30], 8
sub dword [esp + 0x48], 1
jne 0x462210
mov byte [esp + 0x108], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4627dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4627eb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.004cf0b8
mov esp, ebp
pop ebp
ret 0xc