Function at 0x470948
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x13
push 0
push 0
dec ecx
jne 0x470951
push ecx
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x471104
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
add eax, 0x38
xor ecx, ecx
mov edx, 8
call fcn.00402ef4
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], 0xffffffff
mov dword [eax + 0x34], 0xffffffff
mov eax, dword [ebp - 4]
add eax, 0x14
call fcn.00404290
mov eax, dword [ebp - 4]
add eax, 0x18
call fcn.00404290
mov eax, dword [ebp - 4]
mov byte [eax + 0x10], 0
mov eax, dword [ebp - 4]
add eax, 0x50
call fcn.00404290
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 8]
mov edx, 0x47111c
call fcn.0040459c
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 4]
call fcn.004708e8
xor edx, edx
push ebp
push 0x4710c5
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004631c8
cmp dword [ebp - 0x24], 0
je 0x470a2a
cmp dword [ebp - 0x28], 0
je 0x470a2a
cmp dword [ebp - 0x34], 0
je 0x470a2a
cmp dword [ebp - 0x2c], 0
jne 0x470a4f
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 8]
mov edx, 0x47113c
call fcn.0040459c
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.0047081c
call fcn.00403d58
jmp 0x4710cc
cmp dword [ebp - 0x1c], 0
jne 0x470a75
cmp dword [ebp - 0x20], 0
jne 0x470a75
lea eax, [ebp - 0x1c]
mov edx, 0x471154
call fcn.00404328
lea eax, [ebp - 0x20]
mov edx, 0x471154
call fcn.00404328
mov dl, 1
mov eax, dword [0x47043c]
call fcn.0046c838
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x471015
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x14]
add eax, 0x14
mov edx, dword [ebp - 0x1c]
call fcn.004042e4
mov eax, dword [ebp - 0x14]
add eax, 0x18
mov edx, dword [ebp - 0x20]
call fcn.004042e4
mov eax, dword [ebp - 0x14]
add eax, 4
mov edx, dword [ebp - 0x24]
call fcn.004042e4
mov eax, dword [ebp - 0x14]
add eax, 8
mov edx, dword [ebp - 0x28]
call fcn.004042e4
mov eax, dword [ebp - 4]
cmp word [eax + 0x5a], 0
je 0x470b18
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x80]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x28]
mov dword [eax + 0x1b0], edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x2c], edx
mov dword [eax + 0x28], 0x4729a4
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x80]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x2c]
mov dword [eax + 0x1b0], edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x2c], edx
mov dword [eax + 0x28], 0x4729a4
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov dword [eax + 0x8c], edx
mov dword [eax + 0x88], 0x4729d8
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x28]
test al, al
jne 0x470b5f
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x14]
call fcn.00472dbc
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
call fcn.0047081c
call fcn.00403d58
call fcn.00403d58
jmp 0x4710cc
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 0x14]
mov al, byte [eax + 0x68]
mov dl, 1
call fcn.00408d8c
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
mov edx, 0x471168
call fcn.0040459c
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
call fcn.0047088c
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x28]
mov byte [ebp - 0x35], al
cmp byte [ebp - 0x35], 0
je 0x470bb3
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x68], 0
jne 0x470bb3
mov byte [ebp - 0x35], 0
mov edx, 0x47117c
mov eax, dword [ebp - 4]
call fcn.0047088c
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 4]
add eax, 0x14
call fcn.00404290
mov ecx, eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
call fcn.00472a6c
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x58]
mov dword [eax + 0x38], edx
mov edx, dword [ebp - 0x54]
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
lea eax, [ebp - 0x5c]
mov edx, 0x4711b0
call fcn.0040459c
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.0047088c
cmp byte [ebp - 0x35], 0
je 0x470c49
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
je 0x470c49
mov eax, dword [ebp - 4]
cmp byte [eax + 0x78], 0
jne 0x470c49
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
call fcn.0040469c
je 0x470c49
mov byte [ebp - 0x35], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
lea eax, [ebp - 0x60]
mov edx, 0x4711c4
call fcn.0040459c
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 4]
call fcn.0047088c
mov eax, dword [ebp - 4]
add eax, 0x18
call fcn.00404290
mov ecx, eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
call fcn.00472c94
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
lea eax, [ebp - 0x64]
mov edx, 0x4711f0
call fcn.0040459c
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 4]
call fcn.0047088c
cmp byte [ebp - 0x35], 0
je 0x470d20
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
call fcn.0040469c
je 0x470cc7
mov byte [ebp - 0x35], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
lea eax, [ebp - 0x68]
mov edx, 0x471204
call fcn.0040459c
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 4]
call fcn.0047088c
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0xffffffff
jne 0x470cd4
cmp dword [eax + 0x30], 0xffffffff
je 0x470d20
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x20]
mov ecx, dword [ebp - 4]
cmp edx, dword [ecx + 0x34]
jne 0x470cee
cmp eax, dword [ecx + 0x30]
jb 0x470d20
jmp 0x470cf0
jl 0x470d20
mov byte [ebp - 0x35], 0
mov eax, dword [ebp - 4]
push dword [eax + 0x24]
push dword [eax + 0x20]
lea eax, [ebp - 0x70]
call fcn.00408b0c
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
mov edx, 0x471230
call fcn.0040459c
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 4]
call fcn.0047088c
mov edx, 0x471270
mov eax, dword [ebp - 4]
call fcn.0047088c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0xc]
test al, al
jne 0x470d5e
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 0x14]
call fcn.00472dbc
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 4]
call fcn.0047081c
call fcn.00403d58
call fcn.00403d58
jmp 0x4710cc
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x70], 0
je 0x470d83
mov edx, 0x471294
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edx, 0x4712a4
mov eax, dword [ebp - 4]
call fcn.0047088c
jmp 0x470d9d
mov edx, 0x4712bc
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edx, 0x4712cc
mov eax, dword [ebp - 4]
call fcn.0047088c
cmp byte [ebp - 0x35], 0
je 0x470ee9
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
jne 0x470dbc
cmp dword [eax + 0x20], 0
jbe 0x470ee9
jmp 0x470dc2
jle 0x470ee9
mov eax, dword [ebp - 4]
push dword [eax + 0x24]
push dword [eax + 0x20]
lea eax, [ebp - 0x78]
call fcn.00408b0c
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x3c]
mov edx, 0x4712e4
call fcn.0040459c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov ecx, 0x64
cdq
idiv ecx
cmp eax, 3
je 0x470eb8
push 0x4712f4
push dword [ebp - 0x3c]
push 0x471304
mov eax, dword [ebp - 0x14]
push dword [eax + 0x34]
lea eax, [ebp - 0x7c]
mov edx, 4
call fcn.00404610
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 4]
call fcn.0047088c
lea eax, [ebp - 0x3c]
mov edx, 0x471310
call fcn.00404328
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov ecx, 0x64
cdq
idiv ecx
cmp eax, 3
jne 0x470e8d
push 0x4712f4
push dword [ebp - 0x3c]
push 0x471304
mov eax, dword [ebp - 0x14]
push dword [eax + 0x34]
lea eax, [ebp - 0x80]
mov edx, 4
call fcn.00404610
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 4]
call fcn.0047088c
mov byte [ebp - 0x35], 0
mov edx, 0x471320
mov eax, dword [ebp - 4]
call fcn.0047088c
jmp 0x470ee9
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x14]
call fcn.00472dbc
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 4]
call fcn.0047081c
call fcn.00403d58
call fcn.00403d58
jmp 0x4710cc
push 0x4712f4
push dword [ebp - 0x3c]
push 0x471304
mov eax, dword [ebp - 0x14]
push dword [eax + 0x34]
lea eax, [ebp - 0x88]
mov edx, 4
call fcn.00404610
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 4]
call fcn.0047088c
cmp byte [ebp - 0x35], 0
jne 0x470f0c
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.0041a894
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x20]
mov dword [eax + 0x40], ecx
mov ecx, dword [edx + 0x24]
mov dword [eax + 0x44], ecx
lea eax, [ebp - 0x8c]
mov ecx, dword [ebp - 0x2c]
mov edx, 0x471338
call fcn.0040459c
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 4]
call fcn.0047088c
lea eax, [ebp - 0x90]
mov ecx, dword [ebp - 0x2c]
mov edx, 0x471350
call fcn.0040459c
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov ecx, 0x64
cdq
idiv ecx
dec eax
je 0x470f96
lea edx, [ebp - 0x94]
mov eax, dword [ebp - 0x14]
call fcn.00472dbc
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 4]
call fcn.0047081c
call fcn.00403d58
call fcn.00403d58
jmp 0x4710cc
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4c], 0
je 0x470fbb
mov edx, 0x471360
mov eax, dword [ebp - 4]
call fcn.0047081c
call fcn.00403d58
call fcn.00403d58
jmp 0x4710cc
mov edx, 0x471374
mov eax, dword [ebp - 4]
call fcn.0047088c
mov eax, dword [ebp - 4]
mov byte [eax + 0x10], 1
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call fcn.00472e40
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x470fff
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 0x14]
call fcn.00472dbc
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 4]
call fcn.0047081c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47101c
mov eax, dword [ebp - 0x14]
call fcn.00403520
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47110b
lea eax, [ebp - 0xa0]
mov edx, 0x12
call fcn.004042b4
lea eax, [ebp - 0x50]
mov edx, 6
call fcn.004042b4
lea eax, [ebp - 0x34]
mov edx, 8
call fcn.004042b4
ret