Function at 0x1000ff70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004dfb7
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x10067068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push edi
mov dword [ebp - 0x50], edi
call fcn.10011140
lea esi, [edi + 0x60]
xor eax, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [edi + 0x5c], vtable.IRegistryEventHandler.0
mov dword [edi], vtable.CRegMonitor.0
mov dword [edi + 0x5c], vtable.CRegMonitor.1.0
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push ebx
mov dword [esi + 0x10], eax
push esi
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x1000fffc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1000fff4
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x1000fffc
push eax
call fcn.10001000
mov dword [esi + 0x18], ebx
lea esi, [edi + 0x7c]
xor eax, eax
mov byte [ebp - 4], 1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push ebx
mov dword [esi + 0x10], eax
push esi
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x10010043
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1001003b
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x10010043
push eax
call fcn.10001000
mov dword [esi + 0x18], ebx
lea esi, [edi + 0x98]
xor eax, eax
mov byte [ebp - 4], 2
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push ebx
mov dword [esi + 0x10], eax
push esi
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x1001008d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10010085
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x1001008d
push eax
call fcn.10001000
mov dword [esi + 0x18], ebx
lea esi, [edi + 0xb4]
mov eax, 7
xor ecx, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], ebx
mov word [esi], cx
xor edx, edx
mov dword [edi + 0xe4], eax
mov dword [edi + 0xe0], ebx
mov word [edi + 0xd0], dx
push 0x36
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionExtSettings
mov byte [ebp - 4], 5
call fcn.1000cf60
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov byte [ebp - 4], 6
xor eax, eax
mov word [ebp - 0x2c], ax
push 0x37
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionExtSettings_
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.1000cf60
push 0x26
mov eax, str.FB16E5C3_A9E2_47A2_8EFC_319E775E62CC
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.10011b20
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10010114
mov eax, esi
lea ecx, [ebp - 0x34]
push ecx
push 0x20019
push ebx
push eax
push SysReAllocString
mov dword [ebp - 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10010178
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x4c]
push edx
push ebx
push str.Flags
mov esi, eax
push eax
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x3c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x10010181
cmp dword [ebp - 0x4c], 4
jne 0x10010181
cmp dword [ebp - 0x38], 1
jne 0x10010181
mov byte [ebp - 0x2d], bl
jmp 0x10010185
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x48]
mov byte [ebp - 0x2d], 1
mov byte [ebp - 4], 6
cmp dword [ebp - 0x18], 8
jb 0x1001019c
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp esi, ebx
je 0x100101b7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dl, byte [ebp - 0x2d]
mov byte [edi + 0xec], dl
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10048188
mov esp, ebp
pop ebp
ret