Function at 0x10010680
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100509a0
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 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.1000cf60
push 0x26
mov eax, str.FB16E5C3_A9E2_47A2_8EFC_319E775E62CC
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.10011b20
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x100106fa
mov eax, esi
lea ecx, [ebp - 0x40]
push ecx
push 0x20019
push ebx
push eax
push SysReAllocString
mov dword [ebp - 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x1001075e
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 0x10010764
cmp dword [ebp - 0x3c], esi
jne 0x10010764
cmp dword [ebp - 0x34], 1
jne 0x10010764
mov byte [ebp - 0x2d], bl
jmp 0x10010768
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 0x2d], 1
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 8
jb 0x1001077e
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 0x10010799
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.1000cf60
push 0x26
mov eax, str.2F5C139F_79BD_4C84_A95A_E7140525BC55
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.10011b20
mov eax, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x100107ec
lea eax, [ebp - 0x2c]
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 0x1001083d
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 0x10010843
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], esi
jb 0x10010859
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 0x1001087b
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 0x1001089f
mov byte [ecx + 0x90], al
cmp al, bl
je 0x1001089a
call fcn.10009850
jmp 0x1001089f
call fcn.10009960
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.10048188
mov esp, ebp
pop ebp
ret 4