Function at 0x649680
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x750350
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, 1
mov dword [esp + 0x34], vtable.CBArray_long_int_.0
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], edi
mov ebp, vtable.CBArray_class_CKingdom__.0
mov dword [esp + 0x78], edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], edi
mov esi, vtable.CBArray_struct_TNobleData__.0
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], edi
mov byte [esp + 0x78], 3
call fcn.006590f0
cmp eax, edi
jne 0x649735
mov eax, dword [esp + 0x4c]
cmp eax, edi
mov byte [esp + 0x78], bl
mov dword [esp + 0x48], esi
je 0x64972c
push eax
call fcn.0040fa80
add esp, 4
mov dword [esp + 0x20], ebp
jmp 0x649a59
lea esi, [eax + 0x1a8]
mov eax, dword [esi]
mov ecx, esi
mov dword [esp + 0x14], bind
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], esi
call dword [eax + 0x24]
cmp eax, edi
mov dword [esp + 0x18], eax
je 0x649a33
jmp 0x649770
mov esi, dword [esp + 0x1c]
mov ebx, 1
lea esp, [esp]
mov edx, dword [esi]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call dword [edx + 0x2c]
mov ebp, dword [eax]
cmp ebp, edi
je 0x649874
mov ecx, ebp
call fcn.005f3d90
test eax, eax
je 0x649874
cmp ebp, dword [esp + 0x80]
je 0x649874
cmp dword [ebp + 0x2b0], edi
jne 0x649874
cmp dword [ebp + 0x294], ebx
jne 0x649874
cmp dword [ebp + 0x298], 2
jne 0x649874
mov ecx, ebp
call fcn.005f82b0
mov ecx, dword [0x914298]
mov ebx, eax
cmp ebx, dword [ecx + 0xdd8c]
jle 0x649874
add ebx, 0x64
lea esi, [ebp + 0x1d0]
jmp 0x6497f0
mov ecx, dword [esi]
test ecx, ecx
je 0x64982f
call fcn.0062b9b0
test eax, eax
je 0x64982f
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, dword [0x912e94]
push eax
call fcn.004668b0
test eax, eax
je 0x64982f
lea ecx, [eax - 0x18]
test ecx, ecx
je 0x64982f
mov edx, dword [ecx]
call dword [edx + 0x24]
test eax, eax
je 0x64982f
mov ecx, eax
call fcn.00559b80
test eax, eax
je 0x64983c
add edi, 1
add esi, 4
cmp edi, 9
jl 0x6497f0
jmp 0x649872
cmp edi, 9
jge 0x649872
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
push esi
lea ecx, [esp + 0x38]
call dword [eax + 0x14]
mov dword [eax], ebx
mov edx, dword [esp + 0x20]
push esi
lea ecx, [esp + 0x24]
call dword [edx + 0x14]
add esi, 1
cmp dword [esp + 0x14], ebx
mov dword [eax], ebp
mov dword [esp + 0x10], esi
jle 0x649872
mov dword [esp + 0x14], ebx
xor edi, edi
cmp dword [esp + 0x18], edi
jne 0x649760
cmp dword [esp + 0x10], edi
je 0x649a33
jmp 0x649890
lea eax, [esp + 0x34]
push eax
call fcn.007022c0
add esp, 4
cmp eax, edi
mov dword [esp + 0x1c], eax
jl 0x649a33
mov edx, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x24]
call dword [edx + 0x14]
mov ebp, dword [eax]
xor ebx, ebx
lea esi, [ebp + 0x1d0]
mov dword [esp + 0x14], 9
jmp 0x6498d0
mov ecx, dword [esi]
cmp ecx, edi
je 0x64995b
call fcn.0062b9b0
test eax, eax
je 0x64995b
mov eax, dword [esi]
mov edx, dword [eax + 0x68]
mov eax, edx
shr eax, 0x18
sub eax, edi
je 0x649917
sub eax, 1
je 0x649909
sub eax, 1
jne 0x64995b
mov ecx, dword [0x912e94]
mov ecx, dword [ecx + 0x2e4]
jmp 0x649923
mov ecx, dword [0x912e94]
mov ecx, dword [ecx + 0x2e0]
jmp 0x649923
mov ecx, dword [0x912e94]
mov ecx, dword [ecx + 0x2dc]
mov eax, dword [ecx]
push edx
call dword [eax + 0x18]
cmp eax, edi
je 0x64995b
lea ecx, [eax - 0x18]
cmp ecx, edi
je 0x64995b
mov edx, dword [ecx]
call dword [edx + 0x24]
cmp eax, edi
je 0x64995b
mov ecx, eax
call fcn.00559b80
test eax, eax
jne 0x64995b
mov eax, dword [esp + 0x48]
push ebx
lea ecx, [esp + 0x4c]
call dword [eax + 0x14]
mov ecx, dword [esi]
mov dword [eax], ecx
add ebx, 1
add esi, 4
sub dword [esp + 0x14], 1
jne 0x6498d0
cmp ebx, edi
je 0x649a33
mov ecx, dword [0x912e94]
mov esi, dword [esp + 0x48]
mov edx, dword [ecx]
push 0x229
push 0x7e85f0
add ebx, 0xffffffff
push ebx
push edi
add esi, 0x14
call dword [edx + 0x40]
push eax
lea ecx, [esp + 0x4c]
call dword [esi]
mov esi, dword [eax]
mov ax, word [ebp + 0x20]
mov ecx, dword [0x912e94]
cmp ax, word [ecx + 0x1ac]
jne 0x649aa5
mov edx, dword [esp + 0x80]
push esi
push edx
push ebp
call fcn.006490d0
add esp, 0xc
test eax, eax
je 0x649aa5
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x34]
add eax, 0xffffffff
push eax
lea ecx, [esp + 0x38]
call dword [edx + 0x14]
mov ebx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x34]
push ebx
lea ecx, [esp + 0x38]
call dword [eax + 0x14]
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
add edx, 0xffffffff
push edx
lea ecx, [esp + 0x24]
call dword [eax + 0x14]
mov edx, dword [esp + 0x20]
push ebx
lea ecx, [esp + 0x24]
mov esi, eax
call dword [edx + 0x14]
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
sub eax, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x30], eax
jne 0x649890
mov eax, dword [esp + 0x4c]
cmp eax, edi
mov byte [esp + 0x78], 1
mov dword [esp + 0x48], vtable.CBArray_struct_TNobleData__.0
je 0x649a51
push eax
call fcn.0040fa80
add esp, 4
mov dword [esp + 0x20], vtable.CBArray_class_CKingdom__.0
mov eax, dword [esp + 0x24]
cmp eax, edi
mov byte [esp + 0x78], 0
je 0x649a6f
push eax
call fcn.0040fa80
add esp, 4
mov eax, dword [esp + 0x38]
cmp eax, edi
mov dword [esp + 0x78], 0xffffffff
mov dword [esp + 0x34], vtable.CBArray_long_int_.0
je 0x649a90
push eax
call fcn.0040fa80
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
mov eax, dword [esp + 0x4c]
cmp eax, edi
mov byte [esp + 0x78], 1
mov dword [esp + 0x48], vtable.CBArray_struct_TNobleData__.0
je 0x649ac3
push eax
call fcn.0040fa80
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, edi
mov byte [esp + 0x78], 0
mov dword [esp + 0x20], vtable.CBArray_class_CKingdom__.0
je 0x649ae1
push eax
call fcn.0040fa80
add esp, 4
mov eax, dword [esp + 0x38]
cmp eax, edi
mov dword [esp + 0x78], 0xffffffff
mov dword [esp + 0x34], vtable.CBArray_long_int_.0
je 0x649b02
push eax
call fcn.0040fa80
add esp, 4
mov ecx, dword [esp + 0x70]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret