Function at 0x40aca0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x454eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push edi
mov eax, dword [0x4738c0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esi + 0x20]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
push ebx
push ebx
push 0x146
push eax
call ebp
cmp eax, ebx
jle 0x40acf3
mov edi, eax
mov ecx, dword [esi + 0x20]
push ebx
push ebx
push 0x144
push ecx
call ebp
sub edi, 1
jne 0x40ace1
mov eax, dword [esi + 0x6c]
cmp eax, ebx
jne 0x40ad78
lea edx, [esp + 0x14]
push 0x465514
lea ecx, [esi + 0x68]
push edx
call fcn.00407c70
add esp, 8
mov dword [esp + 0x38], ebx
lea ecx, [esi + 0x60]
push eax
call fcn.00403950
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ad44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x64]
cmp dword [ecx - 0xc], ebx
mov ebp, dword [ecx - 0x10]
lea edi, [esi + 0x64]
lea eax, [ecx - 0x10]
je 0x40af8f
cmp dword [eax + 0xc], ebx
lea edx, [eax + 0xc]
jge 0x40af6a
cmp dword [ecx - 8], ebx
jge 0x40af60
push 0x80070057
call fcn.00401890
cmp eax, 0xffffffff
jne 0x40ad9f
lea edx, [esp + 0x14]
push 0x4652d8
lea ecx, [esi + 0x68]
push edx
call fcn.00407c70
add esp, 8
mov dword [esp + 0x38], 1
jmp 0x40ad13
lea ecx, [esi + 0x60]
call fcn.00401b50
cmp dword [esi + 0x6c], ebx
mov dword [esp + 0x14], ebx
jle 0x40ad44
mov ecx, dword [esi + 0x60]
mov eax, dword [ecx - 0xc]
mov edx, dword [esi + 0x70]
mov dword [edx + ebx + 0xc], eax
mov eax, dword [esi + 0x70]
push 0x465300
add eax, ebx
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00407b90
mov dword [esp + 0x44], 2
mov edx, dword [esi + 0x70]
lea ecx, [edx + ebx + 4]
push ecx
push eax
lea edx, [esp + 0x38]
push edx
call fcn.00407ad0
lea ecx, [esi + 0x68]
push ecx
push eax
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x5c], 3
call fcn.00407ad0
add esp, 0x24
mov byte [esp + 0x38], 4
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
mov edi, eax
mov eax, dword [esi + 0x60]
mov edx, dword [eax - 0xc]
lea ebp, [edx + ecx]
mov dword [esp + 0x1c], ecx
mov ecx, 1
sub ecx, dword [eax - 4]
mov dword [esp + 0x10], edi
sub edi, eax
mov eax, dword [eax - 8]
sub eax, ebp
or eax, ecx
mov dword [esp + 0x18], edx
jge 0x40ae45
push ebp
lea ecx, [esi + 0x60]
call fcn.004018e0
mov edx, dword [esp + 0x18]
cmp edi, edx
mov eax, dword [esi + 0x60]
ja 0x40ae53
lea ecx, [eax + edi]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
push ecx
push edi
push ecx
add eax, edx
push eax
call fcn.0043ca53
add esp, 0x10
test ebp, ebp
jl 0x40ad6e
mov eax, dword [esi + 0x60]
cmp ebp, dword [eax - 8]
lea edi, [esi + 0x60]
jg 0x40ad6e
mov dword [eax - 0xc], ebp
mov edx, dword [edi]
mov byte [edx + ebp], 0
mov byte [esp + 0x38], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aeae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aed3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aefb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x70]
mov edx, dword [ecx + ebx + 0xc]
push edx
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call fcn.0040b380
mov ecx, dword [eax]
mov edi, dword [esp + 0x14]
mov edx, dword [esi + 0x20]
push ecx
push edi
push 0x14a
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40af46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 1
add ebx, 0x10
cmp edi, dword [esi + 0x6c]
mov dword [esp + 0x14], edi
jl 0x40adb0
xor ebx, ebx
jmp 0x40ad44
mov dword [ecx - 0xc], ebx
mov ecx, dword [edi]
mov byte [ecx], 0
jmp 0x40af8f
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40af80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp]
mov eax, dword [edx + 0xc]
mov ecx, ebp
call eax
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esi + 0x58]
cdq
sub eax, edx
sar eax, 1
cmp eax, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], ebx
jle 0x40b038
jmp 0x40afb0
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
mov ebx, 0x465510
mov edx, 1
sub edx, dword [eax - 4]
mov dword [esp + 0x14], ebx
sub ebx, eax
mov eax, dword [eax - 8]
lea ebp, [ecx + 2]
sub eax, ebp
or edx, eax
mov dword [esp + 0x28], ecx
jge 0x40afe4
push ebp
mov ecx, edi
call fcn.004018e0
mov ecx, dword [esp + 0x28]
cmp ebx, ecx
mov eax, dword [edi]
ja 0x40aff1
lea edx, [eax + ebx]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x14]
push 2
push edx
add eax, ecx
push 2
push eax
call fcn.0043ca53
add esp, 0x10
test ebp, ebp
jl 0x40ad6e
mov eax, dword [edi]
cmp ebp, dword [eax - 8]
jg 0x40ad6e
mov dword [eax - 0xc], ebp
mov eax, dword [edi]
mov byte [eax + ebp], 0
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x10], eax
jl 0x40afb0
xor ebx, ebx
mov ecx, dword [esi + 0x60]
mov edx, dword [esi + 0x58]
mov eax, dword [ecx - 0xc]
lea ecx, [eax + edx*2]
mov edx, dword [edi]
cmp dword [edx - 0xc], ecx
jge 0x40b0e3
nop
mov eax, dword [esi + 0x60]
mov edx, dword [eax - 0xc]
mov ebx, eax
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
lea ebp, [ecx + edx]
mov dword [esp + 0x24], edx
mov edx, 1
sub edx, dword [eax - 4]
mov dword [esp + 0x14], ebx
sub ebx, eax
mov eax, dword [eax - 8]
sub eax, ebp
or edx, eax
mov dword [esp + 0x28], ecx
jge 0x40b08b
push ebp
mov ecx, edi
call fcn.004018e0
mov ecx, dword [esp + 0x28]
cmp ebx, ecx
mov eax, dword [edi]
ja 0x40b098
lea edx, [eax + ebx]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
push edx
push ebx
push edx
add eax, ecx
push eax
call fcn.0043ca53
add esp, 0x10
test ebp, ebp
jl 0x40ad6e
mov eax, dword [edi]
cmp ebp, dword [eax - 8]
jg 0x40ad6e
mov dword [eax - 0xc], ebp
mov eax, dword [edi]
mov byte [eax + ebp], 0
mov ecx, dword [esi + 0x60]
mov edx, dword [esi + 0x58]
mov eax, dword [ecx - 0xc]
lea ecx, [eax + edx*2]
mov edx, dword [edi]
cmp dword [edx - 0xc], ecx
jl 0x40b050
xor ebx, ebx
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push ebx
push 0x64
push ebx
neg eax
push ecx
mov dword [esi + 0x5c], eax
mov dword [esi + 0x74], ebx
call edi
mov edx, dword [esi + 0x20]
push ebx
push 0x12c
push 1
push edx
call edi
mov byte [esi + 0x54], 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x2c
ret