Function at 0x410230
Capabilities:
Check os version
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484eb1
mov eax, dword fs:[0]
push eax
mov eax, 0x1114
call fcn.004839d0
mov eax, dword [0x4ab00c]
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 eax, dword [ebp - 0x111c]
mov dword [ebp - 0x111c], eax
xor eax, eax
mov dword [ebp - 0x111c], 0x4adec0
mov dword [0x4adee0], 0
mov dword [0x4adee4], 7
mov word [0x4aded0], ax
mov dword [ebp - 4], eax
mov dword [0x4adef8], eax
mov dword [0x4adefc], 7
mov word [0x4adee8], ax
mov dword [0x4adf10], eax
mov dword [0x4adf14], 7
mov word [0x4adf00], ax
mov dword [0x4adf28], eax
mov dword [0x4adf2c], 7
mov word [0x4adf18], ax
mov dword [0x4adf40], eax
mov dword [0x4adf44], 7
mov word [0x4adf30], ax
mov byte [ebp - 4], 4
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov word [0x4adf48], ax
mov word [ebp - 0xd8], ax
lea eax, [ebp - 0xd8]
push 0x64
push eax
push str.PROCESSOR_ARCHITECTURE
call esi
test eax, eax
je 0x41031b
cmp eax, 0x64
jbe 0x410324
xor eax, eax
mov word [ebp - 0xd8], ax
lea eax, [ebp - 0xd8]
push eax
push 0x493304
call fcn.0046ff51
add esp, 8
test eax, eax
sete byte [0x4adf48]
test eax, eax
je 0x41039b
xor eax, eax
mov word [ebp - 0xd8], ax
lea eax, [ebp - 0xd8]
push 0x64
push eax
push str.PROCESSOR_ARCHITEW6432
call esi
test eax, eax
je 0x410367
cmp eax, 0x64
jbe 0x410370
xor eax, eax
mov word [ebp - 0xd8], ax
lea eax, [ebp - 0xd8]
push eax
push 0x493304
call fcn.0046ff51
movzx ecx, byte [0x4adf49]
add esp, 8
test eax, eax
mov edx, 1
cmove ecx, edx
mov byte [0x4adf49], cl
lea eax, [ebp - 0x1118]
xorps xmm0, xmm0
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
movups xmmword [0x4adec0], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41080a
xor ebx, ebx
mov dword [ebp - 0x10f0], 7
xorps xmm0, xmm0
mov dword [ebp - 0x10e8], ebx
xor esi, esi
mov dword [ebp - 0x10e0], ebx
mov dword [ebp - 0x10e4], ebx
movups xmmword [ebp - 0x1114], xmm0
mov dword [ebp - 0x10f4], ebx
mov word [ebp - 0x1104], ax
mov dword [ebp - 0x10ec], eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x10d8]
mov dword [ebp - 0x10dc], 0x1000
mov ecx, 0x1000
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x410421
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x10dc]
push eax
lea eax, [ebp - 0x10d8]
push eax
push ecx
push ecx
push 0x49395c
push dword [ebp - 0x1118]
call edi
test eax, eax
je 0x41045c
xor eax, eax
mov word [ebp - 0x10d8], ax
lea ecx, [ebp - 0x10d8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410465
sub ecx, edx
sar ecx, 1
je 0x410480
push ecx
lea eax, [ebp - 0x10d8]
push eax
jmp 0x410487
push 7
push str.Windows
mov ecx, 0x4adf18
call fcn.00402430
cmp dword [0x4adf2c], 8
mov eax, 0x4adf18
push dword [0x4adf28]
cmovae eax, dword [0x4adf18]
mov ecx, 0x4adf30
push eax
call fcn.00402430
mov dword [ebp - 0x10dc], 0x1000
lea eax, [ebp - 0x10d8]
mov ecx, 0x1000
nop word [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4104d0
lea eax, [ebp - 0x10dc]
push eax
lea eax, [ebp - 0x10d8]
push eax
push ecx
push ecx
push str.CurrentBuildNumber
push dword [ebp - 0x1118]
call edi
test eax, eax
je 0x410505
xor eax, eax
mov word [ebp - 0x10d8], ax
lea ecx, [ebp - 0x10d8]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410510
sub ecx, edx
sar ecx, 1
je 0x410547
push ecx
lea eax, [ebp - 0x10d8]
mov ecx, 0x4adf00
push eax
call fcn.00402430
lea eax, [ebp - 0x10d8]
push eax
call fcn.00471125
add esp, 4
mov dword [0x4adec8], eax
mov dword [ebp - 0x10dc], 0x1000
lea eax, [ebp - 0x10d8]
mov ecx, 0x1000
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x410560
lea eax, [ebp - 0x10dc]
push eax
lea eax, [ebp - 0x10d8]
push eax
push ecx
push ecx
push str.CurrentVersion
push dword [ebp - 0x1118]
call edi
test eax, eax
je 0x410595
xor eax, eax
mov word [ebp - 0x10d8], ax
lea ecx, [ebp - 0x10d8]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4105a0
sub ecx, edx
sar ecx, 1
je 0x410606
lea eax, [ebp - 0x10d8]
push eax
call fcn.00471125
lea edx, [ebp - 0x10d8]
add esp, 4
mov ebx, eax
lea esi, [edx + 2]
xor ecx, ecx
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4105d0
sub edx, esi
sar edx, 1
test edx, edx
jle 0x410604
nop dword [eax]
nop word [eax + eax]
cmp word [ebp + ecx*2 - 0x10d8], 0x2e
je 0x4107c7
inc ecx
cmp ecx, edx
jl 0x4105f0
xor esi, esi
lea eax, [ebp - 0x10dc]
mov dword [ebp - 0x10dc], 4
push eax
lea eax, [ebp - 0x10e8]
push eax
push 0
push 0
push str.CurrentMajorVersionNumber
push dword [ebp - 0x1118]
call edi
test eax, eax
jne 0x4107e0
lea eax, [ebp - 0x10dc]
mov dword [ebp - 0x10dc], 4
push eax
lea eax, [ebp - 0x10e0]
push eax
push 0
push 0
push str.CurrentMinorVersionNumber
push dword [ebp - 0x1118]
call edi
mov ecx, dword [ebp - 0x10e0]
xor edx, edx
test eax, eax
mov eax, dword [ebp - 0x10e8]
cmovne ecx, edx
mov dword [ebp - 0x10e0], ecx
cmp eax, 6
ja 0x41068d
jne 0x4107ea
cmp ecx, 3
jbe 0x4107ea
mov ebx, eax
mov dword [ebp - 0x10dc], 0x1000
mov esi, ecx
lea eax, [ebp - 0x10d8]
mov ecx, 0x1000
mov byte [eax], dl
lea eax, [eax + 1]
sub ecx, 1
jne 0x4106a6
lea eax, [ebp - 0x10dc]
push eax
lea eax, [ebp - 0x10d8]
push eax
push ecx
push ecx
push str.ReleaseId
push dword [ebp - 0x1118]
call edi
test eax, eax
je 0x4106da
xor eax, eax
mov word [ebp - 0x10d8], ax
lea ecx, [ebp - 0x10d8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4106e3
sub ecx, edx
sar ecx, 1
je 0x410706
push ecx
lea eax, [ebp - 0x10d8]
mov ecx, 0x4adee8
push eax
call fcn.00402430
mov dword [ebp - 0x10dc], 0x1000
lea eax, [ebp - 0x10d8]
mov ecx, 0x1000
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x410720
lea eax, [ebp - 0x10dc]
push eax
lea eax, [ebp - 0x10d8]
push eax
push ecx
push ecx
push str.DisplayVersion
push dword [ebp - 0x1118]
call edi
test eax, eax
je 0x410755
xor eax, eax
mov word [ebp - 0x10d8], ax
lea ecx, [ebp - 0x10d8]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410760
sub ecx, edx
sar ecx, 1
je 0x410783
push ecx
lea eax, [ebp - 0x10d8]
mov ecx, 0x4aded0
push eax
call fcn.00402430
lea eax, [ebp - 0x10dc]
mov dword [ebp - 0x10dc], 4
push eax
lea eax, [ebp - 0x10e4]
push eax
push 0
push 0
push 0x493a68
push dword [ebp - 0x1118]
call edi
mov ecx, dword [ebp - 0x10e4]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x10e4], ecx
mov dword [0x4adecc], ecx
jmp 0x4107ea
lea eax, [ebp - 0x10d6]
lea eax, [eax + ecx*2]
push eax
call fcn.00471125
add esp, 4
mov esi, eax
jmp 0x410606
mov dword [ebp - 0x10e8], 0
test ebx, ebx
je 0x4107fa
mov dword [0x4adec0], ebx
mov dword [0x4adec4], esi
push dword [ebp - 0x1118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 4
mov eax, dword [0x4adec0]
cmp eax, 0xa
jne 0x41085b
cmp dword [0x4adec8], 0x55f0
jl 0x410879
push ecx
push 0x493a70
mov ecx, 0x4adf18
call fcn.0040a4e0
mov esi, eax
cmp esi, 0xffffffff
je 0x410879
push 3
push esi
mov ecx, 0x4adf18
call fcn.00402150
push 3
push 0x493a78
push esi
mov ecx, 0x4adf18
call fcn.00468750
mov eax, dword [0x4adec0]
test eax, eax
jne 0x410879
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
movzx eax, ax
shr eax, 8
mov dword [0x4adec0], ecx
mov dword [0x4adec4], eax
mov eax, 0x4adec0
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.0046b9f0
mov esp, ebp
pop ebp
ret