Function at 0x41dbd0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x4ed018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x288], eax
xor edi, edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x278], eax
lea eax, [ebp - 0x284]
push eax
push edi
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x28c], ebx
push eax
push edi
push edi
push 4
push 4
push esi
mov dword [ebp - 0x27c], edi
mov dword [ebp - 0x284], edi
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
je 0x41dc48
push eax
push esi
push str.VNLSetKeyDaclInheritance:_couldnt_read_dacl_for__S___08x_
push 1
call fcn.00446b80
add esp, 0x10
jmp 0x41ddd9
push dword [ebp - 0x27c]
call dword [sym.imp.ADVAPI32.dll_IsValidAcl]
test eax, eax
jne 0x41dc6d
push esi
push str.VNLSetKeyDaclInheritance:_got_invalid_dacl_for__S
push 1
call fcn.00446b80
add esp, 0xc
jmp 0x41ddd9
push dword [ebp - 0x284]
call dword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
test eax, eax
jne 0x41dc92
push esi
push str.VNLSetKeyDaclInheritance:_got_invalid_sd_for__S
push 1
call fcn.00446b80
add esp, 0xc
jmp 0x41ddd9
push 0
push dword [ebp - 0x27c]
mov ecx, VariantClear
test ebx, ebx
push 0
push 0
mov eax, 0x20000004
cmovne eax, ecx
push eax
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
test eax, eax
je 0x41dce1
push eax
mov ecx, 0x4a627c
test ebx, ebx
push esi
mov eax, 0x49e448
cmove eax, ecx
push eax
push str.VNLSetKeyDaclInheritance:_failed_to_set__sprotected_inheritance_on__S___08x_
push 1
call fcn.00446b80
add esp, 0x14
jmp 0x41ddd9
mov ebx, dword [ebp + 0x18]
test ebx, ebx
je 0x41ddfd
lea eax, [ebp - 0x280]
push eax
push 8
push 0
push dword [ebp - 0x278]
push dword [ebp - 0x288]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41dd23
push eax
push esi
push str.VNLSetKeyDaclInheritance:_could_not_open__S___08x_
push 1
call fcn.00446b80
add esp, 0x10
jmp 0x41ddd9
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 - 0x280]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41ddbe
nop
lea eax, [ebp - 0x68]
push eax
push esi
push 0x4a190c
lea eax, [ebp - 0x274]
push 0x105
push eax
call fcn.00419510
push ebx
push dword [ebp - 0x28c]
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x280]
call fcn.0041dbd0
add esp, 0x28
test eax, eax
je 0x41ddd7
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 - 0x280]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x41dd50
cmp eax, 0x103
je 0x41ddfd
push eax
push esi
push edi
push str.VNLSetKeyDaclInheritance:_failed_to_enumerate_subkey__u_for__S___08x_
push 1
call fcn.00446b80
add esp, 0x14
xor edi, edi
mov ecx, dword [ebp - 0x284]
test ecx, ecx
je 0x41ddea
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
mov edi, 1
jmp 0x41ddd9