Function at 0x41e2e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [0x4ed018]
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 0x41e348
push eax
push esi
push str.VNLTakeOwnershipOfKey:_failed_to_take_ownership_of__S___08x_
push 1
call fcn.00446b80
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x18], 0
je 0x41e465
mov eax, dword [ebp + 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x2a0], eax
lea eax, [ebp - 0x280]
push eax
push 0
lea eax, [ebp - 0x2a0]
movlpd qword [ebp - 0x294], xmm0
push eax
push 1
mov dword [ebp - 0x29c], 2
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 0x41e3d4
push eax
push esi
push str.VNLTakeOwnershipOfKey:_failed_to_create_acl_for__S___08x_
push 1
call fcn.00446b80
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x280]
call dword [sym.imp.ADVAPI32.dll_IsValidAcl]
test eax, eax
jne 0x41e412
push str.VNLTakeOwnershipOfKey:_SetEntriesInAcl___created_invalid_acl
push 1
call fcn.00446b80
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.00401bd5
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 0x41e45f
push edi
push esi
push str.VNLTakeOwnershipOfKey:_failed_to_clobber_DACL_on__S___08x_
push 1
call fcn.00446b80
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x27c]
cmp dword [ebp + 0x20], 0
je 0x41e581
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 0x41e4af
push eax
push esi
push str.VNLTakeOwnershipOfKey:_could_not_open__S___08x_
push 1
call fcn.00446b80
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
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 0x41e555
nop dword [eax + eax]
lea eax, [ebp - 0x68]
push eax
push esi
push 0x4a190c
lea eax, [ebp - 0x274]
push 0x105
push eax
call fcn.00419510
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.0041e2e0
add esp, 0x30
test eax, eax
je 0x41e335
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 0x41e4e0
cmp eax, 0x103
je 0x41e581
push eax
push esi
push edi
push str.VNLTakeOwnershipOfKey:_failed_to_enumerate_subkey__u_for__S___08x_
push 1
call fcn.00446b80
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
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.00401bd5
mov esp, ebp
pop ebp
ret