Function at 0x4146d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4491d0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4624c8]
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
mov dword [ebp - 0x6c], ecx
xor edi, edi
mov dword [ebp - 0x5c], 0
xor eax, eax
mov dword [ebp - 0x44], 7
mov bl, 1
mov dword [ebp - 0x48], edi
mov word [ebp - 0x58], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x64]
mov byte [ebp - 4], bl
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x414907
push 0x19
push str.CurrentMajorVersionNumber
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
call fcn.00406140
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], esi
push ecx
push esi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x60], 4
cmovae eax, dword [ebp - 0x28]
push esi
push eax
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
xor eax, eax
test esi, esi
cmove eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x5c], eax
jb 0x4147b5
push dword [ebp - 0x28]
call fcn.004213f0
add esp, 4
lea ecx, [ebp - 0x28]
test esi, esi
jne 0x414808
push str.CurrentMinorVersionNumber
call fcn.00406240
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], esi
push ecx
push esi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x68], 4
cmovae eax, dword [ebp - 0x28]
push esi
push eax
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
cmove edi, dword [ebp - 0x60]
cmp dword [ebp - 0x14], 8
jb 0x414869
push dword [ebp - 0x28]
call fcn.004213f0
add esp, 4
jmp 0x414869
push str.CurrentVersion
call fcn.00406240
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x64]
lea edx, [ebp - 0x28]
push eax
call fcn.00414640
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
mov esi, eax
jb 0x41483f
push dword [ebp - 0x28]
call fcn.004213f0
add esp, 4
test esi, esi
jne 0x414869
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
movzx eax, word [eax]
sub eax, 0x30
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
movzx edi, word [eax + 4]
sub edi, 0x30
push 0x10
xor eax, eax
mov dword [ebp - 0x14], 7
push str.InstallationType
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00406140
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x64]
lea edx, [ebp - 0x28]
push eax
call fcn.00414640
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
mov esi, eax
jb 0x4148b9
push dword [ebp - 0x28]
call fcn.004213f0
add esp, 4
test esi, esi
jne 0x414907
push 6
push str.Client
push dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00405040
push 6
push str.Server
push dword [ebp - 0x30]
mov ecx, 1
movzx ebx, bl
test eax, eax
push ecx
cmove ebx, ecx
lea ecx, [ebp - 0x40]
call fcn.00405040
test eax, eax
je 0x414905
mov edx, str.Server_Core
lea ecx, [ebp - 0x40]
call fcn.00411160
test al, al
je 0x414907
mov bl, 3
cmp dword [ebp - 0x2c], 8
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x5c]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edi
mov byte [ecx + 0x11a], bl
jb 0x41492a
push dword [ebp - 0x40]
call fcn.004213f0
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x41494f
push dword [ebp - 0x58]
call fcn.004213f0
add esp, 4
mov eax, esi
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.00430d5f
mov esp, ebp
pop ebp
ret