Function at 0x667a50
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x751450
push eax
mov eax, dword [0x912e94]
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x38]
mov cx, word [ebp + 0x180]
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x667a8c
mov eax, dword [eax + 0x1a4]
cmp eax, ebx
jne 0x667a92
mov dword [esp + 0x18], ebx
jmp 0x667ac1
cmp cx, bx
jne 0x667a9b
xor eax, eax
jmp 0x667abd
lea esi, [eax + 0x1a8]
mov eax, dword [esi]
movzx edi, cx
mov ecx, esi
call dword [eax + 0xc]
cmp edi, eax
jb 0x667ab3
xor eax, eax
jmp 0x667abd
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x14]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
push ebx
push ebp
push 0xf
call fcn.00657600
add esp, 0xc
cmp eax, ebx
je 0x667aee
mov eax, dword [eax + 0x14]
lea ecx, [eax + eax*2]
lea eax, [eax + ecx*8]
mov ecx, dword [0x97b5c0]
add eax, eax
add eax, eax
cdq
idiv dword [ecx + 0x38]
mov dword [esp + 0x10], eax
jmp 0x667af2
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], vtable.CBDList_class_CKingdom__.0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov ecx, ebp
mov dword [esp + 0x38], ebx
call fcn.00664af0
mov ebp, eax
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x2c]
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x667c42
jmp 0x667b30
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call dword [eax + 0x34]
mov cx, word [eax]
cmp cx, bx
je 0x667c38
mov esi, dword [0x912e94]
cmp esi, ebx
je 0x667c38
mov eax, dword [esi + 0x1a4]
cmp eax, ebx
je 0x667c38
movzx edx, cx
cmp edx, dword [eax + 0x60]
jae 0x667b80
lea ecx, [eax + 0x24]
mov eax, dword [ecx]
push edx
call dword [eax + 0x14]
mov eax, dword [eax]
mov esi, dword [0x912e94]
jmp 0x667b8e
cmp cx, 0xffff
jne 0x667c38
mov eax, dword [eax + 0x6c]
cmp eax, ebx
je 0x667c38
cmp esi, ebx
mov ax, word [eax + 0x2a]
je 0x667ba8
mov ecx, dword [esi + 0x1a4]
cmp ecx, ebx
jne 0x667bac
xor esi, esi
jmp 0x667bdb
cmp ax, bx
jne 0x667bb5
xor esi, esi
jmp 0x667bdb
mov edx, dword [ecx + 0x1a8]
lea esi, [ecx + 0x1a8]
mov ecx, esi
movzx edi, ax
call dword [edx + 0xc]
cmp edi, eax
jb 0x667bd1
xor esi, esi
jmp 0x667bdb
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x14]
mov esi, dword [eax]
push esi
lea ecx, [esp + 0x20]
call fcn.0041f880
test eax, eax
jne 0x667c38
mov cx, word [esi + 0x20]
mov eax, dword [esp + 0x40]
cmp cx, word [eax + 0x2a]
je 0x667c38
mov edx, dword [esi + 0x294]
cmp edx, dword [eax + 0x194]
jne 0x667c38
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
call dword [eax + 0x60]
mov dword [eax], esi
mov dword [eax + 4], ebx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
cmp dword [esp + 0x24], ebx
jne 0x667c28
mov dword [esp + 0x24], eax
jmp 0x667c2f
mov edx, dword [esp + 0x28]
mov dword [edx + 4], eax
add dword [esp + 0x20], 1
mov dword [esp + 0x28], eax
cmp dword [esp + 0x14], ebx
jne 0x667b30
cmp dword [esp + 0x24], ebx
jne 0x667c76
mov dword [esp + 0x1c], vtable.CBDList_class_CKingdom__.0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 1
call fcn.00548f00
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
cmp dword [esp + 0x10], 0x32
jle 0x667d66
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x667c9b
push esi
lea ecx, [esp + 0x20]
call fcn.0041f880
test eax, eax
jne 0x667df8
mov edi, dword [esp + 0x24]
jmp 0x667ca3
xor ebx, ebx
cmp edi, ebx
je 0x667d66
mov eax, edi
mov ebp, dword [eax]
mov eax, dword [ebp + 0x24]
mov edi, dword [edi + 4]
lea esi, [ebp + 0x24]
mov ecx, esi
call dword [eax + 0x2c]
test eax, eax
mov dword [esp + 0x18], eax
je 0x667d28
mov edx, dword [esi]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call dword [edx + 0x34]
mov cx, word [eax]
push 0
push ecx
call fcn.00659110
mov dx, word [eax + 0x180]
mov ecx, dword [esp + 0x48]
add esp, 8
cmp dx, word [ecx + 0x180]
jne 0x667d21
push 0
push eax
push 0xf
call fcn.00657600
add esp, 0xc
test eax, eax
je 0x667d1d
mov eax, dword [eax + 0x14]
mov ecx, dword [0x97b5c0]
lea edx, [eax + eax*2]
lea eax, [eax + edx*8]
add eax, eax
add eax, eax
cdq
idiv dword [ecx + 0x38]
jmp 0x667d1f
xor eax, eax
add ebx, eax
cmp dword [esp + 0x18], 0
jne 0x667cc5
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x48]
mov ecx, eax
xor edx, edx
mov eax, ebx
div ecx
cmp eax, 0x32
jl 0x667ca1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a8d80
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
cmp dword [esp + 0x10], ebx
jne 0x667da8
mov esi, dword [esp + 0x40]
mov dx, word [esi + 0x2a]
push edx
call fcn.00659140
mov eax, dword [eax + 0x294]
add esp, 4
cmp eax, dword [esi + 0x194]
je 0x667da8
mov ecx, dword [0x912e94]
mov edx, dword [ecx]
push 0x2d65
push str.BSSKoHGame_realm.cpp
push 0x64
push ebx
call dword [edx + 0x40]
cmp eax, 0x32
jge 0x667dce
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a8d80
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov edx, dword [esp + 0x20]
mov ecx, dword [0x912e94]
mov eax, dword [ecx]
push 0x2d68
push str.BSSKoHGame_realm.cpp
add edx, 0xffffffff
push edx
push ebx
call dword [eax + 0x40]
push eax
lea ecx, [esp + 0x20]
call fcn.005d3e10
mov esi, dword [eax]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a8d80
mov ecx, dword [esp + 0x30]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret