Function at 0x41d030
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c8
mov eax, dword [0x4ed018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x2a4]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
neg esi
mov dword [ebp - 0x2c8], ebx
push edi
mov edi, dword [ebp + 0x14]
sbb esi, esi
push edx
and esi, 8
mov dword [ebp - 0x2a4], 0
or esi, 0xe0001
mov dword [ebp - 0x2b0], 0
push esi
push 0
push eax
push ecx
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2ac], 0
mov dword [ebp - 0x2a8], 0
mov dword [ebp - 0x2bc], 0
mov dword [ebp - 0x2b8], 0
mov dword [ebp - 0x2c4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41d0f3
push eax
push esi
push edi
push str.VNLPropagateExplicitKeySecurity:_could_not_open__S_with_access_mask__08x___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
xor esi, esi
mov dword [ebp - 0x2a0], 0x32
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x2a4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41d18f
nop
lea eax, [ebp - 0x68]
push eax
push edi
push 0x4a190c
lea eax, [ebp - 0x274]
push 0x105
push eax
call fcn.00419510
push dword [ebp + 0x18]
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x2a4]
push ebx
call fcn.0041d030
add esp, 0x28
test eax, eax
je 0x41d636
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x2a0], 0x32
push eax
lea eax, [ebp - 0x68]
inc esi
push eax
push esi
push dword [ebp - 0x2a4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x41d120
cmp eax, 0x103
jne 0x41d624
lea eax, [ebp - 0x2bc]
push eax
push 0
lea eax, [ebp - 0x2a8]
push eax
push 0
push 0
push 4
push 4
push dword [ebp - 0x2a4]
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
test eax, eax
je 0x41d1d8
push eax
push edi
push str.VNLPropagateExplicitKeySecurity:_couldnt_read_dacl_for__S___08x_
push 1
call fcn.00446b80
add esp, 0x10
jmp 0x41d636
push dword [ebp - 0x2a8]
call dword [sym.imp.ADVAPI32.dll_IsValidAcl]
test eax, eax
jne 0x41d1fd
push edi
push str.VNLPropagateExplicitKeySecurity:_got_invalid_dacl_for__S
push 1
call fcn.00446b80
add esp, 0xc
jmp 0x41d636
push dword [ebp - 0x2bc]
call dword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
test eax, eax
jne 0x41d222
push edi
push str.VNLPropagateExplicitKeySecurity:_got_invalid_sd_for__S
push 1
call fcn.00446b80
add esp, 0xc
jmp 0x41d636
lea eax, [ebp - 0x2b8]
push eax
push 0
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x2b0]
push eax
push 7
push 4
push ebx
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
je 0x41d265
push eax
push ebx
push str.VNLPropagateExplicitKeySecurity:_couldnt_read_owner_group_dacl_for__S___08x_
push 1
call fcn.00446b80
add esp, 0x10
jmp 0x41d636
push dword [ebp - 0x2ac]
call dword [sym.imp.ADVAPI32.dll_IsValidAcl]
test eax, eax
jne 0x41d28a
push ebx
push str.VNLPropagateExplicitKeySecurity:_got_invalid_dacl_for__S
push 1
call fcn.00446b80
add esp, 0xc
jmp 0x41d636
push dword [ebp - 0x2b8]
call dword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
test eax, eax
jne 0x41d2af
push ebx
push str.VNLPropagateExplicitKeySecurity:_got_invalid_sd_for__S
push 1
call fcn.00446b80
add esp, 0xc
jmp 0x41d636
push 2
push 0xc
lea eax, [ebp - 0x29c]
push eax
push dword [ebp - 0x2a8]
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x41d2e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.VNLPropagateExplicitKeySecurity:_failed_to_get_dacl_size_for_target_key__S___08x_
push 1
call fcn.00446b80
add esp, 0x10
jmp 0x41d636
push 2
push 0xc
lea eax, [ebp - 0x290]
push eax
push dword [ebp - 0x2ac]
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x41d31d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.VNLPropagateExplicitKeySecurity:_failed_to_get_dacl_size_for_source_key__S___08x_
push 1
call fcn.00446b80
add esp, 0x10
jmp 0x41d636
mov esi, dword [ebp - 0x298]
add esi, dword [ebp - 0x28c]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x2a0], eax
test eax, eax
jne 0x41d358
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.VNLPropagateExplicitKeySecurity:_failed_to_allocate_new_dacl_for__S___08x_
push 1
call fcn.00446b80
add esp, 0x10
jmp 0x41d636
push 2
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x41d38e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.VNLPropagateExplicitKeySecurity:_failed_to_init_new_dacl_for__S___08x_
push 1
call fcn.00446b80
add esp, 0x10
push dword [ebp - 0x2a0]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x41d636
push dword [ebp - 0x2a0]
call dword [sym.imp.ADVAPI32.dll_IsValidAcl]
test eax, eax
jne 0x41d3be
push str.VNLPropagateExplicitKeySecurity:_InitializeAcl___returned_invalid_acl
push 1
call fcn.00446b80
add esp, 8
push dword [ebp - 0x2a0]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x41d636
mov eax, dword [ebp - 0x2a8]
movzx esi, word [eax + 4]
test esi, esi
je 0x41d476
lea ecx, [ebp - 0x2c0]
push ecx
lea ebx, [esi - 1]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x41d44a
mov ecx, dword [ebp - 0x2c0]
test ecx, ecx
je 0x41d44a
test byte [ecx + 1], 0x10
je 0x41d410
movzx eax, word [ecx + 2]
push eax
push ecx
push 0
push 2
push dword [ebp - 0x2a0]
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
je 0x41d41e
mov esi, ebx
test esi, esi
je 0x41d476
mov eax, dword [ebp - 0x2a8]
jmp 0x41d3d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [esi - 1]
push eax
push str.VNLPropagateExplicitKeySecurity:_failed_to_re_insert_inherited_dacl_ace__u_for__S___08x_
push 1
call fcn.00446b80
add esp, 0x14
push dword [ebp - 0x2a0]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x41d636
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [esi - 1]
push eax
push str.VNLPropagateExplicitKeySecurity:_failed_to_get_target_dacl_ace__u_for__S___08x_
push 1
call fcn.00446b80
add esp, 0x14
push dword [ebp - 0x2a0]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x41d636
mov eax, dword [ebp - 0x2ac]
movzx esi, word [eax + 4]
test esi, esi
je 0x41d53b
nop dword [eax + eax]
lea ecx, [ebp - 0x2c0]
push ecx
lea ebx, [esi - 1]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x41d50a
mov ecx, dword [ebp - 0x2c0]
test ecx, ecx
je 0x41d50a
test byte [ecx + 1], 0x10
jne 0x41d4d0
movzx eax, word [ecx + 2]
push eax
push ecx
push 0
push 2
push dword [ebp - 0x2a0]
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
je 0x41d4de
mov esi, ebx
test esi, esi
je 0x41d53b
mov eax, dword [ebp - 0x2ac]
jmp 0x41d490
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [esi - 1]
push eax
push str.VNLPropagateExplicitKeySecurity:_failed_to_insert_explicit_dacl_ace__u_for__S___08x_
push 1
call fcn.00446b80
add esp, 0x14
push dword [ebp - 0x2a0]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x41d636
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x2c8]
lea eax, [esi - 1]
push eax
push str.VNLPropagateExplicitKeySecurity:_failed_to_get_source_dacl_ace__u_for__S___08x_
push 1
call fcn.00446b80
add esp, 0x14
push dword [ebp - 0x2a0]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x41d636
mov ebx, dword [ebp - 0x2a0]
push 0
push ebx
push dword [ebp - 0x2b4]
push dword [ebp - 0x2b0]
push 7
push 4
push dword [ebp - 0x2a4]
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
test eax, eax
je 0x41d5fc
push eax
push edi
push str.VNLPropagateExplicitKeySecurity:_failed_to_set_new_owner_group_dacl_on__S___08x_
push 1
mov dword [ebp - 0x284], 0x20019
mov dword [ebp - 0x280], 0x20006
mov dword [ebp - 0x27c], 0x20019
mov dword [ebp - 0x278], 0xf003f
call fcn.00446b80
push str.VNLPropagateExplicitKeySecurity:_logging_new_owner:
push 0x20
call fcn.00446b80
push 0xffffffffffffffff
push dword [ebp - 0x2b0]
call fcn.0041a800
push str.VNLPropagateExplicitKeySecurity:_logging_new_group:
push 0x20
call fcn.00446b80
push 0xffffffffffffffff
push dword [ebp - 0x2b4]
call fcn.0041a800
push str.VNLPropagateExplicitKeySecurity:_logging_new_dacl:
push 0x20
call fcn.00446b80
push ebx
lea eax, [ebp - 0x284]
push eax
push 1
push 4
push 4
push edi
call fcn.0041a4e0
add esp, 0x50
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x41d636
push edi
push str.VNLPropagateExplicitKeySecurity:_successfully_updated_owner_group_dacl_for__S
push 0x10
call fcn.00446b80
add esp, 0xc
mov dword [ebp - 0x2c4], 1
push dword [ebp - 0x2a0]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x41d636
push eax
push edi
push esi
push str.VNLPropagateExplicitKeySecurity:_failed_to_enumerate_subkey__u_for__S___08x_
push 1
call fcn.00446b80
add esp, 0x14
mov eax, dword [ebp - 0x2b8]
test eax, eax
je 0x41d647
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x2bc]
test eax, eax
je 0x41d658
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x2a4]
test ecx, ecx
je 0x41d669
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c4]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00401bd5
mov esp, ebp
pop ebp
ret