Function at 0x419490
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c8
mov eax, dword [0x4e7018]
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 0x419553
push eax
push esi
push edi
push str.VNLPropagateExplicitKeySecurity:_could_not_open__S_with_access_mask__08x___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
xor esi, esi
mov dword [ebp - 0x278], 0x32
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x278]
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 0x4195ef
nop
lea eax, [ebp - 0x68]
push eax
push edi
push 0x49a55c
lea eax, [ebp - 0x274]
push 0x105
push eax
call fcn.004159a0
push dword [ebp + 0x18]
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x2a4]
push ebx
call fcn.00419490
add esp, 0x28
test eax, eax
je 0x419a96
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x278]
mov dword [ebp - 0x278], 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 0x419580
cmp eax, 0x103
jne 0x419a84
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 0x419638
push eax
push edi
push str.VNLPropagateExplicitKeySecurity:_couldnt_read_dacl_for__S___08x_
push 1
call fcn.004439a0
add esp, 0x10
jmp 0x419a96
push dword [ebp - 0x2a8]
call dword [sym.imp.ADVAPI32.dll_IsValidAcl]
test eax, eax
jne 0x41965d
push edi
push str.VNLPropagateExplicitKeySecurity:_got_invalid_dacl_for__S
push 1
call fcn.004439a0
add esp, 0xc
jmp 0x419a96
push dword [ebp - 0x2bc]
call dword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
test eax, eax
jne 0x419682
push edi
push str.VNLPropagateExplicitKeySecurity:_got_invalid_sd_for__S
push 1
call fcn.004439a0
add esp, 0xc
jmp 0x419a96
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 0x4196c5
push eax
push ebx
push str.VNLPropagateExplicitKeySecurity:_couldnt_read_owner_group_dacl_for__S___08x_
push 1
call fcn.004439a0
add esp, 0x10
jmp 0x419a96
push dword [ebp - 0x2ac]
call dword [sym.imp.ADVAPI32.dll_IsValidAcl]
test eax, eax
jne 0x4196ea
push ebx
push str.VNLPropagateExplicitKeySecurity:_got_invalid_dacl_for__S
push 1
call fcn.004439a0
add esp, 0xc
jmp 0x419a96
push dword [ebp - 0x2b8]
call dword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
test eax, eax
jne 0x41970f
push ebx
push str.VNLPropagateExplicitKeySecurity:_got_invalid_sd_for__S
push 1
call fcn.004439a0
add esp, 0xc
jmp 0x419a96
push 2
push 0xc
lea eax, [ebp - 0x2a0]
push eax
push dword [ebp - 0x2a8]
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x419746
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.004439a0
add esp, 0x10
jmp 0x419a96
push 2
push 0xc
lea eax, [ebp - 0x294]
push eax
push dword [ebp - 0x2ac]
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x41977d
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.004439a0
add esp, 0x10
jmp 0x419a96
mov esi, dword [ebp - 0x29c]
add esi, dword [ebp - 0x290]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x278], eax
test eax, eax
jne 0x4197b8
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.004439a0
add esp, 0x10
jmp 0x419a96
push 2
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x4197ee
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.004439a0
add esp, 0x10
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x419a96
push dword [ebp - 0x278]
call dword [sym.imp.ADVAPI32.dll_IsValidAcl]
test eax, eax
jne 0x41981e
push str.VNLPropagateExplicitKeySecurity:_InitializeAcl___returned_invalid_acl
push 1
call fcn.004439a0
add esp, 8
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x419a96
mov eax, dword [ebp - 0x2a8]
movzx esi, word [eax + 4]
test esi, esi
je 0x4198d6
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 0x4198aa
mov ecx, dword [ebp - 0x2c0]
test ecx, ecx
je 0x4198aa
test byte [ecx + 1], 0x10
je 0x419870
movzx eax, word [ecx + 2]
push eax
push ecx
push 0
push 2
push dword [ebp - 0x278]
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
je 0x41987e
mov esi, ebx
test esi, esi
je 0x4198d6
mov eax, dword [ebp - 0x2a8]
jmp 0x419830
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.004439a0
add esp, 0x14
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x419a96
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.004439a0
add esp, 0x14
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x419a96
mov eax, dword [ebp - 0x2ac]
movzx esi, word [eax + 4]
test esi, esi
je 0x41999b
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 0x41996a
mov ecx, dword [ebp - 0x2c0]
test ecx, ecx
je 0x41996a
test byte [ecx + 1], 0x10
jne 0x419930
movzx eax, word [ecx + 2]
push eax
push ecx
push 0
push 2
push dword [ebp - 0x278]
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
je 0x41993e
mov esi, ebx
test esi, esi
je 0x41999b
mov eax, dword [ebp - 0x2ac]
jmp 0x4198f0
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.004439a0
add esp, 0x14
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x419a96
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.004439a0
add esp, 0x14
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x419a96
mov ebx, dword [ebp - 0x278]
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 0x419a5c
push eax
push edi
push str.VNLPropagateExplicitKeySecurity:_failed_to_set_new_owner_group_dacl_on__S___08x_
push 1
mov dword [ebp - 0x288], 0x20019
mov dword [ebp - 0x284], 0x20006
mov dword [ebp - 0x280], 0x20019
mov dword [ebp - 0x27c], 0xf003f
call fcn.004439a0
push str.VNLPropagateExplicitKeySecurity:_logging_new_owner:
push 0x20
call fcn.004439a0
push 0xffffffffffffffff
push dword [ebp - 0x2b0]
call fcn.00416b70
push str.VNLPropagateExplicitKeySecurity:_logging_new_group:
push 0x20
call fcn.004439a0
push 0xffffffffffffffff
push dword [ebp - 0x2b4]
call fcn.00416b70
push str.VNLPropagateExplicitKeySecurity:_logging_new_dacl:
push 0x20
call fcn.004439a0
push ebx
lea eax, [ebp - 0x288]
push eax
push 1
push 4
push 4
push edi
call fcn.00416830
add esp, 0x50
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x419a96
push edi
push str.VNLPropagateExplicitKeySecurity:_successfully_updated_owner_group_dacl_for__S
push 0x10
call fcn.004439a0
add esp, 0xc
mov dword [ebp - 0x2c4], 1
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x419a96
push eax
push edi
push esi
push str.VNLPropagateExplicitKeySecurity:_failed_to_enumerate_subkey__u_for__S___08x_
push 1
call fcn.004439a0
add esp, 0x14
mov eax, dword [ebp - 0x2b8]
test eax, eax
je 0x419aa7
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x2bc]
test eax, eax
je 0x419ab8
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x2a4]
test ecx, ecx
je 0x419ac9
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.00401bf1
mov esp, ebp
pop ebp
ret