Function at 0x1012fed4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1a0
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [0x101b9014]
xor ecx, ebp
mov dword [esp + 0x198], ecx
mov dword [edi + 0x1c], eax
lea esi, [esp + 0x64]
xor ebx, ebx
push 0x118
push ebx
push esi
call fcn.10149430
add esp, 0xc
mov dword [esi - 4], 0x11c
mov byte [esi + 0x116], 1
mov esi, edi
sub esp, 0x10
movdqa xmm0, xmmword [0x101b0b10]
movdqu xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edi, [esp + 0x60]
push edx
push eax
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
sete byte [esi + 0x2c]
mov dword [esp + 0x5c], ebx
lea eax, [esp + 0x58]
mov dword [eax], 0xffffffff
push eax
push 1
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1013007c
mov edi, dword [esp + 0x58]
lea eax, [esi + 0x20]
mov ecx, edi
mov edx, str.CurrentMajorVersionNumber
push eax
call fcn.1013041b
add esp, 4
test al, al
je 0x10130063
lea eax, [esi + 0x24]
mov ecx, dword [esp + 0x58]
mov edx, str.CurrentMinorVersionNumber
push eax
call fcn.1013041b
add esp, 4
test al, al
je 0x10130063
mov dword [esp + 8], esi
mov eax, dword [esp + 0x58]
xor ecx, ecx
dec ecx
lea esi, [esp + 0x188]
mov dword [esi + 7], ecx
mov dword [esi + 4], ecx
mov dword [esi], ecx
lea edx, [esp + 0x48]
mov dword [edx], ecx
lea ecx, [esp + 0x3c]
mov dword [ecx], 0xa
push ecx
push esi
push edx
push 0
push str.CurrentBuildNumber
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10130067
cmp dword [esp + 0x48], 1
jne 0x10130067
mov eax, dword [esp + 0x3c]
mov byte [esp + eax + 0x188], 0
lea ebx, [esp + 0x30]
mov dword [ebx], 0xffffffff
lea ecx, [esp + 0x60]
push esi
mov esi, ecx
call fcn.10035a6a
push ebx
push esi
call fcn.100d1128
add esp, 8
mov ebx, eax
cmp byte [esp + 0x6b], 0
jns 0x1013003a
push dword [esp + 0x60]
call fcn.10145bd4
add esp, 4
test bl, bl
je 0x10130067
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 8]
mov dword [esi + 0x28], eax
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x5c]
mov edx, 0x101a17b0
push eax
call fcn.1013041b
add esp, 4
mov ebx, eax
jmp 0x1013006d
xor ebx, ebx
jmp 0x1013006d
xor ebx, ebx
mov esi, dword [esp + 8]
test edi, edi
je 0x10130078
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x60]
mov dword [esp + 0x10], ebx
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x60], xmm0
mov dword [esp + 0x90], 0xffffffff
lea ebx, [esp + 0x188]
mov ecx, ebx
push 0xc
push str.kernel32.dll
call fcn.10060680
push edi
mov edi, ebx
push ebx
call fcn.1012fb90
add esp, 8
mov ebx, eax
cmp byte [edi + 0xb], 0
jns 0x101300dc
push dword [esp + 0x188]
call fcn.10145bd4
add esp, 4
test bl, bl
je 0x10130403
mov dword [esp + 8], esi
xor esi, esi
dec esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov ebx, dword [esp + 0x7c]
xor eax, eax
mov dword [esp + 0x18c], eax
mov dword [esp + 0x188], eax
mov dword [esp + 0x190], eax
test bl, 1
je 0x1013012a
lea ecx, [esp + 0x188]
push 6
push str.Debug_
call fcn.1005639a
test bl, 4
je 0x10130142
lea ecx, [esp + 0x188]
push 8
push str.Patched_
call fcn.1005639a
test bl, 2
je 0x1013015a
lea ecx, [esp + 0x188]
push 0xb
push str.Prerelease_
call fcn.1005639a
test bl, 8
je 0x10130172
lea ecx, [esp + 0x188]
push 8
push str.Private_
call fcn.1005639a
test bl, 0x20
je 0x1013018a
lea ecx, [esp + 0x188]
push 8
push str.Special_
call fcn.1005639a
movzx eax, byte [esp + 0x193]
test al, al
jns 0x1013019d
mov eax, dword [esp + 0x18c]
test eax, eax
je 0x101301ce
dec eax
lea ebx, [esp + 0x194]
lea ecx, [esp + 0x48]
push ebx
push eax
push 0
push edi
call fcn.1005649e
cmp byte [ebx - 1], 0
jns 0x101301e8
push dword [esp + 0x188]
call fcn.10145bd4
add esp, 4
jmp 0x101301e8
mov eax, dword [esp + 0x190]
mov dword [esp + 0x50], eax
movq xmm0, qword [esp + 0x188]
movq qword [esp + 0x48], xmm0
lea edi, [esp + 0x188]
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
xor esi, dword [esp + 0x80]
test esi, 0x40004
mov eax, str.Windows_NT
mov edx, str.Unknown
cmove edx, eax
mov ecx, edi
push edx
call fcn.10035a6a
cmp byte [esp + 0x10], 0
je 0x1013022a
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 8]
jmp 0x10130252
mov eax, dword [esp + 0x68]
mov ecx, eax
shr ecx, 0x10
mov esi, dword [esp + 8]
mov dword [esi + 0x20], ecx
mov ecx, 0xffff
and eax, ecx
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x6c]
mov edx, eax
shr edx, 0x10
mov dword [esi + 0x28], edx
and eax, ecx
lea ecx, [esp + 0x3c]
push eax
push 0x1019ded4
push ecx
call fcn.100772f0
add esp, 0xc
lea ebx, [esi + 0x10]
cmp byte [esi + 0x1b], 0
jns 0x10130278
push dword [ebx]
call fcn.10145bd4
add esp, 4
mov eax, dword [esp + 0x44]
mov dword [ebx + 8], eax
movsd xmm0, qword [esp + 0x3c]
movsd qword [ebx], xmm0
movzx eax, byte [esp + 0x53]
test al, al
jns 0x10130296
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
test eax, eax
je 0x10130316
lea esi, [esp + 0x14]
mov ecx, esi
push 0x1019d6d8
call fcn.10035a6a
lea edx, [esp + 0x48]
movzx eax, byte [edx + 0xb]
test al, al
cmovs eax, dword [edx + 4]
cmovs edx, dword [edx]
mov ecx, esi
push eax
push edx
call fcn.1005639a
mov edx, dword [eax + 8]
lea ecx, [esp + 0x20]
mov dword [ecx + 8], edx
movsd xmm0, qword [eax]
movsd qword [ecx], xmm0
xor esi, esi
mov dword [eax], esi
mov dword [eax + 8], esi
mov dword [eax + 4], esi
push 1
push 0x1019d600
call fcn.1005639a
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x30], xmm0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax], esi
cmp byte [esp + 0x3b], 0
jns 0x10130320
mov eax, dword [esp + 0x30]
jmp 0x10130324
mov dword [esp + 0xc], 0x1019d59c
jmp 0x1013032c
lea eax, [esp + 0x30]
mov dword [esp + 0xc], eax
mov esi, dword [esp + 8]
cmp byte [esi + 0x1b], 0
jns 0x10130334
mov ebx, dword [ebx]
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
cmp byte [esp + 0x193], 0
jns 0x1013034e
mov edi, dword [esp + 0x188]
push dword [esp + 0xc]
push ebx
push edx
push eax
push ecx
push edi
push str._s__u._u._u._s_s
lea eax, [esp + 0x58]
push eax
call fcn.100772f0
add esp, 0x20
lea edi, [esi + 4]
cmp byte [esi + 0xf], 0
jns 0x1013037c
push dword [edi]
call fcn.10145bd4
add esp, 4
mov eax, dword [esp + 0x44]
mov dword [edi + 8], eax
xor eax, eax
movq xmm0, qword [esp + 0x3c]
movq qword [edi], xmm0
mov byte [esp + 0x47], al
mov byte [esp + 0x3c], al
cmp dword [esp + 0x10], 0
je 0x101303d7
cmp byte [esp + 0x3b], 0
jns 0x101303b1
push dword [esp + 0x30]
call fcn.10145bd4
add esp, 4
cmp byte [esp + 0x2b], 0
jns 0x101303c4
push dword [esp + 0x20]
call fcn.10145bd4
add esp, 4
cmp byte [esp + 0x1f], 0
jns 0x101303d7
push dword [esp + 0x14]
call fcn.10145bd4
add esp, 4
cmp byte [esp + 0x193], 0
jns 0x101303f0
push dword [esp + 0x188]
call fcn.10145bd4
add esp, 4
cmp byte [esp + 0x53], 0
jns 0x10130403
push dword [esp + 0x48]
call fcn.10145bd4
add esp, 4
mov ecx, dword [esp + 0x198]
xor ecx, ebp
call fcn.101465a3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4