Function at 0x408840
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4430bb
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x45e070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push eax
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x1a0]
push 0x4456d0
mov dword [ebp - 0x188], esi
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x168], 0
call fcn.004074c0
add esp, 0xc
push 1
push 0x4456cc
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00406760
xor ecx, ecx
mov dword [ebp - 0x168], 2
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x48], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movq qword [ebp - 0x38], xmm0
mov word [eax], cx
mov edx, dword [ebp - 0x18c]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x40892f
mov ecx, dword [ebp - 0x1a0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408925
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408cbe
push edx
push ecx
call fcn.0040fd67
add esp, 8
movups xmm0, xmmword [str.S:_ML__NX___LW_]
xor eax, eax
mov dword [ebp - 0x190], 0
push dword [ebp - 0x16c]
movups xmmword [ebp - 0x30], xmm0
mov word [ebp - 0x1a0], ax
lea eax, [ebp - 0x1b8]
movups xmm0, xmmword [0x4456f4]
push 0x44570c
push eax
mov dword [ebp - 0x18c], 7
movups xmmword [ebp - 0x20], xmm0
call fcn.004074c0
add esp, 0xc
push 2
push 0x445704
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00406760
mov dword [ebp - 0x174], 0
xor ecx, ecx
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x168], 6
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x184], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x174], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
cmp dword [edi + 0x14], 8
mov eax, edi
mov byte [ebp - 4], 5
jb 0x4089e4
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x184]
push eax
call fcn.00406760
mov dword [esi + 0x10], 0
xor ecx, ecx
mov dword [esi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x170]
mov dword [ebp - 0x168], 0xf
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x408a72
mov ecx, dword [ebp - 0x184]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408a68
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408cc3
push edx
push ecx
call fcn.0040fd67
add esp, 8
mov edx, dword [ebp - 0x1a4]
xor eax, eax
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x170], 7
mov word [ebp - 0x184], ax
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x408ad3
mov ecx, dword [ebp - 0x1b8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408ac9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408cc8
push edx
push ecx
call fcn.0040fd67
add esp, 8
push 0x1a
push str.D:_D__GA___NU__A__GA___WD_
mov ecx, esi
call fcn.00406760
push 0x11c
lea eax, [ebp - 0x164]
push 0
push eax
call fcn.00427af0
mov edi, dword [sym.imp.ntdll.dll_VerSetConditionMask]
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x164], 0x11c
mov dword [ebp - 0x160], 6
mov dword [ebp - 0x15c], 2
push 3
push 2
push eax
push eax
mov dword [ebp - 0x50], eax
call edi
push 3
push 1
push edx
push eax
call edi
push 3
push 0x20
push edx
push eax
call edi
push 3
push 0x10
push edx
push eax
call edi
push edx
push eax
push 0x33
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov edi, eax
test edi, edi
jne 0x408b64
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x47e
je 0x408bd2
push 0x118
lea eax, [ebp - 0x160]
push 0
push eax
call fcn.00427af0
add esp, 0xc
mov dword [ebp - 0x164], 0x11c
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x408bbe
cmp dword [ebp - 0x160], 6
ja 0x408bb2
jne 0x408ba9
cmp dword [ebp - 0x15c], 2
jae 0x408bb2
xor eax, eax
cmp edi, eax
cmove eax, edi
jmp 0x408bc0
mov eax, 1
cmp edi, eax
cmove eax, edi
jmp 0x408bc0
mov eax, edi
test eax, eax
je 0x408bd2
push 0xc
push str._A__GA___AC_
mov ecx, esi
call fcn.00406760
push 0x11c
lea eax, [ebp - 0x164]
push 0
push eax
call fcn.00427af0
mov edi, dword [sym.imp.ntdll.dll_VerSetConditionMask]
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x164], 0x11c
mov dword [ebp - 0x160], 6
mov dword [ebp - 0x15c], 0
push 3
push 2
push eax
push eax
mov dword [ebp - 0x50], eax
call edi
push 3
push 1
push edx
push eax
call edi
push 3
push 0x20
push edx
push eax
call edi
push 3
push 0x10
push edx
push eax
call edi
push edx
push eax
push 0x33
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x408c6b
lea ecx, [ebp - 0x30]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408c50
sub ecx, edx
lea eax, [ebp - 0x30]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406760
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x408ca1
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408c97
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408ccd
push edx
push ecx
call fcn.0040fd67
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040fcd6
mov esp, ebp
pop ebp
ret
call fcn.0042ddfe
call fcn.0042ddfe
call fcn.0042ddfe
call fcn.0042ddfe
int3