Function at 0x44c640
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5375fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x30], ebx
mov eax, dword [esi + 0x320]
mov dword [esp + 0x34], ebx
cmp eax, 0x10
mov dword [esp + 0x38], ebx
ja case.0x44c682.5
xor ecx, ecx
mov cl, byte [eax + 0x44cd48]
jmp dword [ecx*4 + 0x44cd30]
mov ecx, esi
call fcn.004040e0
mov edi, dword [esi + 0x2a8]
mov ecx, dword [esi + 0x1f0]
and edi, 0xfffff7ff
cmp ecx, ebx
mov dword [esi + 0x2a8], edi
mov eax, edi
mov dword [esi + 0x310], ebx
je 0x44c6f6
and eax, 0xefffffff
lea edx, [ecx + ecx*2]
mov dword [esi + 0x2a8], eax
lea eax, [esi + edx*4 + 0x1a8]
mov ecx, dword [esi + edx*4 + 0x1a8]
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 0x2f0]
mov edx, dword [eax + 4]
and ecx, 0xfffffffd
mov dword [esp + 0x34], edx
or ecx, 1
mov eax, dword [eax + 8]
mov dword [esi + 0x2f0], ecx
mov dword [esp + 0x38], eax
jmp 0x44c759
mov ecx, dword [esi + 0x1f4]
cmp ecx, ebx
jle 0x44cc14
lea edx, [esp + 0x30]
or eax, 0x10000000
push ecx
push edx
mov dword [esi + 0x2a8], eax
call fcn.004e3940
mov eax, dword [0x682c44]
add esp, 8
cmp eax, esi
jne 0x44c72e
mov dword [0x682c44], ebx
jmp 0x44c74d
test byte [esi + 0x39c], 2
je 0x44c74d
mov al, byte [esi + 0x39d]
mov cl, byte [0x682b6e]
not al
and cl, al
mov byte [0x682b6e], cl
mov byte [esi + 0x39c], bl
mov byte [esi + 0x39d], bl
mov eax, dword [esi + 0x2f0]
test al, 1
je 0x44c81a
cmp byte [esi + 0x390], bl
je 0x44c7bc
mov eax, dword [esi + 0x12c]
test al, 1
je 0x44c7b6
movsx ecx, word [esi + 0x168]
movsx edx, word [esi + 0x174]
neg ecx
neg edx
and al, 0xfe
push ecx
push edx
mov dword [esi + 0x12c], eax
mov word [esi + 0x18], bx
mov word [esi + 0x14], bx
call fcn.0046d130
mov ecx, 0xfffffc00
add esp, 8
sub ecx, eax
and ecx, 0xfff
mov word [esi + 0x16], cx
mov byte [esi + 0x390], bl
mov edx, dword [esi + 0x2f0]
mov ax, word [esi + 0x12a]
and edx, 0xfffffffe
cmp ax, 5
mov dword [esp + 0x3c], 0x60
mov dword [esp + 0x40], 0x46
mov dword [esp + 0x44], 0xc1
mov dword [esi + 0x2f0], edx
jne 0x44c800
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x340], ebx
push 7
jmp 0x44c8d8
cmp ax, 8
je 0x44c8df
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x340], ebx
push 8
jmp 0x44c8d8
test al, 0x20
je 0x44c8b5
mov eax, dword [esi + 0x12c]
test al, 1
jne 0x44c847
or al, 1
lea edx, [esi + 0x164]
mov dword [esi + 0x12c], eax
lea eax, [esi + 0x14]
push edx
push eax
call fcn.0046e730
add esp, 8
mov eax, dword [esi + 0x338]
mov edi, dword [esi + 0x2f0]
push 0xffffffffffffffff
and edi, 0xffffffdf
lea ecx, [eax + eax*2]
push ebx
shl ecx, 5
sar ecx, 0xc
mov dword [esp + 0x44], ecx
push 0x23
mov ecx, esi
mov dword [esp + 0x4c], 0x46
mov dword [esp + 0x50], 0x1f4
mov dword [esi + 0x2f0], edi
mov byte [esi + 0x390], 1
mov dword [esi + 0x340], ebx
call fcn.00460c10
mov ecx, esi
call fcn.00460570
mov dword [esi + 0x320], 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
push 0xffffffffffffffff
push ebx
mov dword [esp + 0x44], 0x38
mov dword [esp + 0x48], 0x46
mov dword [esp + 0x4c], 0x1f4
mov dword [esi + 0x340], ebx
push 2
mov ecx, esi
call fcn.00460c10
push 0x40
call fcn.00455390
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x50], ebx
je 0x44c904
lea edx, [esp + 0x30]
push 1
push edx
push esi
mov ecx, eax
call fcn.004018d0
mov eax, dword [esi + 0x320]
pop edi
inc eax
mov dword [esi + 0x320], eax
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
mov eax, dword [esi + 0x288]
test al, 1
je 0x44cd1c
and al, 0xfe
push ebx
mov dword [esi + 0x288], eax
lea ecx, [esi + 8]
movsx eax, word [esi + 0x21e]
add eax, 0x40
push eax
push ebx
push ecx
call fcn.004e6840
add esp, 0x10
cmp eax, 0xffffffff
jne 0x44c967
mov dword [esi + 0x31c], 0x12
mov dword [esi + 0x320], ebx
push 0x258
push 0x64
push 1
mov ecx, esi
mov dword [esi + 0x2a0], eax
call fcn.004041c0
mov eax, dword [esi + 0x1f0]
cmp eax, ebx
je 0x44c990
dec eax
mov dword [esi + 0x1f0], eax
jmp 0x44c99f
mov ecx, esi
call fcn.00402f60
test eax, eax
je 0x44cc14
mov edx, dword [0x6b4ca8]
mov ecx, dword [esi + 0x374]
sub edx, ecx
cmp edx, 0x12c
jae 0x44c9c4
mov ecx, esi
call fcn.0044fd40
test al, al
jne 0x44cd1c
test byte [esi + 0x2f0], 2
je 0x44cc1e
push 0xffffffffffffffff
push ebx
push 5
mov ecx, esi
mov dword [esi + 0x340], ebx
call fcn.00460c10
mov eax, dword [esi + 0x320]
mov dword [esi + 0x230], 0x32
inc eax
pop edi
mov dword [esi + 0x320], eax
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
mov dword [esi + 0x320], 3
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
mov eax, dword [esi + 0x230]
mov ecx, dword [esi + 0x80]
cmp eax, ecx
jle 0x44ca52
sub eax, ecx
pop edi
mov dword [esi + 0x230], eax
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
mov dword [esi + 0x230], ebx
mov dword [esi + 0x320], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
cmp word [esi + 0x12a], 0x23
je 0x44ca8c
push 0xffffffffffffffff
push ebx
push 0x23
mov ecx, esi
mov dword [esi + 0x340], ebx
call fcn.00460c10
mov eax, dword [esi + 0x1f4]
push ebp
mov ebp, dword [esi + 0x394]
lea ecx, [esp + 0x34]
or ebp, 1
push eax
push ecx
mov dword [esi + 0x394], ebp
mov word [esi + 0xdc], bx
call fcn.004e3940
lea edi, [esi + 8]
lea edx, [esp + 0x3c]
push edi
lea eax, [esp + 0x34]
push edx
push eax
call fcn.004e7760
mov ecx, dword [eax]
mov ebp, dword [esi + 0x80]
mov dword [esp + 0x30], ecx
add esp, 0x14
mov edx, dword [eax + 4]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x24], eax
call fcn.004e7500
mov ecx, ebp
imul ecx, ebp
shl ecx, 8
cmp eax, ecx
pop ebp
jge 0x44ccad
mov ecx, esi
call fcn.00402f60
test eax, eax
jne 0x44cc36
cmp byte [esi + 0x3a0], bl
je 0x44cb58
mov edi, dword [esi + 0x2f0]
push 0xffffffffffffffff
and edi, 0xffffffbf
push ebx
push 0x25
mov ecx, esi
mov dword [esi + 0x2f0], edi
mov dword [esi + 0x340], ebx
call fcn.00460c10
mov dword [esi + 0x31c], 0x13
mov dword [esi + 0x320], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
mov eax, dword [esi + 0x12c]
test al, 1
je 0x44cb9f
movsx edx, word [esi + 0x168]
and al, 0xfe
mov word [esi + 0x18], bx
mov dword [esi + 0x12c], eax
mov word [esi + 0x14], bx
movsx eax, word [esi + 0x174]
neg edx
neg eax
push edx
push eax
call fcn.0046d130
mov ecx, 0xfffffc00
add esp, 8
sub ecx, eax
and ecx, 0xfff
mov word [esi + 0x16], cx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, edi
push ebx
push 0x200
push 0x80
mov dword [edx], eax
mov eax, dword [esp + 0x44]
push edi
mov byte [esi + 0x390], bl
mov dword [edx + 4], ecx
movsx ecx, word [esi + 0x21e]
mov dword [edx + 8], eax
mov edx, dword [esi + 0xc]
shl ecx, 0xc
sub edx, ecx
mov dword [esi + 0xc], edx
call fcn.004e6840
mov edi, eax
push str.No_ground_found_
cmp edi, 0xffffffff
setne dl
push edx
call fcn.004015b0
movsx eax, word [esi + 0x21e]
shl eax, 0xc
mov ecx, edi
add esp, 0x18
sub ecx, eax
mov dword [esi + 0x2a0], edi
mov dword [esi + 0xc], ecx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x31c], 1
mov dword [esi + 0x320], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
test byte [esi + 0x2f0], 0x40
je 0x44cc58
mov byte [esi + 0x3a0], 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
mov edx, dword [esi + 0x1f4]
push edx
call fcn.004e3880
add esp, 4
cmp word [eax], bx
jne 0x44cd1c
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x60], ebx
push 0x24
mov ecx, esi
mov dword [esi + 0x340], ebx
call fcn.00460c10
mov dword [esi + 0x31c], 0x16
mov dword [esi + 0x320], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
lea eax, [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
mov dword [esp + 0x10], 0xc
call fcn.004e7650
lea edi, [esi + 0x60]
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.00470430
mov eax, dword [esi + 0x338]
add esp, 8
mov ecx, edi
lea edx, [eax + eax*2]
lea eax, [esp + 0x10]
shl edx, 5
sar edx, 0xc
push eax
mov dword [esp + 0x14], edx
call fcn.004e75f0
mov dword [esi + 0x74], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x6c], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
push str.Unknown_substate_
push ebx
call fcn.004015b0
add esp, 8
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret