Function at 0x415248
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get number of processors

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x415250
push ebx
push esi
push edi
mov ebx, 0x41a8f4
mov esi, 0x41aa20
mov edi, 0x41ac2c
xor eax, eax
push ebp
push 0x415828
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [edi], eax
cmp dword [edi], 0xa
jge 0x4152a3
lea ecx, [ebp - 4]
mov edx, 1
mov eax, dword [edi]
call fcn.004078f8
mov edx, dword [ebp - 4]
mov eax, dword [edi]
lea eax, [ebx + eax*4]
call fcn.004045e4
inc dword [edi]
cmp dword [edi], 0xa
jl 0x415280
lea eax, [ebx + 0x28]
mov edx, 0x415840
call fcn.004045e4
lea eax, [ebx + 0x2c]
mov edx, 0x41584c
call fcn.004045e4
lea eax, [ebx + 0x30]
mov edx, 0x415858
call fcn.004045e4
lea eax, [ebx + 0x34]
mov edx, 0x415864
call fcn.004045e4
lea eax, [ebx + 0x38]
mov edx, 0x415870
call fcn.004045e4
lea eax, [ebx + 0x3c]
mov edx, 0x41587c
call fcn.004045e4
lea eax, [ebx + 0x40]
mov edx, 0x415888
call fcn.004045e4
lea eax, [ebx + 0x44]
mov edx, 0x415894
call fcn.004045e4
lea eax, [ebx + 0x48]
mov edx, 0x4158a0
call fcn.004045e4
lea eax, [ebx + 0x4c]
mov edx, 0x4158ac
call fcn.004045e4
lea eax, [ebx + 0x50]
mov edx, 0x4158b8
call fcn.004045e4
lea eax, [ebx + 0x54]
mov edx, 0x4158c4
call fcn.004045e4
lea eax, [ebx + 0x58]
mov edx, 0x4158d0
call fcn.004045e4
lea eax, [ebx + 0x5c]
mov edx, 0x4158dc
call fcn.004045e4
lea eax, [ebx + 0x60]
mov edx, 0x4158e8
call fcn.004045e4
lea eax, [ebx + 0x64]
mov edx, 0x4158f4
call fcn.004045e4
lea eax, [ebx + 0x68]
mov edx, 0x415900
call fcn.004045e4
lea eax, [ebx + 0x6c]
mov edx, 0x41590c
call fcn.004045e4
lea eax, [ebx + 0x70]
mov edx, 0x415918
call fcn.004045e4
lea eax, [ebx + 0x74]
mov edx, 0x415924
call fcn.004045e4
lea eax, [ebx + 0x78]
mov edx, 0x415930
call fcn.004045e4
lea eax, [ebx + 0x7c]
mov edx, 0x41593c
call fcn.004045e4
lea eax, [ebx + 0x80]
mov edx, 0x415948
call fcn.004045e4
lea eax, [ebx + 0x84]
mov edx, 0x415954
call fcn.004045e4
lea eax, [ebx + 0x88]
mov edx, 0x415960
call fcn.004045e4
lea eax, [ebx + 0x8c]
mov edx, 0x41596c
call fcn.004045e4
mov eax, 0x41aa8c
mov edx, 0x415978
call fcn.004045e4
push dword [ebx + 0x28]
push dword [ebx + 0x18]
push dword [ebx + 0xc]
push dword [ebx + 0xc]
push dword [ebx + 0x10]
push dword [ebx + 0x10]
push dword [ebx + 8]
push dword [ebx + 0x14]
push dword [ebx + 0x2c]
push dword [ebx + 0x20]
push dword [ebx + 8]
push dword [ebx + 0x1c]
push dword [ebx + 0x3c]
push dword [ebx + 0x10]
push dword [ebx + 0x30]
push dword [ebx + 0x38]
mov eax, 0x41aab8
mov edx, 0x10
call fcn.004048ec
lea ecx, [ebp - 8]
mov dx, 0xcd64
mov eax, dword [0x41aab8]
call fcn.00413e28
mov edx, dword [ebp - 8]
mov eax, 0x41aab8
mov ecx, dword [0x41aa8c]
call fcn.00404878
push dword [ebx + 0x28]
push dword [ebx + 0x34]
push dword [ebx + 0x7c]
push dword [ebx + 0x28]
push dword [ebx + 0x64]
push dword [ebx + 0x48]
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [0x41aa8c]
mov eax, 0x41aabc
mov edx, 9
call fcn.004048ec
push dword [ebx + 0x80]
push dword [ebx + 0x70]
push dword [ebx + 0x60]
push dword [ebx + 0x30]
push dword [ebx + 0x50]
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [0x41aa8c]
mov eax, 0x41ac24
mov edx, 8
call fcn.004048ec
xor eax, eax
mov dword [0x41aa74], eax
mov eax, esi
mov edx, dword [ebx + 0x2c]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 0x28]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 4]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 8]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 0x30]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 0x18]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 8]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 0x20]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 0x2c]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 0x2c]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 0x3c]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 4]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 0x2c]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 0x28]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 8]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 0x30]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 4]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 8]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 0x18]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 0x18]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 0x10]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 0x14]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 0x28]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 0xc]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 0x38]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 0x3c]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 0xc]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 0x18]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 0x28]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 0x14]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 0x2c]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 0x1c]
call fcn.00404834
mov eax, esi
mov edx, dword [ebx + 0x2c]
call fcn.00404834
mov eax, 0x41aa24
mov edx, dword [ebx + 0x3c]
call fcn.004045e4
mov eax, 0x41aa24
mov edx, dword [ebx + 0x14]
call fcn.00404834
mov eax, 0x41aa24
mov edx, dword [ebx + 0x28]
call fcn.00404834
mov eax, 0x41aa24
mov edx, dword [ebx + 4]
call fcn.00404834
mov eax, 0x41aa24
mov edx, dword [ebx + 0x10]
call fcn.00404834
push dword [0x41aa24]
push dword [ebx + 4]
push dword [ebx + 0x38]
push dword [ebx + 4]
mov eax, 0x41aa24
mov edx, 4
call fcn.004048ec
push 0x415988
push dword [ebx + 0x38]
push 0x4159a0
push dword [ebx + 0x84]
push 0x4159ac
push dword [ebx + 0x38]
push 0x4159ac
lea eax, [ebp - 0x10]
mov edx, 7
call fcn.004048ec
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00414be0
mov edx, dword [ebp - 0xc]
mov eax, 0x41ab18
call fcn.004045e4
push 0x4159b8
push dword [ebx + 0x48]
push 0x4159cc
push dword [ebx + 0x58]
push 0x4159cc
push dword [ebx + 0x34]
push 0x4159dc
lea eax, [ebp - 0x18]
mov edx, 7
call fcn.004048ec
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00414b10
mov edx, dword [ebp - 0x14]
mov eax, 0x41aba8
call fcn.004045e4
push 0x4159ec
lea edx, [ebp - 0x1c]
mov eax, 0x4159f8
call fcn.00414b10
push dword [ebp - 0x1c]
push 0x4159ec
mov eax, 0x41aac4
mov edx, 3
call fcn.004048ec
push 0x4159ec
lea edx, [ebp - 0x20]
mov eax, 0x415a0c
call fcn.00414b10
push dword [ebp - 0x20]
push 0x4159ec
mov eax, 0x41aac8
mov edx, 3
call fcn.004048ec
lea edx, [ebp - 0x24]
mov eax, 0x415a20
call fcn.00414be0
mov edx, dword [ebp - 0x24]
mov eax, 0x41a8d8
call fcn.004045e4
lea edx, [ebp - 0x28]
mov eax, 0x415a60
call fcn.00414be0
mov edx, dword [ebp - 0x28]
mov eax, 0x41a8dc
call fcn.004045e4
mov eax, 0x41aacc
mov edx, 0x415acc
call fcn.004045e4
mov eax, 0x41aad0
mov edx, 0x415adc
call fcn.004045e4
mov eax, 0x41a8c8
mov edx, 0x415aec
call fcn.004045e4
mov eax, 0x41a8cc
mov edx, 0x415afc
call fcn.004045e4
push dword [ebx + 0x58]
push dword [ebx + 4]
push dword [ebx + 0x18]
push dword [ebx + 4]
mov eax, 0x41aa70
mov edx, 4
call fcn.004048ec
xor eax, eax
mov dword [0x41ab38], eax
mov dword [0x41ab34], 0xb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41582f
lea eax, [ebp - 0x28]
mov edx, 0xa
call fcn.004045b4
ret