Function at 0x40db10
Capabilities:
Check os version
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x5a0
mov esi, esp
mov dword [esi + 0x588], ebp
mov dword [esi + 0x58c], esp
mov dword [esi + 0x598], 0xffffffff
mov dword [esi + 0x594], 0x40f140
mov edx, dword [ebp + 0xc]
lea eax, [esi + 0x590]
mov ecx, dword fs:[0]
mov dword [esi + 0x590], ecx
mov dword fs:[0], eax
lea ecx, [edx + 0x30]
mov eax, dword [edx + 0x38]
mov edi, dword [edx + 0x34]
mov dword [esi + 0x34], ecx
shl eax, 4
add eax, edi
mov dword [esi + 0x1c], eax
cmp edi, dword [esi + 0x1c]
mov dword [esi + 0x598], 2
je 0x40dbbd
lea ecx, [esi + 0xc0]
mov edx, edi
mov byte [esi + 0x10], 1
mov byte [esi + 0x11], 1
mov dword [esi + 0x20], edi
call fcn.0040d4f0
cmp dword [esi + 0xc0], 3
jne 0x40df07
mov edi, dword [esi + 0x20]
mov edx, dword [ebp + 0xc]
add edi, 0x10
cmp edi, dword [esi + 0x1c]
mov dword [esi + 0x598], 2
jne 0x40db80
mov byte [esi + 0x10], 1
mov byte [esi + 0x11], 1
push edx
lea eax, [esi + 0xc0]
push eax
call fcn.0040d8e0
add esp, 8
mov edi, dword [esi + 0xc0]
lea eax, [esi + 0xc4]
cmp edi, 3
jne 0x40df2d
lea edi, [esi + 0x1d0]
push 0x48
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [esi + 0x188]
push 0x48
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x34]
mov eax, dword [eax + 0x38]
test eax, eax
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
je 0x40e028
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x38]
shl ecx, 4
mov edx, eax
add ecx, eax
mov dword [esi + 0x1c], ecx
jmp 0x40dc4f
mov edx, dword [esi + 0x20]
add edx, 0x10
cmp edx, dword [esi + 0x1c]
je 0x40e028
mov ecx, dword [edx + 8]
mov eax, dword [edx + 0xc]
mov dword [esi + 0x598], 3
cmp eax, ecx
ja 0x40e6d5
mov ecx, dword [edx + 4]
mov dword [esi + 0x20], edx
mov byte [esi + 0xe], 1
mov byte [esi + 0xf], 1
push eax
push ecx
lea eax, [esi + 0xc0]
push eax
call fcn.004e5fd0
add esp, 0xc
cmp dword [esi + 0xc0], 0
jne 0x40e6ee
mov ecx, dword [esi + 0xc8]
mov eax, dword [esi + 0xc4]
cmp ecx, 0xf
je 0x40dd50
cmp ecx, 5
jne 0x40dc40
movzx ecx, byte [eax]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x72
jne 0x40dc40
movzx ecx, byte [eax + 1]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x61
jne 0x40dc40
movzx ecx, byte [eax + 2]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x6e
jne 0x40dc40
movzx ecx, byte [eax + 3]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x67
jne 0x40dc40
movzx eax, byte [eax + 4]
mov ecx, eax
add cl, 0xbf
cmp cl, 0x1a
setb cl
shl cl, 5
or cl, al
cmp cl, 0x65
jne 0x40dc40
jmp 0x40e104
movzx ecx, byte [eax]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x61
jne 0x40dc40
movzx ecx, byte [eax + 1]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x63
jne 0x40dc40
movzx ecx, byte [eax + 2]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x63
jne 0x40dc40
movzx ecx, byte [eax + 3]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x65
jne 0x40dc40
movzx ecx, byte [eax + 4]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x70
jne 0x40dc40
movzx ecx, byte [eax + 5]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x74
jne 0x40dc40
movzx ecx, byte [eax + 6]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x2d
jne 0x40dc40
movzx ecx, byte [eax + 7]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x65
jne 0x40dc40
movzx ecx, byte [eax + 8]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x6e
jne 0x40dc40
movzx ecx, byte [eax + 9]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x63
jne 0x40dc40
movzx ecx, byte [eax + 0xa]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x6f
jne 0x40dc40
movzx ecx, byte [eax + 0xb]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x64
jne 0x40dc40
movzx ecx, byte [eax + 0xc]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x69
jne 0x40dc40
movzx ecx, byte [eax + 0xd]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x6e
jne 0x40dc40
movzx eax, byte [eax + 0xe]
mov ecx, eax
add cl, 0xbf
cmp cl, 0x1a
setb cl
shl cl, 5
or cl, al
cmp cl, 0x67
jne 0x40dc40
jmp 0x40e104
lea edi, [esi + 0x4c4]
push 0xc4
lea eax, [esi + 0xc0]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0xc4
push edi
push dword [ebp + 8]
jmp 0x40df7e
lea ecx, [esi + 0x1d0]
push 0x48
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [esi + 0x10c]
lea ecx, [esi + 0x2d4]
push 0x78
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ebx, dword [ebp + 8]
mov dword [ebx], edi
lea eax, [ebx + 4]
push 0x48
lea ecx, [esi + 0x1d0]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add ebx, 0x4c
push 0x78
lea ecx, [esi + 0x2d4]
push ecx
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, 1
mov eax, dword [eax]
lea edx, [eax - 0x80000000]
cmp edx, 4
cmovb ecx, edx
cmp ecx, 2
je 0x40dfc7
cmp ecx, 1
jne 0x40dfff
test eax, eax
je 0x40dfff
push 1
push eax
mov eax, dword [ebp + 0x10]
push dword [eax + 4]
call fcn.00402cf0
add esp, 0xc
mov dword [esi + 0x598], 0xffffffff
jmp 0x40dfff
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x598], 1
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esi + 0x1c], ecx
push ecx
mov dword [esi + 0x20], eax
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx + 4]
test eax, eax
je 0x40dfff
push dword [ecx + 8]
push eax
push dword [esi + 0x1c]
call fcn.00402cf0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x598], 0xffffffff
call fcn.0040cc90
mov eax, dword [esi + 0x590]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esi + 0x14]
lea ecx, [esi + 0xc0]
mov dword [esi + 0x14], str.accept_encodinggzip
mov dword [esi + 0x40], 0x50277f
mov dword [esi + 0xc0], 0x502674
mov dword [esi + 0xc4], 2
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x44], 4
mov dword [esi + 0xd0], 0
mov byte [esi + 0xe], 1
mov byte [esi + 0xf], 1
mov dword [esi + 0x598], 3
mov dword [esi + 0x70], eax
lea eax, [esi + 0x40]
mov dword [esi + 0x74], 0x41f100
mov dword [esi + 0x78], eax
lea eax, [esi + 0x70]
mov dword [esi + 0x7c], 0x41f100
mov dword [esi + 0xc8], eax
mov dword [esi + 0xcc], 2
lea eax, [esi + 0x50]
push ecx
push eax
call fcn.004e29d0
add esp, 8
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 0x34]
cmp ecx, dword [eax]
jne 0x40e0e3
mov dword [esi + 0x598], 8
push ecx
push eax
call fcn.0041d150
add esp, 8
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x34]
mov ecx, dword [eax + 0x38]
jmp 0x40e0e9
mov eax, dword [ebp + 0xc]
mov edx, dword [esi + 0x38]
movsd xmm0, qword [esi + 0x50]
movsd xmm1, qword [esi + 0x58]
shl ecx, 4
movsd qword [edx + ecx + 8], xmm1
movsd qword [edx + ecx], xmm0
inc dword [eax + 0x38]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
mov eax, ecx
cmp edx, 0x3b9aca00
jne 0x40e249
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 0x40]
cmp edx, 0x3b9aca00
jne 0x40e246
mov dword [esi + 0x48], 0x3b9aca00
mov eax, dword [ecx + 0x14]
cmp dword [eax + 0x58], 0
jne 0x40e35d
mov edx, dword [ebp + 0x10]
movsd xmm2, qword [ecx + 0x38]
mov byte [esi + 0xe], 0
mov byte [esi + 0xf], 0
mov dword [esi + 0x598], 3
movsd xmm1, qword [edx + 8]
movsd qword [esi + 0xa8], xmm2
movsd xmm2, qword [ecx + 0x28]
mov eax, dword [edx + 0x10]
movsd xmm0, qword [edx]
lea edx, [esi + 0x50]
movsd qword [esi + 0x58], xmm1
movsd xmm1, qword [ecx + 0x30]
movsd qword [esi + 0x98], xmm2
movsd xmm2, qword [ecx + 0x18]
mov dword [esi + 0x60], eax
lea eax, [esi + 0x188]
movsd qword [esi + 0x50], xmm0
mov dword [esi + 0x64], eax
lea eax, [esi + 0x40]
mov dword [esi + 0x68], eax
lea eax, [esi + 0x70]
movsd qword [esi + 0xa0], xmm1
movsd xmm1, qword [ecx + 0x20]
movsd qword [esi + 0x88], xmm2
movsd xmm2, qword [ecx]
movsd qword [esi + 0x90], xmm1
movsd xmm1, qword [ecx + 0x10]
movsd qword [esi + 0x70], xmm2
movsd qword [esi + 0x80], xmm1
movsd xmm1, qword [ecx + 8]
lea ecx, [esi + 0xc0]
movsd qword [esi + 0x78], xmm1
push eax
call fcn.0040e960
add esp, 4
mov edi, dword [esi + 0xc0]
cmp edi, 3
jne 0x40e680
lea edi, [esi + 0x408]
push 0xbc
lea eax, [esi + 0xc4]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movss xmm0, dword [esi + 0x180]
lea eax, [esi + 0x218]
movaps xmmword [esi + 0x20], xmm0
push 0xbc
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
movdqa xmm0, xmmword [esi + 0x20]
add esp, 0xc
jmp 0x40e54e
add eax, 0x38
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 0x20], edx
mov byte [esi + 0xe], 1
mov byte [esi + 0xf], 1
mov dword [esi + 0x598], 3
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x34], eax
call fcn.004c2ac0
mov dword [esi + 0xc0], eax
mov dword [esi + 0xc4], edx
mov dword [esi + 0xc8], ecx
mov byte [esi + 0xe], 1
mov byte [esi + 0xf], 1
push dword [esi + 0x20]
push dword [esi + 0x34]
push dword [esi + 0x1c]
lea eax, [esi + 0xc0]
push eax
call fcn.004c2b70
add esp, 0x10
cmp ecx, 0x3b9aca00
jne 0x40e344
movzx eax, byte [0x5781b1]
push 1
push 0x1b
call fcn.00402ce0
add esp, 8
test eax, eax
je 0x40e73a
mov ecx, dword [ebp + 8]
mov dword [eax + 0x17], 0x6465776f
mov dword [eax + 0x14], 0x6f6c6672
mov dword [eax + 0x10], 0x65766f20
mov dword [eax + 0xc], 0x656e696c
mov dword [eax + 8], 0x64616564
mov dword [eax + 4], 0x20747365
mov dword [eax], 0x75716552
mov dword [ecx], 2
mov dword [ecx + 4], 2
mov dword [ecx + 0x4c], 0x1b
mov dword [ecx + 0x50], eax
mov eax, dword [esi + 0x198]
mov dword [ecx + 0x54], 0x1b
mov dword [ecx + 0x58], 0
mov byte [ecx + 0x60], 8
test eax, eax
je 0x40df86
push 1
push eax
push dword [esi + 0x19c]
call fcn.00402cf0
jmp 0x40df83
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x14]
cmp dword [eax + 0x58], 0
je 0x40e13e
mov ecx, dword [ecx + 0x10]
lock inc dword [ecx]
jle 0x40e74e
lock inc dword [eax]
jle 0x40e74e
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], eax
mov edx, dword [ebp + 0x10]
mov ecx, dword [eax + 0x54]
mov eax, dword [eax + 0x58]
movsd xmm0, qword [edx]
movsd xmm1, qword [edx + 8]
lea eax, [ecx + eax*8]
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], eax
mov eax, dword [edx + 0x10]
movsd qword [esi + 0xc8], xmm1
movsd qword [esi + 0xc0], xmm0
mov dword [esi + 0xd0], eax
lea eax, [esi + 0x188]
mov dword [esi + 0xd4], eax
lea eax, [esi + 0x40]
mov dword [esi + 0xd8], eax
movzx eax, byte [0x5781b1]
push 4
push 0x1c
call fcn.00402ce0
add esp, 8
test eax, eax
je 0x40e722
movsd xmm0, qword [esi + 0xd0]
mov ecx, dword [esi + 0xd8]
movsd xmm1, qword [esi + 0xc8]
mov byte [esi + 0x12], 0
mov dword [esi + 0x598], 6
movsd qword [eax + 0x10], xmm0
movsd xmm0, qword [esi + 0xc0]
mov dword [eax + 0x18], ecx
lea ecx, [esi + 0x50]
movsd qword [eax + 8], xmm1
mov dword [esi + 0xb0], ecx
mov dword [esi + 0xb4], 0x502784
mov dword [esi + 0xb8], eax
mov dword [esi + 0xbc], 0x5027a0
lea ecx, [esi + 0xb0]
movsd qword [eax], xmm0
mov eax, dword [ebp + 0xc]
movsd xmm1, qword [eax + 0x30]
movsd xmm2, qword [eax + 0x28]
movsd xmm0, qword [eax + 0x38]
movsd qword [esi + 0xa0], xmm1
movsd xmm1, qword [eax + 0x20]
movsd qword [esi + 0x98], xmm2
movsd xmm2, qword [eax + 0x18]
movsd qword [esi + 0xa8], xmm0
movsd qword [esi + 0x90], xmm1
movsd xmm1, qword [eax + 0x10]
movsd qword [esi + 0x88], xmm2
movsd xmm2, qword [eax]
movsd qword [esi + 0x80], xmm1
movsd xmm1, qword [eax + 8]
lea eax, [esi + 0x70]
movsd qword [esi + 0x70], xmm2
movsd qword [esi + 0x78], xmm1
push eax
push ecx
lea eax, [esi + 0xc0]
push eax
call fcn.004293d0
add esp, 0xc
mov edi, dword [esi + 0xc0]
cmp edi, 3
jne 0x40e5a3
lea edi, [esi + 0x34c]
push 0xbc
lea eax, [esi + 0xc4]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movss xmm0, dword [esi + 0x180]
lea eax, [esi + 0x218]
movaps xmmword [esi + 0x20], xmm0
push 0xbc
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0x14]
lock dec dword [eax]
jne 0x40e523
lea eax, [esi + 0x14]
mov dword [esi + 0x598], 5
push eax
call fcn.00417d10
add esp, 4
mov eax, dword [esi + 0x18]
lock dec dword [eax]
jne 0x40e549
lea eax, [esi + 0x18]
mov byte [esi + 0xe], 0
mov byte [esi + 0xf], 0
mov dword [esi + 0x598], 3
push eax
call fcn.004174f0
add esp, 4
movdqa xmm0, xmmword [esi + 0x20]
movd edi, xmm0
movdqa xmmword [esi + 0x20], xmm0
movzx eax, di
cmp eax, 0x18f
jbe 0x40e62f
lea eax, [esi + 0x218]
push 0xbc
push eax
mov ebx, dword [ebp + 8]
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movaps xmm0, xmmword [esi + 0x20]
movss dword [ebx + 0xbc], xmm0
mov word [ebx + 0xc0], di
mov eax, dword [esi + 0x198]
test eax, eax
jne 0x40e66a
jmp 0x40e011
lea ecx, [esi + 0x34c]
push 0xbc
lea eax, [esi + 0xc4]
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp + 8]
mov ebx, dword [esi + 0x180]
mov dword [ecx], edi
lea eax, [ecx + 4]
mov edi, ecx
push 0xbc
lea ecx, [esi + 0x34c]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0x14]
mov dword [edi + 0xc0], ebx
lock dec dword [eax]
jne 0x40e607
lea eax, [esi + 0x14]
mov dword [esi + 0x598], 4
push eax
call fcn.00417d10
add esp, 4
mov eax, dword [esi + 0x18]
lock dec dword [eax]
jne 0x40e65c
lea eax, [esi + 0x18]
mov byte [esi + 0xe], 0
mov byte [esi + 0xf], 0
mov dword [esi + 0x598], 3
push eax
call fcn.004174f0
add esp, 4
jmp 0x40e65c
mov edi, dword [ebp + 8]
lea ecx, [esi + 0x218]
lea eax, [edi + 4]
push 0xbc
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movaps xmm0, xmmword [esi + 0x20]
movss dword [edi + 0xc0], xmm0
mov dword [edi], 3
mov eax, dword [esi + 0x198]
test eax, eax
je 0x40e011
push 1
push eax
push dword [esi + 0x19c]
call fcn.00402cf0
add esp, 0xc
jmp 0x40e011
lea ecx, [esi + 0x408]
push 0xbc
lea eax, [esi + 0xc4]
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp + 8]
mov ebx, dword [esi + 0x180]
mov dword [ecx], edi
lea eax, [ecx + 4]
mov edi, ecx
push 0xbc
lea ecx, [esi + 0x408]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [edi + 0xc0], ebx
mov eax, dword [esi + 0x198]
test eax, eax
jne 0x40e66a
jmp 0x40e011
mov byte [esi + 0xe], 1
mov byte [esi + 0xf], 1
push 0x5026e0
push ecx
push eax
call fcn.00500430
add esp, 0xc
jmp 0x40e74e
movsd xmm0, qword [esi + 0xc4]
mov byte [esi + 0xe], 1
mov byte [esi + 0xf], 1
lea eax, [esi + 0x70]
movsd qword [esi + 0x70], xmm0
push 0x50270c
push 0x5025e0
push eax
push 0x1a
push 0x5026f0
call fcn.00500340
add esp, 0x14
jmp 0x40e74e
mov dword [esi + 0x598], 7
push 0x1c
push 4
call fcn.00500210
add esp, 8
jmp 0x40e74e
mov byte [esi + 0xe], 1
mov byte [esi + 0xf], 1
push 0x1b
push 1
call fcn.00500210
add esp, 8
ud2