Function at 0x413a70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8200
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x65f018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
movlpd qword [ebp - 0x24], xmm0
mov byte [ecx], 1
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x98], eax
mov byte [eax], 1
mov dword [ebp - 0x24], vtable.CRegistry.0
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push esi
call edi
test eax, eax
jne 0x413b05
mov esi, dword [ebp - 0x18]
mov eax, 1
mov dword [ebp - 0x20], esi
jmp 0x413b07
xor eax, eax
test eax, eax
jne 0x413b4a
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push esi
call edi
test eax, eax
jne 0x413b2f
mov esi, dword [ebp - 0x18]
mov eax, 1
mov dword [ebp - 0x20], esi
jmp 0x413b31
xor eax, eax
test eax, eax
jne 0x413b4a
test esi, esi
je 0x413b40
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x413e4e
xor edi, edi
lea ecx, [ebp - 0x40]
push edi
xorps xmm0, xmm0
mov dword [ebp - 0x30], edi
push 0x629f50
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], edi
call fcn.00409d40
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x28]
push eax
push edi
push str.CurrentMajorVersionNumber
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov eax, edi
cmove eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 4
push eax
lea eax, [ebp - 0x44]
push eax
push edi
push str.CurrentMinorVersionNumber
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
test eax, eax
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x40]
cmove edi, dword [ebp - 0x18]
push eax
push str.CurrentBuildNumber
mov dword [ebp - 0x18], edi
call fcn.00432ad0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 4
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
push 0x62c4cc
push dword [ebp - 0x20]
call esi
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x7c], 0
push 0x629f50
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x78], 0
movups xmmword [ebp - 0x8c], xmm0
call fcn.00409d40
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x74]
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x64], 0
push 0x629f50
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x60], 0
call fcn.00409d40
mov byte [ebp - 4], 4
xorps xmm0, xmm0
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
push 0
push 0x629f50
lea ecx, [ebp - 0x5c]
call fcn.00409d40
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 5
push eax
push 0x62c4d4
lea ecx, [ebp - 0x24]
call fcn.00432ad0
lea eax, [ebp - 0x74]
push eax
push str.EditionID
lea ecx, [ebp - 0x24]
call fcn.00432ad0
lea eax, [ebp - 0x5c]
push eax
push str.CompositionEditionID
lea ecx, [ebp - 0x24]
call fcn.00432ad0
mov esi, dword [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x413cba
push esi
call edi
xor esi, esi
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.005b45d2
add esp, 4
cmp dword [ebp - 0x28], 0xa
jb 0x413cfa
cmp dword [ebp - 0x18], 0
jne 0x413cfa
cmp eax, 0x3b25
ja 0x413cea
mov ecx, dword [ebp - 0x94]
mov byte [ecx], 0
cmp eax, 0x3a99
ja 0x413cfa
mov eax, dword [ebp - 0x98]
mov byte [eax], 0
mov ecx, dword [ebp - 0x48]
cmp ecx, 8
jb 0x413d34
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x413d2a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413e6c
push ecx
push edx
call fcn.0058fc74
add esp, 8
mov ecx, dword [ebp - 0x60]
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp ecx, 8
jb 0x413d82
mov edx, dword [ebp - 0x74]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x413d78
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413e6c
push ecx
push edx
call fcn.0058fc74
add esp, 8
mov ecx, dword [ebp - 0x78]
xor eax, eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
cmp ecx, 8
jb 0x413dd3
mov edx, dword [ebp - 0x8c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x413dc9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413e6c
push ecx
push edx
call fcn.0058fc74
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
cmp ecx, 8
jb 0x413e20
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x413e16
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413e6c
push ecx
push edx
call fcn.0058fc74
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
test esi, esi
je 0x413b40
push esi
call edi
mov eax, 1
jmp 0x413e4e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0058fc43
mov esp, ebp
pop ebp
ret 8
call fcn.005ae1ee
int3