Function at 0x403130
Capabilities:
Access peb ldr_data
Check os version
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x58ba0a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
mov eax, dword [ebp + 8]
mov dword [esp + 0x30], 0
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0xc]
cmp ecx, 6
push ebx
push esi
push edi
ja case.0x40316a.0
jmp dword [ecx*4 + 0x403ab4]
mov eax, dword [eax + 0x70]
jmp 0x403182
mov eax, dword [eax + 0x74]
jmp 0x403182
mov eax, dword [eax + 0x6c]
jmp 0x403182
xor eax, eax
mov ecx, dword [0x619880]
mov ebx, dword [eax + 0xcc]
push 0
push ecx
mov ecx, 0x5cfd78
mov dword [esp + 0x60], ebx
call fcn.00462e90
mov edi, dword [eax + 0x40]
mov edx, dword [0x619c48]
mov dword [esp + 0x60], eax
mov eax, dword [edx + 0x34]
mov ecx, 0x619c48
mov dword [esp + 0x64], edi
call eax
mov esi, eax
mov edx, dword [esi]
mov eax, dword [edx + 0x90]
mov ecx, esi
call eax
mov ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esi]
imul ecx, ecx, 0xffffff9c
mov eax, dword [edx + 0x90]
mov dword [esp + 0x10], ecx
mov ecx, esi
fild dword [esp + 0x10]
fstp dword [esp + 0xc]
call eax
sub eax, 0x96
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov esi, 0x5cf904
mov dword [esp + 0x40], esi
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fstp dword [esp + 0x44]
fld dword [esp + 0xc]
fstp dword [esp + 0x48]
mov dword [esp + 0xcc], 0
fldz
mov eax, dword [ebx + 0x20]
push ecx
fstp dword [esp]
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x54]
push edx
push eax
call fcn.0047fd50
mov byte [esp + 0xcc], 1
fld dword [eax + 4]
fstp dword [esp + 0x44]
fld dword [eax + 8]
fstp dword [esp + 0x48]
mov byte [esp + 0xcc], 0
fldz
mov dword [esp + 0x4c], esi
fst dword [esp + 0x30]
mov dword [esp + 0x2c], esi
fstp dword [esp + 0x34]
mov byte [esp + 0xcc], 2
lea ebx, [edi + 0x40a0]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], ebx
mov edi, edi
mov eax, dword [esp + 0xc]
mov edx, dword [0x619c48]
push eax
mov eax, dword [edx + 0xa0]
push 0x5cfdb0
push 0x10
lea ecx, [esp + 0x98]
push ecx
push 0x619c48
call eax
add esp, 0x14
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0x6c]
call dword [0x58e220]
mov byte [esp + 0xcc], 3
lea edx, [esp + 0x68]
push edx
mov eax, ebx
call fcn.00460ca0
test ebx, ebx
mov esi, eax
mov dword [esp + 0x88], esi
jne 0x4032f3
call dword [0x58e3e0]
cmp esi, dword [ebx + 4]
mov dword [esp + 0x84], ebx
je 0x40331e
add esi, 0xc
lea eax, [esp + 0x68]
push esi
push eax
call dword [0x58e268]
add esp, 8
test al, al
jne 0x40331e
lea eax, [esp + 0x84]
jmp 0x40332d
mov ecx, dword [ebx + 4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x1c]
mov esi, dword [eax]
test esi, esi
mov edx, dword [eax + 4]
mov eax, dword [ebx + 4]
mov dword [esp + 0x28], edx
mov dword [esp + 0xa0], eax
je 0x403348
cmp esi, ebx
je 0x40334e
call dword [0x58e3e0]
mov ecx, dword [esp + 0xa0]
cmp dword [esp + 0x28], ecx
jne 0x40335f
xor esi, esi
jmp 0x40337f
test esi, esi
jne 0x403369
call dword [0x58e3e0]
mov edx, dword [esp + 0x28]
cmp edx, dword [esi + 4]
jne 0x403378
call dword [0x58e3e0]
mov eax, dword [esp + 0x28]
mov esi, dword [eax + 0x28]
mov byte [esp + 0xcc], 2
lea ecx, [esp + 0x68]
call dword [0x58e21c]
test esi, esi
je 0x40353e
mov edx, dword [esi + 8]
mov edx, dword [edx + 0x10]
lea ecx, [esi + 8]
lea eax, [esp + 0x40]
push eax
call edx
mov eax, dword [esp + 0xc]
mov edx, dword [0x619c48]
push eax
mov eax, dword [edx + 0xa0]
push 0x5cfdb8
push 0x10
lea ecx, [esp + 0x98]
push ecx
push 0x619c48
call eax
add esp, 0x14
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0xa8]
call dword [0x58e220]
mov byte [esp + 0xcc], 4
lea edx, [esp + 0x14]
lea esi, [edi + 0x40b8]
push edx
lea ebx, [esp + 0xa8]
call fcn.004b3390
mov ebx, dword [esp + 0x14]
test ebx, ebx
mov eax, dword [esi + 4]
mov dword [esp + 0x50], eax
je 0x40341a
cmp ebx, esi
je 0x403420
call dword [0x58e3e0]
mov esi, dword [esp + 0x18]
cmp esi, dword [esp + 0x50]
jne 0x40342e
xor esi, esi
jmp 0x403446
test ebx, ebx
jne 0x403438
call dword [0x58e3e0]
cmp esi, dword [ebx + 4]
jne 0x403443
call dword [0x58e3e0]
mov esi, dword [esi + 0x28]
mov byte [esp + 0xcc], 2
lea ecx, [esp + 0xa4]
call dword [0x58e21c]
test esi, esi
je 0x40353e
fld dword [esp + 0x44]
fstp dword [esp + 0x30]
fld dword [esp + 0x48]
fstp dword [esp + 0x34]
call dword [0x58e3e8]
mov dword [esp + 0x5c], eax
fild dword [esp + 0x5c]
mov ecx, dword [esp + 0xc]
and ecx, 0x80000001
fdiv qword [0x5ec708]
fld qword [0x5dffe8]
fldz
fsub st(1), st(0)
fxch st(2)
fmulp st(1)
faddp st(1)
fstp dword [esp + 0x38]
jns 0x4034ac
dec ecx
or ecx, 0xfffffffe
inc ecx
neg ecx
sbb ecx, ecx
and ecx, 2
add ecx, 0xffffffff
mov dword [esp + 0x5c], ecx
fild dword [esp + 0x5c]
push 0x64
fld dword [esp + 0x3c]
fadd qword [0x5ec928]
fmulp st(1)
fadd dword [esp + 0x34]
fstp dword [esp + 0x34]
call fcn.00574f62
add esp, 4
mov dword [esp + 0x38], eax
mov byte [esp + 0xcc], 5
test eax, eax
je 0x403505
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push edx
push eax
lea edi, [esp + 0x34]
call fcn.004bbc30
mov edi, dword [esp + 0x64]
mov ebx, eax
jmp 0x403507
xor ebx, ebx
mov byte [esp + 0xcc], 2
push esi
mov eax, edi
call fcn.004bc990
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
lea ecx, [esp + 0x8c]
push ecx
push ebx
push edi
call fcn.004bc8f0
add dword [esp + 0xc], 1
mov ebx, dword [esp + 0x10]
jmp 0x403290
push 0x5cfdc0
lea ecx, [esp + 0x6c]
call dword [0x58e220]
mov byte [esp + 0xcc], 6
lea edx, [esp + 0x68]
lea esi, [edi + 0x40b8]
push edx
mov eax, esi
call fcn.00460ca0
test esi, esi
mov ebx, eax
mov dword [esp + 0x18], ebx
jne 0x403577
call dword [0x58e3e0]
cmp ebx, dword [esi + 4]
mov dword [esp + 0x14], esi
je 0x40359c
add ebx, 0xc
lea eax, [esp + 0x68]
push ebx
push eax
call dword [0x58e268]
add esp, 8
test al, al
jne 0x40359c
lea eax, [esp + 0x14]
jmp 0x4035ab
mov ecx, dword [esi + 4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], esi
lea eax, [esp + 0x1c]
mov ebx, dword [eax]
test ebx, ebx
mov edx, dword [eax + 4]
mov eax, dword [esi + 4]
mov dword [esp + 0x28], edx
mov dword [esp + 0x50], eax
je 0x4035c3
cmp ebx, esi
je 0x4035c9
call dword [0x58e3e0]
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x28], ecx
jne 0x4035d7
xor esi, esi
jmp 0x4035f7
test ebx, ebx
jne 0x4035e1
call dword [0x58e3e0]
mov edx, dword [esp + 0x28]
cmp edx, dword [ebx + 4]
jne 0x4035f0
call dword [0x58e3e0]
mov eax, dword [esp + 0x28]
mov esi, dword [eax + 0x28]
mov byte [esp + 0xcc], 2
lea ecx, [esp + 0x68]
call dword [0x58e21c]
fld dword [esp + 0x44]
fst dword [esp + 0x30]
push 0x64
fld dword [esp + 0x4c]
fstp dword [esp + 0x38]
fadd qword [0x5ec928]
fstp dword [esp + 0x34]
call fcn.00574f62
add esp, 4
mov dword [esp + 0x38], eax
mov byte [esp + 0xcc], 7
test eax, eax
je 0x403658
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push edx
push eax
lea edi, [esp + 0x34]
call fcn.004bbc30
mov edi, dword [esp + 0x64]
mov dword [esp + 0xc], eax
jmp 0x403660
mov dword [esp + 0xc], 0
mov ebx, dword [esp + 0x10]
mov byte [esp + 0xcc], 2
push esi
mov eax, edi
call fcn.004bc990
test esi, esi
je 0x403682
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov ecx, dword [esp + 0xc]
push 0x5cfdc0
push ecx
push edi
call fcn.004bc8f0
push 0x5cfdd0
lea ecx, [esp + 0x6c]
call dword [0x58e220]
mov byte [esp + 0xcc], 8
lea edx, [esp + 0x68]
push edx
mov eax, ebx
call fcn.00460ca0
test ebx, ebx
mov esi, eax
mov dword [esp + 0x18], esi
jne 0x4036c5
call dword [0x58e3e0]
cmp esi, dword [ebx + 4]
mov dword [esp + 0x14], ebx
je 0x4036ea
add esi, 0xc
lea eax, [esp + 0x68]
push esi
push eax
call dword [0x58e268]
add esp, 8
test al, al
jne 0x4036ea
lea eax, [esp + 0x14]
jmp 0x4036f9
mov ecx, dword [ebx + 4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x1c]
mov esi, dword [eax]
test esi, esi
mov edx, dword [eax + 4]
mov eax, dword [ebx + 4]
mov dword [esp + 0x28], edx
mov dword [esp + 0x50], eax
je 0x403711
cmp esi, ebx
je 0x403717
call dword [0x58e3e0]
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x28], ecx
jne 0x403725
xor esi, esi
jmp 0x403745
test esi, esi
jne 0x40372f
call dword [0x58e3e0]
mov edx, dword [esp + 0x28]
cmp edx, dword [esi + 4]
jne 0x40373e
call dword [0x58e3e0]
mov eax, dword [esp + 0x28]
mov esi, dword [eax + 0x28]
mov byte [esp + 0xcc], 2
lea ecx, [esp + 0x68]
call dword [0x58e21c]
fld dword [esp + 0x44]
fst dword [esp + 0x30]
lea ecx, [esi + 8]
fld dword [esp + 0x48]
lea eax, [esp + 0x2c]
fstp dword [esp + 0x34]
push eax
fsub qword [0x5ecac0]
fstp dword [esp + 0x34]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
call edx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push 0x5cfddc
call dword [0x58e220]
mov byte [esp + 0xe8], 9
push edi
mov byte [esp + 0xec], 2
call fcn.004bd3e0
mov edi, dword [esp + 0x60]
mov byte [eax + 4], 0
mov eax, dword [esp + 0x58]
push eax
mov ecx, edi
call fcn.00481ba0
mov ecx, dword [0x619880]
push ecx
call fcn.00462fc0
mov edx, dword [ebp + 8]
push edx
call fcn.00403af0
push 0x5cfde8
lea ecx, [esp + 0x6c]
call dword [0x58e220]
mov byte [esp + 0xcc], 0xa
mov esi, dword [esp + 0x58]
lea eax, [esp + 0x68]
add esi, 0x34
push eax
mov eax, esi
call fcn.00460ca0
test esi, esi
mov edi, eax
mov dword [esp + 0x18], edi
jne 0x40380d
call dword [0x58e3e0]
cmp edi, dword [esi + 4]
mov dword [esp + 0x14], esi
je 0x403832
add edi, 0xc
lea ecx, [esp + 0x68]
push edi
push ecx
call dword [0x58e268]
add esp, 8
test al, al
jne 0x403832
lea eax, [esp + 0x14]
jmp 0x403841
mov edx, dword [esi + 4]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], esi
lea eax, [esp + 0x1c]
mov edi, dword [eax]
test edi, edi
mov ebx, dword [eax + 4]
mov eax, dword [esi + 4]
mov dword [esp + 0x50], eax
je 0x403855
cmp edi, esi
je 0x40385b
call dword [0x58e3e0]
cmp ebx, dword [esp + 0x50]
jne 0x403865
xor eax, eax
jmp 0x40387d
test edi, edi
jne 0x40386f
call dword [0x58e3e0]
cmp ebx, dword [edi + 4]
jne 0x40387a
call dword [0x58e3e0]
mov eax, dword [ebx + 0x28]
push 0
push 0x61213c
push 0x612028
push 0
push eax
call fcn.00574e30
add esp, 0x14
mov edi, eax
mov byte [esp + 0xcc], 2
lea ecx, [esp + 0x68]
call dword [0x58e21c]
mov ecx, dword [0x61986c]
push ecx
call fcn.0044c800
test eax, eax
je 0x4038c0
mov al, byte [eax + 0x9c]
jmp 0x4038c2
xor al, al
push 0x5cfdfc
lea ecx, [esp + 0x6c]
mov byte [edi + 0x96], al
call dword [0x58e220]
mov byte [esp + 0xcc], 0xb
lea edx, [esp + 0x68]
push edx
mov eax, esi
call fcn.00460ca0
test esi, esi
mov edi, eax
mov dword [esp + 0x18], edi
jne 0x4038fb
call dword [0x58e3e0]
cmp edi, dword [esi + 4]
mov dword [esp + 0x14], esi
je 0x403920
add edi, 0xc
lea eax, [esp + 0x68]
push edi
push eax
call dword [0x58e268]
add esp, 8
test al, al
jne 0x403920
lea eax, [esp + 0x14]
jmp 0x40392f
mov ecx, dword [esi + 4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], esi
lea eax, [esp + 0x1c]
mov edi, dword [eax]
test edi, edi
mov edx, dword [esi + 4]
mov ebx, dword [eax + 4]
mov dword [esp + 0x50], edx
je 0x403943
cmp edi, esi
je 0x403949
call dword [0x58e3e0]
cmp ebx, dword [esp + 0x50]
jne 0x403953
xor ebx, ebx
jmp 0x40396b
test edi, edi
jne 0x40395d
call dword [0x58e3e0]
cmp ebx, dword [edi + 4]
jne 0x403968
call dword [0x58e3e0]
mov ebx, dword [ebx + 0x28]
mov byte [esp + 0xcc], 2
lea ecx, [esp + 0x68]
call dword [0x58e21c]
push 0x88
call fcn.00574f62
mov esi, eax
add esp, 4
mov dword [esp + 0x60], esi
mov byte [esp + 0xcc], 0xc
test esi, esi
je 0x403a00
push 0x5cfa37
lea ecx, [esp + 0xa8]
call dword [0x58e220]
mov byte [esp + 0xcc], 0xd
fldz
sub esp, 0x14
fstp dword [esp + 0x10]
fld dword [0x5ec7a0]
lea eax, [esp + 0xb8]
fstp dword [esp + 0xc]
mov dword [esp + 0x50], 1
fld dword [0x5ecdc0]
fstp dword [esp + 8]
fld dword [0x5ecaa0]
fstp dword [esp + 4]
fld dword [0x5ec9e4]
fstp dword [esp]
push eax
push esi
call fcn.00401350
mov esi, eax
jmp 0x403a02
xor esi, esi
mov dword [esp + 0xcc], 2
test byte [esp + 0x3c], 1
je 0x403a26
and dword [esp + 0x3c], 0xfffffffe
lea ecx, [esp + 0xa4]
call dword [0x58e21c]
mov ecx, dword [esp + 0x58]
push esi
push ecx
mov dword [esi + 0x18], ebx
mov byte [esi + 0x28], 1
call fcn.00480d50
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0xc]
cmp ecx, 6
ja case.0x403a46.0
jmp dword [ecx*4 + 0x403ad0]
mov eax, dword [eax + 0x70]
jmp 0x403a5e
mov eax, dword [eax + 0x74]
jmp 0x403a5e
mov eax, dword [eax + 0x6c]
jmp 0x403a5e
xor eax, eax
fldz
push ecx
fstp dword [eax + 0x238]
fld1
fstp dword [esp]
push 0
push 0x5cfe0c
call fcn.00480740
add esp, 0xc
mov byte [esp + 0xcc], 0
mov eax, 0x5cf904
mov dword [esp + 0x2c], eax
mov dword [esp + 0xcc], 0xffffffff
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
mov dword [esp + 0x38], eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4