Function at 0x1000d1f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x434]
sub esp, 0x434
push 0xffffffffffffffff
push 0x100709e6
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10095070]
xor eax, ebp
mov dword [ebp + 0x430], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0x10085970
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 0x18]
call dword [eax + 4]
lea eax, [ebp - 0x14]
push eax
push 0x20119
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000d43c
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 4
push eax
push 0
push 0
push str.CurrentMajorVersionNumber
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push str.CurrentMinorVersionNumber
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x1c], 0
jne 0x1000d306
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x20
push eax
lea eax, [ebp + 0x410]
push eax
push 0
push 0
push str.CurrentVersion
push dword [ebp - 0x14]
call esi
mov dx, word [ebp + 0x410]
lea eax, [ebp + 0x410]
xor ecx, ecx
test dx, dx
je 0x1000d306
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1000d2e1
cmp ecx, 3
jne 0x1000d306
movzx eax, dx
sub eax, 0x30
mov dword [ebp - 0x1c], eax
movzx eax, word [ebp + 0x414]
sub eax, 0x30
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x10098b80], eax
mov eax, dword [ebp - 0x20]
mov dword [0x10098b84], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp]
mov dword [ebp - 0x28], 0x208
push eax
push 0
push 0
push str.CurrentBuildNumber
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x1000d352
push ecx
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp]
call fcn.10018ce0
add esp, 4
mov dword [0x10098b88], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x208
push eax
lea eax, [ebp + 0x208]
push eax
push 0
push 0
push str.CSDVersion
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x1000d3cb
mov si, word [ebp + 0x208]
mov eax, 0x10098b90
test si, si
je 0x1000d3a1
lea edx, [ebp + 0x208]
movzx ecx, si
sub edx, eax
mov word [eax], cx
add eax, 2
movzx ecx, word [edx + eax]
test cx, cx
jne 0x1000d392
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp + 0x208]
test si, si
je 0x1000d3bb
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1000d3b1
movzx eax, word [ebp + ecx*2 + 0x206]
sub eax, 0x30
mov dword [0x10098b8c], eax
mov eax, dword [0x10098b74]
test al, 1
jne 0x1000d405
or eax, 1
mov dword [0x10098b74], eax
mov byte [ebp - 4], 1
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [0x10098b78], esi
mov byte [ebp - 4], 0
jmp 0x1000d40b
mov esi, dword [0x10098b78]
test esi, esi
je 0x1000d430
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x1000d430
cmp dword [ebp - 0x10], 1
sete al
jmp 0x1000d432
xor al, al
mov byte [0x10098c95], al
call fcn.1000d480
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x10085970
test eax, eax
je 0x1000d45f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x430]
xor ecx, ebp
call fcn.10039765
lea esp, [ebp + 0x434]
pop ebp
ret