Function at 0x100f451
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x10191f4]
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp byte [ebp + 0x18], bl
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x240], edi
jne 0x100f5a7
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x238], ebx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
test eax, eax
je 0x100f5a1
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x22c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
test eax, eax
je 0x100f5a1
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x228]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorGroup]
test eax, eax
je 0x100f5a1
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x23c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x100f5a1
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x23c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorSacl]
test eax, eax
je 0x100f5a1
test byte [ebp + 0xc], 4
je 0x100f557
test byte [ebp - 0x21b], 0x10
je 0x100f557
or byte [ebp + 0xf], 0x80
jmp 0x100f55b
or byte [ebp + 0xf], 0x20
test byte [ebp + 0xc], 8
je 0x100f570
test byte [ebp - 0x21b], 0x20
je 0x100f570
or byte [ebp + 0xf], 0x40
jmp 0x100f574
or byte [ebp + 0xf], 0x10
push dword [ebp - 0x238]
push dword [ebp - 0x234]
push dword [ebp - 0x228]
push dword [ebp - 0x22c]
push dword [ebp + 0xc]
push 4
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
test eax, eax
je 0x100f5a7
mov dword [esi], 1
push ebx
push ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x224]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x220]
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x230], ebx
call edi
cmp eax, ebx
je 0x100f664
cmp eax, 5
jne 0x100f6a9
test byte [ebp + 0xc], 8
mov eax, 0x20001
je 0x100f5fb
mov eax, 0x1020001
jmp 0x100f613
test byte [ebp + 0xc], 4
je 0x100f608
mov eax, 0x60001
jmp 0x100f613
test byte [ebp + 0xc], 1
je 0x100f613
mov eax, 0xa0001
lea ecx, [ebp - 0x214]
push ecx
push eax
push ebx
push ebx
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100f6a9
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x224]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x214]
call edi
test eax, eax
push dword [ebp - 0x214]
je 0x100f65e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100f6a9
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x224], ebx
je 0x100f797
mov edi, dword [ebp - 0x220]
push 0x104
lea eax, [ebp - 0x210]
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, ebx
je 0x100f6b4
cmp eax, 5
jne 0x100f6a9
lea eax, [ebp - 0x214]
push eax
push 8
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100f6ba
mov dword [esi], 1
jmp 0x100f797
mov dword [ebp - 0x214], edi
cmp dword [ebp - 0x224], ebx
mov dword [ebp - 0x218], ebx
jbe 0x100f782
push 0x104
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x218]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x100f734
test byte [ebp + 0xc], 8
mov eax, 0x2000000
je 0x100f6fe
mov eax, 0x3000000
test byte [ebp + 0xc], 4
je 0x100f709
or eax, 0x40000
test byte [ebp + 0xc], 1
je 0x100f714
or eax, 0x80000
lea ecx, [ebp - 0x21c]
push ecx
push eax
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100f73c
mov dword [esi], 1
jmp 0x100f76a
mov ecx, dword [ebp - 0x244]
push ebx
push esi
push dword [ebp - 0x240]
push dword [ebp + 0xc]
push dword [ebp - 0x21c]
call fcn.0100f451
mov edi, eax
cmp edi, ebx
jne 0x100f7a8
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x218]
mov eax, dword [ebp - 0x218]
cmp eax, dword [ebp - 0x224]
jb 0x100f6cc
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp - 0x220]
je 0x100f797
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01016b82
leave
ret 0x14
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp - 0x220]
je 0x100f7bd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x100f799