Function at 0x1000d350
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004b9a7
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x10063068]
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.1000e460
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 0x1000d3dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1000d3d4
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x1000d3dc
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 0x1000d423
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1000d41b
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x1000d423
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 0x1000d46d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1000d465
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x1000d46d
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.1000a770
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.1000a770
push 0x26
mov eax, str.FB16E5C3_A9E2_47A2_8EFC_319E775E62CC
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.1000a640
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x1000d4f4
mov eax, esi
lea ecx, [ebp - 0x34]
push ecx
push 0x20019
push ebx
push eax
push SysReAllocStringLen
mov dword [ebp - 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x1000d558
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 0x1000d561
cmp dword [ebp - 0x4c], 4
jne 0x1000d561
cmp dword [ebp - 0x38], 1
jne 0x1000d561
mov byte [ebp - 0x2d], bl
jmp 0x1000d565
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 0x1000d57c
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 0x1000d597
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.10045a28
mov esp, ebp
pop ebp
ret