Function at 0x1000c930
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x844]
sub esp, 0x844
push 0xffffffffffffffff
push 0x10042179
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10067024]
xor eax, ebp
mov dword [ebp + 0x840], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0x100562c8
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 reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000cc64
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 0x1000ca46
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x20
push eax
lea eax, [ebp + 0x820]
push eax
push 0
push 0
push str.CurrentVersion
push dword [ebp - 0x14]
call esi
mov dx, word [ebp + 0x820]
lea eax, [ebp + 0x820]
xor ecx, ecx
test dx, dx
je 0x1000ca46
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1000ca21
cmp ecx, 3
jne 0x1000ca46
movzx eax, dx
sub eax, 0x30
mov dword [ebp - 0x1c], eax
movzx eax, word [ebp + 0x824]
sub eax, 0x30
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x10068f98], eax
mov eax, dword [ebp - 0x20]
mov dword [0x10068f9c], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x208]
mov dword [ebp - 0x28], 0x208
push eax
push 0
push 0
push str.CurrentBuildNumber
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x1000ca9b
push 0xa
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp + 0x208]
call fcn.10015a30
add esp, 4
mov dword [0x10068fa0], eax
jmp 0x1000caa0
mov eax, dword [0x10068fa0]
cmp dword [0x10068f98], 0xa
jne 0x1000cb0a
cmp eax, 0x55f0
jb 0x1000cb0a
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x208
push eax
lea eax, [ebp + 0x410]
push eax
push 0
push 0
push str.BuildBranch
push dword [ebp - 0x14]
call esi
lea eax, [ebp + 0x410]
push str.co_release
push eax
call fcn.10030503
add esp, 8
test eax, eax
je 0x1000cb00
lea eax, [ebp + 0x410]
push str.rs_prerelease
push eax
call fcn.10030503
add esp, 8
test eax, eax
jne 0x1000cb0a
mov dword [0x10068f98], 0xb
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x208
push eax
lea eax, [ebp]
push eax
push 0
push 0
push str.ReleaseId
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x1000cb47
push 0xa
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp]
call fcn.10015a30
add esp, 4
mov dword [0x100690b0], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x208
push eax
lea eax, [ebp + 0x618]
push eax
push 0
push 0
push str.CSDVersion
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x1000cbca
mov si, word [ebp + 0x618]
mov eax, 0x10068fa8
test si, si
je 0x1000cb9f
lea edx, [ebp + 0x618]
movzx ecx, si
sub edx, eax
nop word [eax + eax]
mov word [eax], cx
add eax, 2
movzx ecx, word [edx + eax]
test cx, cx
jne 0x1000cb90
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp + 0x618]
test si, si
je 0x1000cbba
nop
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1000cbb0
movzx eax, word [ebp + ecx*2 + 0x616]
sub eax, 0x30
mov dword [0x10068fa4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10068750]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10068f84]
cmp eax, dword [ecx + 4]
jle 0x1000cc2d
push 0x10068f84
call fcn.1002cd96
add esp, 4
cmp dword [0x10068f84], 0xffffffff
jne 0x1000cc2d
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 dword [0x10068f88], eax
mov byte [ebp - 4], 0
push 0x10068f84
call fcn.1002cd4c
add esp, 4
mov esi, dword [0x10068f88]
test esi, esi
je 0x1000cc58
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 0x1000cc58
cmp dword [ebp - 0x10], 1
sete al
jmp 0x1000cc5a
xor al, al
mov byte [0x100690ad], al
call fcn.1000ccc0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x100562c8
test eax, eax
je 0x1000cc87
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 + 0x840]
xor ecx, ebp
call fcn.1002c803
lea esp, [ebp + 0x844]
pop ebp
ret