Function at 0x41be00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447d60
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x45f4c8]
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 0x41c037
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.00404410
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 0x41bee5
push dword [ebp - 0x28]
call fcn.00420070
add esp, 4
lea ecx, [ebp - 0x28]
test esi, esi
jne 0x41bf38
push str.CurrentMinorVersionNumber
call fcn.00404510
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 0x41bf99
push dword [ebp - 0x28]
call fcn.00420070
add esp, 4
jmp 0x41bf99
push str.CurrentVersion
call fcn.00404510
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x64]
lea edx, [ebp - 0x28]
push eax
call fcn.0041bd70
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
mov esi, eax
jb 0x41bf6f
push dword [ebp - 0x28]
call fcn.00420070
add esp, 4
test esi, esi
jne 0x41bf99
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.00404410
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x64]
lea edx, [ebp - 0x28]
push eax
call fcn.0041bd70
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
mov esi, eax
jb 0x41bfe9
push dword [ebp - 0x28]
call fcn.00420070
add esp, 4
test esi, esi
jne 0x41c037
push 6
push str.Client
push dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x40]
call fcn.004080e0
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.004080e0
test eax, eax
je 0x41c035
mov edx, str.Server_Core
lea ecx, [ebp - 0x40]
call fcn.00411300
test al, al
je 0x41c037
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 0x41c05a
push dword [ebp - 0x40]
call fcn.00420070
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 0x41c07f
push dword [ebp - 0x58]
call fcn.00420070
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.0042f51f
mov esp, ebp
pop ebp
ret