Function at 0x6622819f
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x66236611
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x66274018]
xor eax, esp
mov dword [esp + 0x840], eax
push ebx
push esi
push edi
mov eax, dword [0x66274018]
xor eax, esp
push eax
lea eax, [esp + 0x858]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x40], edi
mov esi, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x860], ebx
cmp eax, ebx
je 0x66228488
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp eax, ebx
je 0x66228488
cmp word [eax], bx
je 0x66228488
mov dword [esp + 0x18], ebx
mov byte [esp + 0x860], 1
cmp esi, ebx
je 0x6622822d
mov dword [esp + 0x24], esi
jmp 0x66228256
lea ecx, [esp + 0x24]
push ecx
push ebx
push eax
push 1
push 4
call dword [sym.imp.SHLWAPI.dll_AssocQueryKeyW]
cmp eax, ebx
jge 0x6622824e
mov byte [esp + 0x860], bl
jmp 0x66228488
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], ebx
mov byte [esp + 0x860], 2
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebx
push str.shell
push dword [esp + 0x34]
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x66228342
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0x400
mov dword [esp + 0x20], ebx
mov byte [esp + 0x860], 3
lea eax, [esp + 0x28]
push eax
lea esi, [esp + 0x30]
lea edi, [esp + 0x50]
call fcn.66228ff7
test eax, eax
mov edi, dword [sym.imp.GrooveUtil.DLL_public:_void___thiscall_GCStr::Set_wchar_t_const__]
jne 0x662282cb
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x24]
call edi
lea eax, [esp + 0x30]
push eax
call fcn.661c7e71
mov byte [esp + 0x860], 4
xor esi, esi
lea eax, [esp + 0x44]
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x60]
push eax
push esi
push dword [esp + 0x38]
mov dword [esp + 0x4c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x662283ca
cmp eax, ebx
jne 0x6622839a
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
call edi
mov byte [esp + 0x860], 5
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x6622833b
cmp word [eax], bx
jne 0x66228366
push str.open
jmp 0x66228367
mov byte [esp + 0x860], bl
cmp dword [esp + 0x18], ebx
je 0x66228488
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
jmp 0x66228488
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.GrooveUtil.DLL_public:_bool___thiscall_GCStr::EqualsNoCase_wchar_t_const__const]
test al, al
jne 0x662283a0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
call fcn.661c56af
mov byte [esp + 0x860], 4
cmp dword [esp + 0x10], ebx
je 0x6622839a
lea ecx, [esp + 0x10]
call dword [sym.imp.GrooveUtil.DLL_private:_void___thiscall_GCStr::_Release_void_]
inc esi
jmp 0x662282df
mov eax, dword [esp + 0x10]
push eax
lea esi, [esp + 0x18]
mov dword [esp + 0x14], ebx
call fcn.661c7c67
mov byte [esp + 0x860], 4
cmp dword [esp + 0x10], ebx
je 0x662283ca
lea ecx, [esp + 0x10]
call dword [sym.imp.GrooveUtil.DLL_private:_void___thiscall_GCStr::_Release_void_]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x662283d7
cmp word [eax], bx
jne 0x66228425
cmp dword [esp + 0x34], ebx
jle 0x66228425
xor esi, esi
cmp dword [esp + 0x34], ebx
jle 0x6622840c
push str.open
lea edi, [esp + 0x34]
call fcn.661d1dde
mov ecx, eax
call dword [sym.imp.GrooveUtil.DLL_public:_bool___thiscall_GCStr::EqualsNoCase_wchar_t_const__const]
test al, al
jne 0x66228406
inc esi
cmp esi, dword [esp + 0x34]
jl 0x662283e5
cmp esi, dword [esp + 0x34]
jl 0x6622840e
xor esi, esi
lea edi, [esp + 0x30]
call fcn.661d1dde
mov ecx, dword [eax]
push ecx
lea esi, [esp + 0x18]
mov dword [eax], ebx
call fcn.661c7c67
mov byte [esp + 0x860], 3
lea eax, [esp + 0x30]
push eax
call fcn.661c7e51
mov byte [esp + 0x860], 2
cmp dword [esp + 0x20], ebx
je 0x6622844f
lea ecx, [esp + 0x20]
call dword [sym.imp.GrooveUtil.DLL_private:_void___thiscall_GCStr::_Release_void_]
mov byte [esp + 0x860], 1
cmp dword [esp + 0x1c], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x6622846d
push dword [esp + 0x1c]
call esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x860], bl
cmp dword [esp + 0x18], ebx
je 0x66228484
push dword [esp + 0x18]
call esi
mov dword [esp + 0x18], ebx
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], ebx
mov dword [edi], eax
or dword [esp + 0x860], 0xffffffff
cmp ebx, ebx
je 0x662284a8
lea ecx, [esp + 0x14]
call dword [sym.imp.GrooveUtil.DLL_private:_void___thiscall_GCStr::_Release_void_]
mov eax, edi
mov ecx, dword [esp + 0x858]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x840]
xor ecx, esp
call fcn.66229806
mov esp, ebp
pop ebp
ret 4