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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f17f3
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x536ed4]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x536ed4]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x10], ebx
mov dword [esp + 0x20], edi
je 0x462d31
mov dword [esp + 0x38], ebx
push 0x5106b0
lea ecx, [esp + 0x18]
mov dword [esp + 0xb4], ebx
call fcn.00401b10
push 1
push 0x502e10
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb8], 1
call fcn.00404ab0
mov eax, dword [edi + 0x1c]
mov edx, dword [eax*4 + 0x53a600]
cmp edx, ebx
jne 0x4628b4
xor eax, eax
jmp 0x4628cf
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4628c0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00404ab0
mov eax, str.Music
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4628e2
sub eax, edx
sar eax, 1
push eax
push str.Music
lea ecx, [esp + 0x1c]
call fcn.00404ab0
push 7
push str.Default
lea ecx, [esp + 0x1c]
call fcn.00404ab0
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x462b59
cmp dword [ebp + 8], ebx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
je 0x462b2a
mov ecx, dword [edi + 0x10]
test dword [ecx + 0x1f4], 0x8000
jne 0x462b2a
mov dword [esp + 0x5c], 0x509b70
mov dword [esp + 0x60], 0x509b84
mov dword [esp + 0x64], 0x509a94
mov dword [esp + 0x68], 0x509aa8
mov dword [esp + 0x6c], 0x509abc
mov dword [esp + 0x70], 0x509ad0
mov dword [esp + 0x74], 0x509ae4
mov dword [esp + 0x78], 0x509af8
mov dword [esp + 0x7c], 0x509b20
mov dword [esp + 0x80], 0x509b34
mov dword [esp + 0x84], 0x509b48
mov dword [esp + 0x88], 0x509b5c
mov dword [esp + 0x18], ebx
jmp 0x4629d0
mov edx, dword [esp + 0x18]
mov esi, dword [esp + edx*4 + 0x5c]
mov dword [esp + 0x28], ebx
mov eax, dword [esi]
mov dword [esp + 0x8c], eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x90], ecx
mov ecx, dword [edi + 0x1c]
mov edx, dword [esi + 8]
imul ecx, ecx, 0x3e8
mov dword [esp + 0x94], edx
mov eax, dword [esi + 0xc]
mov dword [esp + 0x98], eax
mov eax, dword [esi + 0x10]
add eax, ecx
mov dword [esp + 0x9c], eax
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esp + 0x40], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x10]
xor edi, edi
cmp dword [esp + 0x1c], ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x24], ebx
je 0x462a98
lea ebx, [esp + 0x24]
lea ecx, [esp + 0x40]
call fcn.0048c250
test eax, eax
jl 0x462a98
mov ebx, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push edi
push ebx
push ecx
mov dword [esp + 0x44], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x462a8d
cmp dword [esp + 0x3c], 4
jne 0x462a8d
lea edi, [eax + 1]
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
jne 0x462ac1
lea ebx, [esp + 0x34]
call fcn.0048cdf0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x462ac1
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 + 0x20]
push ecx
push edx
mov ecx, 1
lea edx, [esp + 0x94]
call fcn.004398f0
test eax, eax
jne 0x462b10
lea esi, [esp + 0x8c]
lea ebx, [esp + 0x30]
call fcn.0048cdf0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x462b10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
add eax, 1
xor ebx, ebx
cmp eax, 0xc
mov dword [esp + 0x18], eax
jb 0x4629d0
cmp dword [ebp + 0xc], ebx
je 0x462cea
mov ecx, dword [edi + 0x10]
test byte [ecx + 0x1f6], 1
jne 0x462cea
mov dword [esp + 0x54], 0x509a30
mov dword [esp + 0x58], 0x509a44
mov dword [esp + 0x18], ebx
jmp 0x462b94
mov byte [esp + 0xb0], 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 0x462d31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x462d31
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + edx*4 + 0x54]
mov dword [esp + 0x24], ebx
mov eax, dword [esi]
mov dword [esp + 0x8c], eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x90], ecx
mov ecx, dword [edi + 0x1c]
mov edx, dword [esi + 8]
imul ecx, ecx, 0x3e8
mov dword [esp + 0x94], edx
mov eax, dword [esi + 0xc]
mov dword [esp + 0x98], eax
mov eax, dword [esi + 0x10]
add eax, ecx
mov dword [esp + 0x9c], eax
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esp + 0x40], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x10]
xor edi, edi
cmp dword [esp + 0x1c], ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x28], ebx
je 0x462c5c
lea ebx, [esp + 0x28]
lea ecx, [esp + 0x40]
call fcn.0048c250
test eax, eax
jl 0x462c5c
mov ebx, dword [esp + 0x28]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
push ebx
push ecx
mov dword [esp + 0x48], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x462c51
cmp dword [esp + 0x34], 4
jne 0x462c51
lea edi, [eax + 1]
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
jne 0x462c85
lea ebx, [esp + 0x3c]
call fcn.0048cdf0
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x462c85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
mov ecx, 1
lea edx, [esp + 0x94]
call fcn.004398f0
test eax, eax
jne 0x462cd4
lea esi, [esp + 0x8c]
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 0x462cd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 1
xor ebx, ebx
cmp eax, 2
mov dword [esp + 0x18], eax
jb 0x462b90
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x462cff
push eax
call esi
mov dword [esp + 0x38], ebx
mov byte [esp + 0xb0], 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 0x462d26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x462d31
push eax
call esi
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.004cf0b8
mov esp, ebp
pop ebp
ret 8