Function at 0x1011f94
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x101d044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x244], edi
cmp byte [ebp + 0x18], bl
jne 0x10120cf
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x238], ebx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
test eax, eax
je 0x10120c9
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
test eax, eax
je 0x10120c9
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x23c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorGroup]
test eax, eax
je 0x10120c9
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x10120c9
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorSacl]
test eax, eax
je 0x10120c9
push dword [ebp - 0x220]
mov ecx, dword [ebp - 0x228]
lea eax, [ebp + 0xc]
push eax
call fcn.01011d4c
push dword [ebp - 0x238]
push dword [ebp - 0x22c]
push dword [ebp - 0x23c]
push dword [ebp - 0x230]
push dword [ebp + 0xc]
push 4
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
test eax, eax
je 0x10120cf
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 - 0x234]
push eax
lea eax, [ebp - 0x224]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x21c]
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x234], ebx
call edi
cmp eax, ebx
je 0x1012178
cmp eax, 5
jne 0x1012136
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 0xc]
push 0x20001
call fcn.01011cd8
push eax
push ebx
push ebx
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1012141
mov dword [esi], 1
jmp 0x1012293
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x224]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x214]
call edi
push dword [ebp - 0x214]
test eax, eax
je 0x1012172
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1012136
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x224], ebx
je 0x1012293
mov edi, dword [ebp - 0x21c]
push 0x104
lea eax, [ebp - 0x210]
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, ebx
je 0x10121c3
cmp eax, 5
jne 0x1012136
lea eax, [ebp - 0x214]
push eax
push 8
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1012136
jmp 0x10121c9
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x218], ebx
cmp dword [ebp - 0x224], ebx
jbe 0x101227e
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
je 0x1012205
mov dword [esi], 1
jmp 0x1012266
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 0xc]
push 0x2000000
call fcn.01011cd8
push eax
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10121fd
mov ecx, dword [ebp - 0x228]
push ebx
push esi
push dword [ebp - 0x244]
push dword [ebp + 0xc]
push dword [ebp - 0x220]
call fcn.01011f94
mov edi, eax
cmp edi, ebx
jne 0x10122a6
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x218]
mov eax, dword [ebp - 0x218]
cmp eax, dword [ebp - 0x224]
jb 0x10121db
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp - 0x21c]
je 0x1012293
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100160d
leave
ret 0x14
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp - 0x21c]
je 0x10122bb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x1012295