Function at 0x516d90
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x72db8f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea ecx, [esp + 0x40]
mov dword [esp + 0x3c], ebx
call fcn.0051f250
xor esi, esi
lea ecx, [ebx + 0xa0]
mov dword [esp + 0xbc], esi
mov dword [esp + 0x28], esi
mov byte [esp + 0x2c], 0
mov word [esp + 0x2e], 0xffff
mov byte [esp + 0x30], 0
mov byte [esp + 0x31], 0
mov word [esp + 0x32], si
mov word [esp + 0x34], si
mov byte [esp + 0x36], 0xff
mov byte [esp + 0x13], 1
call fcn.00496fa0
mov edi, dword [esp + 0xc4]
mov ecx, edi
mov dword [esp + 0x1c], eax
mov ebp, edi
call fcn.004e5750
mov ecx, dword [ebx + 0xb8]
cmp ecx, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], esi
je 0x516e2f
call fcn.004e5750
mov dword [esp + 0x38], eax
cmp dword [ebx + 0xb8], edi
je 0x516fd7
mov eax, dword [edi + 0x28]
lea ecx, [eax + 4]
call fcn.004ee8b0
cmp eax, 0x43455243
jg 0x516e69
je 0x516e74
cmp eax, 0x41455243
je 0x516e74
cmp eax, 0x4343504e
je 0x516e74
mov esi, dword [esp + 0xc8]
jmp 0x516fe7
cmp eax, 0x5f43504e
jne 0x516fd7
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x1c8]
mov edi, dword [eax]
cmp edi, eax
je 0x516fd0
jmp 0x516e8c
xor esi, esi
movsx eax, word [edi + 0xe]
sub eax, 0x43
je 0x516f5b
dec eax
jne 0x516fae
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0x64
idiv ecx
xor eax, eax
mov ax, word [edi + 0x14]
cmp edx, eax
jg 0x516fae
cmp dword [ebx + 0x14], esi
jne 0x516fae
mov ecx, dword [ebx + 0xb8]
call fcn.004e5750
test eax, eax
je 0x516fae
mov ecx, dword [ebx + 0xb8]
call fcn.004e5750
mov ecx, dword [0x7c67dc]
mov esi, eax
call fcn.0040ff20
cmp esi, eax
mov esi, dword [esp + 0xc8]
jne 0x516f17
mov edx, dword [esp + 0x1c]
lea ecx, [esi + esi*2]
movsx eax, word [edx + ecx*8]
test dword [eax*4 + 0x747d88], 0x10000
jne 0x516fb5
mov eax, dword [0x7cf110]
test eax, eax
je 0x516f48
push 0
push esi
push eax
push 0
push ebp
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x7de6cc
call fcn.0040a7e0
push 0x3f800000
push ebx
call fcn.00515d60
add esp, 0x28
mov ebp, dword [ebx + 0xb8]
mov ecx, ebp
call fcn.004e5750
mov dword [esp + 0x14], eax
jmp 0x516fb5
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0x64
idiv ecx
xor eax, eax
mov ax, word [edi + 0x14]
cmp edx, eax
jg 0x516fae
mov eax, dword [0x7cf114]
cmp eax, esi
je 0x516fa9
mov ecx, dword [esp + 0xc8]
push esi
push ecx
push eax
push esi
push ebp
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x7de6cc
call fcn.0040a7e0
push 0x3f800000
push ebx
call fcn.00515d60
add esp, 0x28
mov byte [esp + 0x13], 0
mov esi, dword [esp + 0xc8]
cmp ebp, dword [esp + 0xc4]
jne 0x516fe0
mov edx, dword [esp + 0x14]
mov edi, dword [edi]
cmp edi, dword [edx + 0x1c8]
jne 0x516e8a
mov edi, dword [esp + 0xc4]
mov esi, dword [esp + 0xc8]
jmp 0x516fe7
mov edi, dword [esp + 0xc4]
mov ecx, edi
call fcn.004e5750
mov ecx, dword [0x7c67dc]
mov edi, eax
call fcn.0040ff20
cmp edi, eax
jne 0x51701c
mov ecx, dword [esp + 0x1c]
lea eax, [esi + esi*2]
movsx edx, word [ecx + eax*8]
test dword [edx*4 + 0x747d88], 0x10000
je 0x51701c
mov byte [esp + 0x13], 0
mov ecx, dword [ebx + 0xb8]
test ecx, ecx
je 0x51702f
call fcn.004e5750
test eax, eax
jne 0x517051
mov ecx, dword [esp + 0x1c]
lea eax, [esi + esi*2]
movsx edx, word [ecx + eax*8]
test dword [edx*4 + 0x747d88], 0x20000
je 0x517051
mov byte [esp + 0x13], 0
jmp 0x517586
mov al, byte [esp + 0x13]
test al, al
je 0x517586
mov eax, dword [esp + 0x14]
mov ecx, dword [0x7c67dc]
mov ecx, dword [ecx + 0x70]
push 0
push eax
call fcn.004555b0
test eax, eax
mov dword [esp + 0x18], eax
je 0x517132
mov eax, dword [esp + 0x18]
cmp eax, dword [ebx + 0xa8]
je 0x51710e
mov edx, dword [0x7c67dc]
mov ecx, dword [edx + 0x70]
push eax
call fcn.004553b0
mov edi, eax
test edi, edi
je 0x51710e
mov eax, dword [edi + 0xb8]
cmp eax, dword [ebx + 0xb8]
je 0x5170bd
test eax, eax
jne 0x51710e
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x51710e
mov eax, dword [edi + 0xc0]
cmp eax, dword [ebx + 0xc0]
jne 0x51710e
mov edx, dword [edi + 0xa0]
mov eax, dword [ebx + 0xa0]
cmp edx, eax
lea ecx, [ebx + 0xa0]
jne 0x51710e
call fcn.00496fa0
lea ecx, [esi + esi*2]
movsx edx, word [eax + ecx*8]
mov eax, dword [edx*4 + 0x747d88]
test ah, 0x40
je 0x517106
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov byte [esp + 0x13], 0
jmp 0x51710e
push ebp
mov ecx, edi
call fcn.00512940
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [0x7c67dc]
push eax
push ecx
mov ecx, dword [edx + 0x70]
call fcn.004555b0
test eax, eax
mov dword [esp + 0x18], eax
jne 0x51707e
mov al, byte [esp + 0x13]
test al, al
je 0x517586
xor eax, eax
mov ecx, 0xe
lea edi, [esp + 0x7c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp]
mov ecx, ebp
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x90], 4
call dword [eax + 0x20]
mov edi, eax
shl esi, 4
mov edx, dword [esi + ebx + 0x1c]
lea ebp, [esi + ebx + 0x1c]
push edi
mov ecx, ebp
mov dword [esp + 0x1c], edi
call dword [edx + 4]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ecx + eax*4]
test ebx, ebx
mov dword [esp + 0x20], eax
je 0x5171a2
mov eax, dword [ebx]
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebp
call dword [edx + 8]
test al, al
jne 0x51727f
mov ebx, dword [ebx + 0x3c]
test ebx, ebx
jne 0x517187
push 0x40
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [ebp]
sub esp, 0x34
mov ebx, eax
mov eax, dword [esp + 0x50]
mov edi, esp
mov ecx, 0xe
lea esi, [esp + 0xb4]
push eax
rep movsd dword es:[edi], dword [esi]
push ebx
mov ecx, ebp
call dword [edx + 0xc]
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x20]
mov edx, dword [ecx + eax*4]
mov dword [ebx + 0x3c], edx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + eax*4], ebx
inc dword [ebp + 4]
mov edi, dword [esp + 0x3c]
mov eax, dword [edi + 0xa8]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xc8]
lea esi, [eax + eax*2]
add edi, 0xa0
mov ecx, edi
mov byte [esp + 0x2c], al
shl esi, 3
call fcn.00496fa0
movsx edx, word [eax + esi]
mov eax, dword [edx*4 + 0x747d88]
shr eax, 4
and al, 1
mov ecx, edi
mov byte [esp + 0x30], al
call fcn.00496fa0
movsx ecx, word [eax + esi]
mov edx, dword [ecx*4 + 0x747d88]
shr edx, 0xf
and dl, 1
mov ecx, edi
mov byte [esp + 0x31], dl
call fcn.00496fa0
mov ax, word [eax + esi + 0xc]
mov ecx, edi
mov word [esp + 0x32], ax
call fcn.00496fa0
mov cx, word [eax + esi + 0x10]
mov word [esp + 0x34], cx
mov ecx, edi
call fcn.00496fa0
cmp byte [eax + esi + 3], 0xff
mov ecx, edi
jne 0x5172ae
call fcn.00496fa0
mov dl, byte [eax + esi + 2]
mov byte [esp + 0x36], dl
jmp 0x5172bb
mov edx, dword [ebp]
push ebx
mov ecx, ebp
call dword [edx + 0x10]
mov eax, dword [ebp]
sub esp, 0x38
mov edi, esp
mov ecx, 0xe
lea esi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x50]
push ecx
push ebx
mov ecx, ebp
call dword [eax + 0xc]
jmp 0x5171e2
call fcn.00496fa0
mov al, byte [eax + esi + 3]
mov byte [esp + 0x36], al
mov ecx, edi
call fcn.00496fa0
mov ebx, dword [esp + 0x14]
test ebx, ebx
mov cx, word [eax + esi]
mov word [esp + 0x2e], cx
je 0x517586
mov ebp, dword [ebx + 0x1c8]
mov edx, dword [ebp + 4]
lea edi, [ebx + 0x1c4]
push edx
push ebp
mov ecx, edi
call fcn.00519de0
mov dword [ebp + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea ecx, [esp + 0x28]
push ecx
add eax, 8
push eax
call fcn.0051a6a0
mov ecx, dword [edi + 8]
mov ebp, dword [esp + 0x40]
add esp, 8
inc ecx
test ebp, ebp
mov dword [edi + 8], ecx
je 0x517572
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0xc4]
cmp edx, dword [eax + 0xb8]
je 0x517572
mov ecx, dword [esp + 0x1c]
movsx edx, word [esi + ecx]
test byte [edx*4 + 0x747d88], 0x10
je 0x517572
mov eax, dword [eax + 0x9c]
test eax, eax
je 0x51736a
mov eax, dword [eax + 0x80]
test eax, eax
je 0x51736a
push 0
push ebx
lea ecx, [eax + 0xcc]
call fcn.0052e890
push ebx
mov ecx, ebp
call fcn.00556ed0
test al, al
je 0x517572
mov eax, dword [ebp + 0x10]
shr eax, 0x10
test al, 1
je 0x51738f
mov ecx, dword [ebx + 0x10]
shr ecx, 0x10
test cl, 1
jne 0x517398
push ebx
push ebp
mov ecx, ebp
call fcn.00556320
mov ecx, ebx
call fcn.00556de0
mov ecx, ebp
mov esi, eax
call fcn.00556de0
cmp eax, 2
je 0x517572
cmp esi, 0xffffffff
jne 0x517572
mov al, byte [ebx + 0x228]
test al, al
je 0x5173e6
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
push eax
lea ecx, [ebp + 0x94]
call fcn.0047e7d0
test al, al
je 0x5173e6
or dword [ebx + 0x10], 0x20000
push 0
mov ecx, ebx
call fcn.00556e50
push 1
mov ecx, ebp
call fcn.00556e50
mov dword [esp + 0x68], ebp
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esp + 0x20], eax
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x7c6180
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov dword [esp + 0x24], 0
push 1
fild qword [esp + 0x24]
push esi
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], 1
fstp dword [esp + 0x4c]
mov dword [esp + 0x28], esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x51746b
mov edi, dword [esp + 0x4c]
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov esi, 0x7c6180
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x4c]
mov eax, edx
mov dword [esp + 0x50], eax
mov byte [ecx + eax], 0
mov ecx, ebp
call fcn.0055fe60
mov edx, dword [eax]
mov dword [esp + 0x58], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x5c], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x60], edx
mov dword [esp + 0x6c], ebx
cmp byte [ebx + 0x228], 1
jne 0x5174a2
mov ecx, dword [ebx + 0x560]
mov eax, dword [ecx]
call dword [eax + 0x68]
mov dword [esp + 0x70], eax
mov ecx, dword [0x7c67dc]
mov edx, dword [ecx + 0x5c]
mov ecx, dword [edx + 0x24]
push ebx
call fcn.00570c60
test al, al
je 0x5174ce
mov eax, dword [0x7c67dc]
mov edx, dword [esp + 0x74]
mov ecx, dword [eax + 0x5c]
mov ecx, dword [ecx + 0x24]
push edx
push ebx
call fcn.005704b0
mov eax, dword [0x7c67dc]
mov ecx, dword [eax + 0x5c]
mov ecx, dword [ecx + 0x24]
push ebp
push ebx
call fcn.00570960
test al, al
jne 0x5174eb
or dword [ebx + 0x10], 0x8000000
mov edx, dword [ebx + 0xc8]
mov ecx, dword [esp + 0x74]
push edx
call fcn.0047e360
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x517572
mov ecx, dword [esp + 0x68]
mov esi, dword [ecx + 0x1b0]
mov edi, dword [esi + 4]
lea ebp, [ecx + 0x1ac]
push 0x44
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test esi, esi
mov ecx, esi
jne 0x51752b
mov ecx, eax
test edi, edi
mov dword [eax], ecx
mov ecx, edi
jne 0x517535
mov ecx, eax
mov dword [eax + 4], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
add eax, 8
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], eax
test eax, eax
mov byte [esp + 0xbc], 1
je 0x517563
lea edx, [esp + 0x40]
push edx
mov ecx, eax
call fcn.0051f3a0
mov eax, dword [ebp + 8]
inc eax
mov byte [esp + 0xbc], 0
mov dword [ebp + 8], eax
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
cmp ebx, eax
jne 0x517586
call fcn.005e2480
lea ecx, [esp + 0x40]
mov dword [esp + 0xbc], 0xffffffff
call fcn.0051f580
mov ecx, dword [esp + 0xb4]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xb0
ret 8