Function at 0x4038f0
Capabilities:
Check os version

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4327b0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x180
mov eax, dword [0x44506c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x16c], esi
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40398e
xorps xmm0, xmm0
mov dword [ebp - 0x170], 0
lea ecx, [ebp - 0x190]
push ecx
movups xmmword [ebp - 0x190], xmm0
movups xmmword [ebp - 0x180], xmm0
call eax
mov eax, dword [ebp - 0x190]
cmp ax, 6
je 0x40398a
cmp ax, 9
jne 0x40398e
mov al, 1
jmp 0x403990
xor al, al
mov ecx, 0x440944
mov dword [ebp - 0x34], 0
test al, al
mov dword [ebp - 0x30], 0xf
mov edx, 0x440940
mov byte [ebp - 0x44], 0
cmove edx, ecx
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4039b6
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.00401510
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push 0
push 0x4404fd
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00401510
lea eax, [ebp - 0x168]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x168], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.default.0x403aa0
cmp dword [ebp - 0x158], 2
jne case.default.0x403aa0
cmp dword [ebp - 0x164], 4
jbe case.default.0x403aa0
lea eax, [ebp - 0x15c]
push eax
lea edx, [ebp - 0x160]
lea ecx, [ebp - 0x164]
call fcn.00403850
add esp, 4
cmp dword [ebp - 0x164], 0xa
jne 0x403a88
cmp dword [ebp - 0x160], 0
jne case.default.0x403aa0
cmp byte [ebp - 0x4e], 1
mov edx, str.Windows_10
mov eax, str.Windows_Server_Technical_Preview
cmovne edx, eax
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403a75
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00401510
cmp dword [ebp - 0x164], 6
jne 0x403ae5
mov eax, dword [ebp - 0x160]
cmp eax, 3
ja case.default.0x403aa0
jmp dword [eax*4 + 0x403c00]
mov eax, str.Windows_Vista
mov ecx, str.Windows_Server_2008
jmp 0x403ad5
mov eax, str.Windows_7
mov ecx, str.Windows_Server_2008_R2
jmp 0x403ad5
mov eax, str.Windows_8
mov ecx, str.Windows_Server_2012
jmp 0x403ad5
mov eax, str.Windows_8.1
mov ecx, str.Windows_Server_2012_R2
cmp byte [ebp - 0x4e], 1
cmovne eax, ecx
lea ecx, [ebp - 0x2c]
push eax
call fcn.00409280
cmp dword [ebp - 0x164], 5
jne case.default.0x403aa0
mov eax, dword [ebp - 0x160]
cmp eax, 1
jne 0x403b17
push 0xa
push str.Windows_XP
lea ecx, [ebp - 0x2c]
call fcn.00401510
cmp dword [ebp - 0x164], 5
jne case.default.0x403aa0
mov eax, dword [ebp - 0x160]
cmp eax, 2
jne case.default.0x403aa0
push 0x13
push str.Windows_Server_2003
lea ecx, [ebp - 0x2c]
call fcn.00401510
push 1
push 0x440a24
lea ecx, [ebp - 0x2c]
call fcn.00401600
cmp dword [ebp - 0x30], 0x10
mov ecx, eax
push dword [ebp - 0x34]
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.00401600
push eax
mov ecx, esi
call fcn.00401320
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x403b92
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, 0x1000
jb 0x403b89
test cl, 0x1f
jne 0x403bfa
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x403bfa
sub ecx, eax
cmp ecx, 4
jb 0x403bfa
cmp ecx, 0x23
ja 0x403bfa
mov ecx, eax
push ecx
call fcn.00414f7a
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp eax, 0x10
jb 0x403bda
mov ecx, dword [ebp - 0x44]
inc eax
cmp eax, 0x1000
jb 0x403bd1
test cl, 0x1f
jne 0x403bfa
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x403bfa
sub ecx, eax
cmp ecx, 4
jb 0x403bfa
cmp ecx, 0x23
ja 0x403bfa
mov ecx, eax
push ecx
call fcn.00414f7a
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00414a5e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0041e53f
nop
cmpsd dword [esi], dword es:[edi]
cmp al, byte [eax]
mov bl, 0x3a
inc eax
add byte [edi - 0x34ffbfc6], bh
cmp al, byte [eax]