Function at 0x100f34e
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x1019214]
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 0x100f4a4
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 0x100f49e
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 0x100f49e
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 0x100f49e
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 0x100f49e
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 0x100f49e
test byte [ebp + 0xc], 4
je 0x100f454
test byte [ebp - 0x21b], 0x10
je 0x100f454
or byte [ebp + 0xf], 0x80
jmp 0x100f458
or byte [ebp + 0xf], 0x20
test byte [ebp + 0xc], 8
je 0x100f46d
test byte [ebp - 0x21b], 0x20
je 0x100f46d
or byte [ebp + 0xf], 0x40
jmp 0x100f471
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 0x100f4a4
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 0x100f561
cmp eax, 5
jne 0x100f5a6
test byte [ebp + 0xc], 8
mov eax, 0x20001
je 0x100f4f8
mov eax, 0x1020001
jmp 0x100f510
test byte [ebp + 0xc], 4
je 0x100f505
mov eax, 0x60001
jmp 0x100f510
test byte [ebp + 0xc], 1
je 0x100f510
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 0x100f5a6
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 0x100f55b
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100f5a6
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x224], ebx
je 0x100f694
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 0x100f5b1
cmp eax, 5
jne 0x100f5a6
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 0x100f5b7
mov dword [esi], 1
jmp 0x100f694
mov dword [ebp - 0x214], edi
cmp dword [ebp - 0x224], ebx
mov dword [ebp - 0x218], ebx
jbe 0x100f67f
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 0x100f631
test byte [ebp + 0xc], 8
mov eax, 0x2000000
je 0x100f5fb
mov eax, 0x3000000
test byte [ebp + 0xc], 4
je 0x100f606
or eax, 0x40000
test byte [ebp + 0xc], 1
je 0x100f611
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 0x100f639
mov dword [esi], 1
jmp 0x100f667
mov ecx, dword [ebp - 0x244]
push ebx
push esi
push dword [ebp - 0x240]
push dword [ebp + 0xc]
push dword [ebp - 0x21c]
call fcn.0100f34e
mov edi, eax
cmp edi, ebx
jne 0x100f6a5
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 0x100f5c9
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp - 0x220]
je 0x100f694
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.010167d4
leave
ret 0x14
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp - 0x220]
je 0x100f6ba
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x100f696