Function at 0x41a670
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0
push 0
push ebx
push 1
push 4
push esi
mov dword [ebp - 0x27c], edi
mov dword [ebp - 0x278], eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
test eax, eax
je 0x41a6d8
push eax
push esi
push str.VNLTakeOwnershipOfKey:_failed_to_take_ownership_of__S___08x_
push 1
call fcn.004439a0
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x18], 0
je 0x41a7fb
mov eax, dword [ebp + 0x1c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x2a0], xmm0
mov dword [ebp - 0x2a0], eax
lea eax, [ebp - 0x280]
push eax
push 0
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x29c], 2
movups xmmword [ebp - 0x290], xmm0
push eax
push 1
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 1
mov dword [ebp - 0x284], ebx
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x41a76a
push eax
push esi
push str.VNLTakeOwnershipOfKey:_failed_to_create_acl_for__S___08x_
push 1
call fcn.004439a0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x280]
call dword [sym.imp.ADVAPI32.dll_IsValidAcl]
test eax, eax
jne 0x41a7a8
push str.VNLTakeOwnershipOfKey:_SetEntriesInAcl___created_invalid_acl
push 1
call fcn.004439a0
add esp, 8
push dword [ebp - 0x280]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp - 0x280]
push 0
push 0
push 4
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
push dword [ebp - 0x280]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x41a7f5
push edi
push esi
push str.VNLTakeOwnershipOfKey:_failed_to_clobber_DACL_on__S___08x_
push 1
call fcn.004439a0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x27c]
cmp dword [ebp + 0x20], 0
je 0x41a912
lea eax, [ebp - 0x27c]
push eax
push 8
push 0
push dword [ebp - 0x278]
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41a845
push eax
push esi
push str.VNLTakeOwnershipOfKey:_could_not_open__S___08x_
push 1
call fcn.004439a0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
xor edi, edi
mov dword [ebp - 0x278], 0x32
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x68]
push eax
push edi
push dword [ebp - 0x27c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41a8e6
lea eax, [ebp - 0x68]
push eax
push esi
push 0x49a55c
lea eax, [ebp - 0x274]
push 0x105
push eax
call fcn.004159a0
push dword [ebp + 0x20]
lea eax, [ebp - 0x274]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x27c]
push ebx
call fcn.0041a670
add esp, 0x30
test eax, eax
je 0x41a6c5
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x278]
mov dword [ebp - 0x278], 0x32
push eax
lea eax, [ebp - 0x68]
inc edi
push eax
push edi
push dword [ebp - 0x27c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x41a871
cmp eax, 0x103
je 0x41a912
push eax
push esi
push edi
push str.VNLTakeOwnershipOfKey:_failed_to_enumerate_subkey__u_for__S___08x_
push 1
call fcn.004439a0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret