Function at 0x41c6f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x469541
push eax
mov dword fs:[0], esp
sub esp, 0x808
push ebx
push esi
push edi
call fcn.004318b0
test eax, eax
je 0x41c7a8
push 0
lea eax, [esp + 0x30]
push str.CInstallHDAudioBus_::_ValidateService
push eax
call fcn.0044cb10
mov edi, str.ENTRY:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x12c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x12c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00431840
mov ecx, eax
call fcn.004318e0
lea eax, [esp + 0x12c]
push eax
call fcn.00431840
mov ecx, eax
call fcn.00431c70
call fcn.004318b0
mov ebx, dword [esp + 0x828]
mov esi, dword [esp + 0x824]
test eax, eax
je 0x41c7e4
push ebx
push esi
lea ecx, [esp + 0x34]
push str.szServiceName___s__szServiceFileName___s_n
push ecx
call fcn.0044cb10
add esp, 0x10
lea edx, [esp + 0x2c]
push edx
call fcn.00431840
mov ecx, eax
call fcn.00431c70
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push esi
mov ebp, ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x3e8
call fcn.0045ce46
mov esi, eax
push str.SYSTEMCurrentControlSetServices_
lea ecx, [esp + 0x2c]
mov dword [esp + 0x824], 0
call fcn.0045ce46
push esi
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x828], 1
push eax
call fcn.0045cfbb
lea ecx, [esp + 0x28]
mov byte [esp + 0x820], 4
call fcn.0045cdd8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x820], 3
call fcn.0045cdd8
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push 0x20019
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41c94b
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x430]
push eax
push ecx
push 0
push 0
push str.ImagePath
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41c940
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
mov dword [esp + 0x24], esi
jbe 0x41c940
mov al, byte [esp + esi + 0x430]
mov cl, byte [ebx]
lea edi, [esp + esi + 0x430]
mov byte [esp + 0x12], al
lea edx, [esp + 0x13]
push 1
lea eax, [esp + 0x16]
push edx
push eax
mov byte [esp + 0x1f], cl
call fcn.0045a110
add esp, 0xc
test eax, eax
jne 0x41c929
mov esi, 1
cmp ebp, esi
jbe 0x41c921
mov cl, byte [edi + esi]
lea eax, [esp + 0x13]
mov byte [esp + 0x12], cl
mov dl, byte [esi + ebx]
push 1
lea ecx, [esp + 0x16]
push eax
push ecx
mov byte [esp + 0x1f], dl
call fcn.0045a110
add esp, 0xc
test eax, eax
jne 0x41c921
inc esi
cmp esi, ebp
jb 0x41c8f6
cmp esi, ebp
je 0x41c938
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
mov dword [esp + 0x24], esi
jb 0x41c8bd
jmp 0x41c940
mov dword [esp + 0x18], 1
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004318b0
test eax, eax
pop ebp
je 0x41c9ef
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x32c]
push eax
push str.CInstallHDAudioBus_::_ValidateService_:_bRetVal___d_n
push ecx
call fcn.0044cb10
mov edi, str.EXIT:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x22c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x22c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x32c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x22c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00431840
mov ecx, eax
call fcn.00431c70
call fcn.00431840
mov ecx, eax
call fcn.004318f0
lea ecx, [esp + 0x18]
mov dword [esp + 0x81c], 0xffffffff
call fcn.0045cdd8
mov ecx, dword [esp + 0x814]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x814
ret 8