Function at 0x81627c
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x15
push 0
push 0
dec ecx
jne 0x816284
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x816e46
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x816d89
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x816d78
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
mov edx, dword [eax]
call dword [edx + 0xe0]
mov eax, dword [0x98aad0]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.00478f6c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x340]
mov ebx, dword [eax + 0x388]
mov esi, dword [ebx + 0x354]
test esi, esi
jge 0x816308
call fcn.004046a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x816d93
lea ecx, [ebp - 8]
mov eax, ebx
mov edx, esi
call fcn.005f65fc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x340]
mov eax, dword [eax + 0x2f8]
mov edx, dword [eax]
call dword [edx + 0xc4]
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x340]
mov eax, dword [eax + 0x324]
mov edx, dword [eax]
call dword [edx + 0xc4]
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x340]
mov eax, dword [eax + 0x34c]
mov edx, dword [eax]
call dword [edx + 0xc4]
mov byte [ebp - 0x41], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x340]
mov eax, dword [eax + 0x300]
fild dword [eax + 0x230]
call fcn.00402ffc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x340]
mov eax, dword [eax + 0x308]
fild dword [eax + 0x230]
call fcn.00402ffc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x340]
mov eax, dword [edi + 0x31c]
fild dword [eax + 0x230]
call fcn.00402ffc
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x4c]
mov eax, dword [edi + 0x330]
call fcn.004afc28
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x24]
call fcn.0040b2a4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x340]
mov eax, dword [eax + 0x328]
fild dword [eax + 0x230]
call fcn.00402ffc
mov dword [ebp - 0x28], eax
cmp byte [ebp - 0x11], 0
je 0x8164b8
mov edx, dword [ebp - 0x24]
mov eax, 0x816e5c
call fcn.00405934
test eax, eax
jle 0x8164b8
mov edx, dword [ebp - 0x24]
mov eax, 0x816e5c
call fcn.00405934
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jle 0x8164c3
mov edi, dword [ebp - 0x2c]
jmp 0x81642d
inc edi
mov eax, dword [ebp - 0x24]
call fcn.00405620
cmp edi, eax
jge 0x816443
mov eax, dword [ebp - 0x24]
cmp word [eax + edi*2], 0x23
je 0x81642c
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x2c]
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x24]
call fcn.004057bc
push dword [ebp - 0x50]
lea ecx, [ebp - 0x58]
mov edx, edi
sub edx, dword [ebp - 0x2c]
inc edx
mov eax, dword [ebp - 0x28]
add eax, esi
call fcn.008b0af4
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
call fcn.00405594
push dword [ebp - 0x54]
lea eax, [ebp - 0x5c]
push eax
lea edx, [edi + 1]
mov ecx, 0x64
mov eax, dword [ebp - 0x24]
call fcn.004057bc
push dword [ebp - 0x5c]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004056f0
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 8]
call fcn.00485148
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 0xc]
call fcn.0040562c
jmp 0x8164c3
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00485110
push dword [ebp - 0xc]
push 0x816e64
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x340]
mov eax, dword [eax + 0x388]
mov eax, dword [eax + 0x354]
inc eax
call fcn.0040b818
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
call fcn.00405594
push dword [ebp - 0x68]
push 0x816e70
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x340]
mov eax, dword [eax + 0x388]
call fcn.005f6738
lea edx, [ebp - 0x74]
call fcn.0040b818
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x70]
call fcn.00405594
push dword [ebp - 0x70]
push 0x816e7c
lea eax, [ebp - 0x64]
mov edx, 6
call fcn.004056f0
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
call fcn.004b1da8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov edx, dword [eax]
call dword [edx + 0x80]
test bl, bl
je 0x816afc
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00405738
je 0x816b64
mov eax, dword [ebp - 8]
call fcn.008b4aa0
test al, al
je 0x816b64
xor edx, edx
push ebp
push 0x816af5
push dword fs:[edx]
mov dword fs:[edx], esp
mov dl, 1
mov eax, dword [0x41f018]
call fcn.00403dfc
mov dword [ebp - 0x3c], eax
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 8]
call fcn.00485148
mov edx, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
call fcn.00404f0c
mov eax, dword [ebp - 0x7c]
lea edx, [ebp - 0x78]
call fcn.0040adfc
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x10]
call fcn.00405594
cmp byte [ebp - 0x41], 0
je 0x81672f
mov eax, dword [ebp - 4]
cmp dword [eax + 0x334], 0xffffffff
jne 0x8166fd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
call fcn.00619b94
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
call fcn.00624ac0
mov ecx, 0xa
mov edx, 0xa
call fcn.005d4530
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x33c]
mov eax, dword [eax + 0x39c]
mov edx, dword [eax + 0x188]
push edx
mov dl, byte [eax + 0x18c]
push edx
mov edx, dword [eax + 0x190]
push edx
mov edx, dword [eax + 0x194]
push edx
mov dl, byte [eax + 0x198]
push edx
mov edx, dword [eax + 0x19c]
push edx
mov edx, dword [eax + 0x1a0]
push edx
mov dl, byte [eax + 0x1a4]
push edx
mov edx, dword [eax + 0x1a8]
push edx
mov edx, dword [eax + 0x1ac]
push edx
mov edx, dword [eax + 0x1b0]
push edx
mov edx, dword [eax + 0x1b4]
push edx
mov edx, dword [eax + 0x1b8]
push edx
mov dl, byte [eax + 0x1bc]
push edx
mov edx, dword [eax + 0x1c0]
push edx
mov edx, dword [eax + 0x1c4]
push edx
mov edx, dword [eax + 0x1c8]
push edx
mov edx, dword [eax + 0x1cc]
push edx
mov ecx, dword [eax + 0x184]
mov dl, byte [eax + 0x181]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
call fcn.008b8560
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 0xc]
sub eax, 0xa
mov edx, dword [ebp - 4]
mov dword [edx + 0x334], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 8]
sub eax, 0xa
mov edx, dword [ebp - 4]
mov dword [edx + 0x338], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
sub edx, dword [eax + 0x334]
mov eax, 1
call fcn.00437fc0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sub edx, dword [eax + 0x338]
mov eax, 1
call fcn.00437fc0
mov dword [ebp - 0x1c], eax
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x310]
mov eax, dword [0x98a548]
mov eax, dword [eax]
mov eax, dword [eax + 0x7d8]
mov edx, dword [ebp - 8]
call fcn.00947224
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 0xc]
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 8]
cmp ebx, eax
jl 0x816789
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jl 0x8167c3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 0xc]
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 8]
cmp ebx, eax
jge 0x8167ce
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jl 0x8167ce
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x1c]
call fcn.008aef44
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 8]
mov ebx, eax
imul ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 0xc]
imul dword [ebp - 0x1c]
cmp ebx, eax
jle 0x816824
push 5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
call fcn.00624ac0
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
call fcn.005d4530
jmp 0x81683f
push 5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
call fcn.00624ac0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x18]
call fcn.005d4530
cmp byte [ebp - 0x41], 0
je 0x8168f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x33c]
mov eax, dword [eax + 0x39c]
mov edx, dword [eax + 0x188]
push edx
mov dl, byte [eax + 0x18c]
push edx
mov edx, dword [eax + 0x190]
push edx
mov edx, dword [eax + 0x194]
push edx
mov dl, byte [eax + 0x198]
push edx
mov edx, dword [eax + 0x19c]
push edx
mov edx, dword [eax + 0x1a0]
push edx
mov dl, byte [eax + 0x1a4]
push edx
mov edx, dword [eax + 0x1a8]
push edx
mov edx, dword [eax + 0x1ac]
push edx
mov edx, dword [eax + 0x1b0]
push edx
mov edx, dword [eax + 0x1b4]
push edx
mov edx, dword [eax + 0x1b8]
push edx
mov dl, byte [eax + 0x1bc]
push edx
mov edx, dword [eax + 0x1c0]
push edx
mov edx, dword [eax + 0x1c4]
push edx
mov edx, dword [eax + 0x1c8]
push edx
mov edx, dword [eax + 0x1cc]
push edx
mov ecx, dword [eax + 0x184]
mov dl, byte [eax + 0x181]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
call fcn.008b8560
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
call fcn.00624a6c
mov eax, dword [eax + 0x1bc]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0xc8], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x340]
mov eax, dword [eax + 0x37c]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
jne 0x81695c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
call fcn.00624a6c
mov eax, dword [eax + 0x1bc]
call fcn.00602fe8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
call fcn.00624a6c
mov eax, dword [eax + 0x1bc]
mov byte [eax + 0x180], 0
mov eax, dword [ebp - 8]
call fcn.008b4aa0
test al, al
je 0x816a76
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0060c064
cmp eax, 3
jne 0x816a76
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x340]
mov eax, dword [eax + 0x37c]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
je 0x816a76
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x310]
mov eax, dword [0x98a548]
mov eax, dword [eax]
xor ecx, ecx
call fcn.007a46fc
xor eax, eax
push ebp
push 0x816a6a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x816a59
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0xff
mov dl, 1
mov eax, dword [0x512e40]
call fcn.00517fd0
mov dword [ebp - 0x48], eax
push 0
push 0
mov eax, dword [ebp - 0x3c]
call fcn.0042451c
mov dl, 1
mov eax, dword [0x41f018]
call fcn.00403dfc
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x48]
call fcn.0051a31c
mov eax, dword [ebp - 0x48]
call fcn.0051b164
test al, al
je 0x816a3b
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x48]
call fcn.00518f6c
test al, al
je 0x816a3b
mov eax, dword [ebp - 0x40]
call fcn.00424530
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x816a60
lea eax, [ebp - 0x48]
call fcn.004120b8
lea eax, [ebp - 0x40]
call fcn.004120b8
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
call fcn.00624a6c
mov edx, dword [ebp - 0x3c]
call fcn.0060b414
mov eax, dword [ebp - 0x3c]
call fcn.00424530
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
call fcn.00619b94
push 0
push 0
mov eax, dword [ebp - 0x3c]
call fcn.0042451c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
call fcn.00624a6c
mov edx, dword [ebp - 0x3c]
mov si, 0xffe4
call fcn.00404028
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
mov edx, dword [eax]
call dword [edx + 0xc4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x816b64
lea eax, [ebp - 0x3c]
call fcn.004120b8
ret
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00405738
je 0x816b64
mov eax, dword [ebp - 8]
call fcn.008b4aa0
test al, al
je 0x816b64
xor eax, eax
push ebp
push 0x816b5a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.008b1638
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2f8]
mov eax, dword [0x98a548]
mov eax, dword [eax]
mov eax, dword [eax + 0x7d8]
mov edx, dword [ebp - 8]
call fcn.00947224
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x816b64
mov eax, dword [0x98a548]
mov eax, dword [eax]
mov ebx, dword [eax + 0x7d8]
cmp byte [ebx + 0x1030], 0
je 0x816b91
push 0x40590000
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
call fcn.00618bac
jmp 0x816bc9
push 0x40590000
push 0
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x2f8]
mov edx, esi
mov eax, dword [0x98a548]
mov eax, ebx
call fcn.008f2330
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.00437f44
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, esi
call fcn.00618bac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
mov edx, dword [eax + 0x30]
lea eax, [ebp - 0x8c]
mov ecx, 0x816e8c
call fcn.00404f90
mov edx, dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
call fcn.00405594
push dword [ebp - 0x88]
lea edx, [ebp - 0x90]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
call fcn.004b1d94
push dword [ebp - 0x90]
push 0x816e94
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
fld qword [eax + 0x3f0]
call fcn.00402ffc
push edx
push eax
lea eax, [ebp - 0x98]
call fcn.0040b848
mov edx, dword [ebp - 0x98]
lea eax, [ebp - 0x94]
call fcn.00405594
push dword [ebp - 0x94]
push 0x816ea4
lea eax, [ebp - 0x84]
mov edx, 5
call fcn.004056f0
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 4]
call fcn.004b74f0
fild qword [ebp - 0x38]
fdiv dword [0x816eac]
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.00437db4
mov dword [ebp - 0xa4], eax
fild dword [ebp - 0xa4]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0xa0]
push eax
xor ecx, ecx
mov edx, 0xa
mov al, 3
call fcn.0040dbac
push dword [ebp - 0xa0]
push 0x816eb8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 0xc]
lea edx, [ebp - 0xa8]
call fcn.0040b818
push dword [ebp - 0xa8]
push 0x816ec8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 8]
lea edx, [ebp - 0xac]
call fcn.0040b818
push dword [ebp - 0xac]
push 0x816ed4
lea eax, [ebp - 0x9c]
mov edx, 6
call fcn.00405004
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30c]
call fcn.00458cdc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30c]
mov edx, dword [eax]
call dword [edx + 0x80]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x816d7f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
mov edx, dword [eax]
call dword [edx + 0xe4]
mov eax, dword [0x98aad0]
mov eax, dword [eax]
xor edx, edx
call fcn.00478f6c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x816e50
lea eax, [ebp - 0xac]
mov edx, 2
call fcn.00404ca0
lea eax, [ebp - 0xa0]
mov edx, 3
call fcn.00404ca0
lea eax, [ebp - 0x94]
call fcn.004053b0
lea eax, [ebp - 0x90]
call fcn.004053b0
lea eax, [ebp - 0x8c]
call fcn.00404c7c
lea eax, [ebp - 0x88]
mov edx, 3
call fcn.004053c8
lea eax, [ebp - 0x7c]
mov edx, 3
call fcn.00404ca0
lea eax, [ebp - 0x70]
call fcn.004053b0
lea eax, [ebp - 0x6c]
call fcn.00404c7c
lea eax, [ebp - 0x68]
mov edx, 4
call fcn.004053c8
lea eax, [ebp - 0x58]
call fcn.00404c7c
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.004053c8
lea eax, [ebp - 0x24]
call fcn.004053b0
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004053c8
ret