Function at 0x1000d9a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cd90
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 edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], ebx
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], 1
call fcn.1000a640
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x1000da1a
mov eax, esi
lea ecx, [ebp - 0x40]
push ecx
push 0x20019
push ebx
push eax
push SysReAllocStringLen
mov dword [ebp - 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x1000da7e
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x3c]
push edx
push ebx
push str.Flags
mov edi, eax
mov esi, 4
push eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x1000da84
cmp dword [ebp - 0x3c], esi
jne 0x1000da84
cmp dword [ebp - 0x34], 1
jne 0x1000da84
mov byte [ebp - 0x2d], bl
jmp 0x1000da88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 0x2d], 1
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 8
jb 0x1000da9e
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 edi, ebx
je 0x1000dab9
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], 2
xor edx, edx
push 0x37
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionExtSettings_
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.1000a770
push 0x26
mov eax, str.2F5C139F_79BD_4C84_A95A_E7140525BC55
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.1000a640
mov eax, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x1000db0c
lea eax, [ebp - 0x2c]
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 0x1000db5d
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x40]
push edx
push ebx
push str.Flags
mov edi, eax
push eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x3c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x1000db63
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], esi
jb 0x1000db79
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
mov dword [ebp - 4], 0xffffffff
cmp edi, ebx
je 0x1000db9b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0x50]
cmp al, byte [ecx + 0x90]
je 0x1000dbbf
mov byte [ecx + 0x90], al
cmp al, bl
je 0x1000dbba
call fcn.10008a00
jmp 0x1000dbbf
call fcn.10008b10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10045a28
mov esp, ebp
pop ebp
ret 4