Function at 0x42a060
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x536916
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [esp + 0x38]
push ebx
push ebp
mov ebp, 5
xor ebx, ebx
cmp eax, ebp
push esi
push edi
setl al
push str.Matt_needs_to_fix_ChasePlayer.
mov esi, ecx
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.004015b0
mov eax, dword [esi + 0x320]
add esp, 8
cmp eax, 0x16
ja case.0x42a0cb.9
xor ecx, ecx
mov cl, byte [eax + 0x42a880]
jmp dword [ecx*4 + 0x42a858]
mov ecx, esi
call fcn.004040e0
or byte [esi + 0x46], 0x10
mov dword [esi + 0x354], ebx
mov edi, 0x14
push 1
push 1
mov ecx, esi
mov dword [esi + 0x310], edi
call fcn.00428ee0
test eax, eax
je 0x42a108
mov dword [esi + 0x320], ebp
jmp 0x42a271
mov ecx, esi
call fcn.00429090
mov edx, dword [0x6a9038]
add edx, 8
mov eax, dword [edx]
mov dword [esp + 0x14], eax
mov al, byte [esi + 0x390]
mov ecx, dword [edx + 4]
mov dword [esp + 0x18], ecx
mov edx, dword [edx + 8]
test al, 1
mov dword [esp + 0x1c], edx
jne 0x42a192
test al, 2
je 0x42a192
mov al, byte [esi + 0x391]
test al, 0xee
je 0x42a16a
mov cl, al
mov dl, 8
and cl, 0xaa
neg cl
sbb ecx, ecx
and ecx, 0xfff9c000
add ecx, 0x190000
cmp dl, al
sbb edx, edx
and edx, 0xfffffffe
inc edx
imul ecx, edx
add dword [esp + 0x14], ecx
test al, 0xbb
je 0x42a192
mov cl, al
and cl, 0x83
neg cl
sbb ecx, ecx
and al, 0xaa
and ecx, 2
dec ecx
neg al
sbb eax, eax
and eax, 0xfff9c000
add eax, 0x190000
imul ecx, eax
add dword [esp + 0x1c], ecx
push 2
mov ecx, esi
call fcn.00404170
mov dx, word [esi + 0x38]
sub dx, 0x132
neg dx
sbb edx, edx
and edx, 0x64
add edx, 0xc8
cmp eax, edx
jge 0x42a206
mov edx, dword [0x6a9038]
mov eax, dword [esi + 0xc]
sub eax, dword [edx + 0xc]
mov ecx, eax
sar ecx, 0x1f
mov ebp, ecx
xor ebp, eax
sub ebp, ecx
cmp ebp, 0x32000
jge 0x42a206
test byte [esi + 0x390], 1
jne 0x42a1e9
mov dword [esi + 0x320], edi
jmp 0x42a271
mov al, byte [edx + 0x57c]
mov dword [esi + 0x320], ebx
neg al
sbb eax, eax
and al, 0xfc
add eax, 5
mov dword [esi + 0x31c], eax
jmp 0x42a271
push 0x37
lea ecx, [esp + 0x18]
lea edi, [esi + 8]
push ebx
push ecx
push edi
mov ecx, esi
call fcn.00403310
test eax, eax
jne 0x42a286
lea edx, [esp + 0x14]
push ebx
push edx
mov ecx, esi
call fcn.004048f0
test eax, eax
jne 0x42a24c
push ebx
push edi
mov ecx, esi
call fcn.004048f0
test eax, eax
je 0x42a286
lea eax, [esp + 0x14]
push ebx
push eax
mov ecx, esi
call fcn.004048f0
test eax, eax
je 0x42a286
mov dword [esi + 0x74], ebx
mov dword [esi + 0x284], ebx
inc dword [esi + 0x320]
cmp dword [esi + 0x31c], 4
jne 0x42a271
mov eax, dword [esp + 0x48]
mov ecx, esi
inc eax
push eax
call fcn.0042a060
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 4
mov dl, byte [esi + 0x392]
mov ecx, esi
inc dl
mov byte [esi + 0x392], dl
call fcn.004040e0
mov eax, dword [0x6a9038]
cmp byte [eax + 0x57c], bl
jne 0x42a2f3
test byte [esi + 0x390], 1
je 0x42a2f3
cmp dword [0x682c40], ebx
jne 0x42a2f3
cmp dword [eax + 0xe48], ebx
jne 0x42a2f3
push 2
mov ecx, esi
call fcn.00404170
cmp eax, 0x28a
jle 0x42a2f3
push 2
mov ecx, esi
call fcn.00404170
cmp eax, 0x5dc
jge 0x42a2f3
mov dword [0x682c40], esi
mov dword [esi + 0x31c], 9
jmp 0x42a2fd
mov dword [esi + 0x31c], 1
mov dword [esi + 0x320], ebx
mov eax, dword [0x682c3c]
cmp eax, esi
jne 0x42a323
mov dword [0x682c3c], ebx
mov byte [esi + 0x390], bl
mov byte [esi + 0x391], bl
jmp 0x42a271
test byte [esi + 0x390], 2
je 0x42a340
mov cl, byte [esi + 0x391]
mov al, byte [0x682c18]
not cl
and al, cl
mov byte [0x682c18], al
mov byte [esi + 0x390], bl
mov byte [esi + 0x391], bl
jmp 0x42a271
mov ecx, dword [esi + 0x1f0]
push str.What__no_waypoint_in_cache_
cmp ecx, ebx
setne dl
push edx
call fcn.004015b0
mov eax, dword [esi + 0x1f0]
push 0x40
lea eax, [eax + eax*2]
lea ecx, [esi + eax*4 + 0x1a8]
mov edx, dword [esi + eax*4 + 0x1a8]
mov dword [esp + 0x2c], edx
mov dx, word [esi + 0x38]
mov eax, dword [ecx + 4]
sub dx, 0x132
neg dx
sbb edx, edx
mov dword [esp + 0x30], eax
mov ecx, dword [ecx + 8]
and edx, 0xffffffc8
add edx, 0xc8
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], 0x46
mov dword [esp + 0x40], 0xc1
call fcn.00455390
add esp, 0xc
mov dword [esp + 0x10], eax
cmp eax, ebx
mov dword [esp + 0x40], ebx
je 0x42a3e0
lea ecx, [esp + 0x20]
push 1
push ecx
push esi
mov ecx, eax
call fcn.004018d0
mov eax, dword [esi + 0x320]
lea edx, [esi + 8]
inc eax
mov dword [esp + 0x40], 0xffffffff
mov ecx, dword [edx]
mov dword [esi + 0x320], eax
lea eax, [esi + 0x2fc]
mov dword [esi + 0x2fc], ecx
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
jmp 0x42a25b
test byte [esi + 0x390], 1
je 0x42a468
push ebx
mov ecx, esi
call fcn.00404170
mov cx, word [esi + 0x38]
sub cx, 0x132
neg cx
sbb ecx, ecx
and ecx, 0x64
add ecx, 0xc8
cmp eax, ecx
jge 0x42a468
push ebx
push ebx
push 1
mov ecx, esi
call fcn.00403a10
mov dword [esi + 0x74], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x31c], ebp
mov dword [esi + 0x320], ebx
jmp 0x42a271
mov ecx, esi
call fcn.00404b60
mov eax, dword [esi + 0x288]
test al, 1
je 0x42a486
and al, 0xfe
mov dword [esi + 0x288], eax
jmp 0x42a255
mov eax, dword [esi + 0x1f8]
cmp eax, 6
lea edx, [eax + 1]
mov dword [esi + 0x1f8], edx
jle 0x42a4a1
mov edi, 1
jmp 0x42a4ce
push 2
mov ecx, esi
xor edi, edi
call fcn.00404170
mov cx, word [esi + 0x38]
sub cx, 0x132
neg cx
sbb ecx, ecx
and ecx, 0x96
add ecx, 0x12c
cmp eax, ecx
jge 0x42a271
mov ecx, esi
call fcn.00429090
push 2
mov ecx, esi
call fcn.00404170
cmp eax, 0x320
jge 0x42a522
cmp edi, ebx
je 0x42a4ef
inc dword [esi + 0x354]
mov eax, dword [esi + 0x354]
cmp eax, 6
jl 0x42a522
dec eax
mov dword [esi + 0x354], eax
mov eax, dword [0x6a9038]
cmp byte [eax + 0x57c], bl
jne 0x42a522
cmp dword [0x682c40], ebx
jne 0x42a522
cmp dword [eax + 0xe48], ebx
je 0x42a80f
test byte [esi + 0x390], 1
je 0x42a61c
push 2
mov ecx, esi
call fcn.00404170
mov dx, word [esi + 0x38]
sub dx, 0x132
neg dx
sbb edx, edx
and edx, 0x64
add edx, 0xc8
cmp eax, edx
jge 0x42a591
mov edx, dword [0x6a9038]
mov eax, dword [esi + 0xc]
sub eax, dword [edx + 0xc]
mov ecx, eax
sar ecx, 0x1f
mov edi, ecx
xor edi, eax
sub edi, ecx
cmp edi, 0x32000
jge 0x42a591
mov al, byte [edx + 0x57c]
mov dword [esi + 0x320], ebx
neg al
sbb eax, eax
and al, 0xfc
add eax, ebp
mov dword [esi + 0x31c], eax
jmp 0x42a271
mov eax, dword [esi + 0x1f0]
lea ecx, [eax + eax*2]
lea eax, [esi + 8]
lea edx, [esi + ecx*4 + 0x1a8]
push edx
push eax
call fcn.004e61e0
add esp, 8
mov ecx, esi
mov edi, eax
push 2
call fcn.00404170
add eax, 0x32
cmp eax, edi
jae 0x42a61c
mov eax, dword [0x6a9038]
cmp byte [eax + 0x57c], bl
jne 0x42a5fe
cmp dword [eax + 0xe48], ebx
jne 0x42a5fe
cmp dword [0x682c40], ebx
jne 0x42a5fe
push 2
mov ecx, esi
call fcn.00404170
cmp eax, 0x28a
jle 0x42a5fe
push ebp
call fcn.004e5da0
add esp, 4
test eax, eax
je 0x42a80f
push ebx
push ebx
push 1
mov ecx, esi
call fcn.00403a10
mov dword [esi + 0x74], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x320], 1
mov dword [esi + 0x1f8], ebx
jmp 0x42a271
test byte [esi + 0x390], 1
je 0x42a69e
push 2
mov ecx, esi
call fcn.00404170
mov cx, word [esi + 0x38]
sub cx, 0x132
neg cx
sbb ecx, ecx
and ecx, 0x64
add ecx, 0xc8
cmp eax, ecx
jge 0x42a69e
mov edx, dword [0x6a9038]
mov eax, dword [esi + 0xc]
sub eax, dword [edx + 0xc]
mov ecx, eax
sar ecx, 0x1f
mov edx, ecx
xor edx, eax
sub edx, ecx
cmp edx, 0x32000
jge 0x42a69e
mov ecx, esi
call fcn.004040e0
xor eax, eax
push 0xffffffffffffffff
mov al, byte [esi + 0x298]
push ebx
push eax
mov ecx, esi
call fcn.00460c10
mov dword [esi + 0x31c], ebp
mov dword [esi + 0x320], ebx
jmp 0x42a271
xor ecx, ecx
push 1
mov cl, byte [esi + 0x298]
push ecx
mov ecx, esi
call fcn.00460d00
mov dword [esi + 0x320], 0x14
jmp 0x42a271
cmp byte [esi + 0x142], bl
je 0x42a271
mov dword [esi + 0x320], 1
jmp 0x42a271
mov ecx, esi
mov dword [esi + 0x310], 0x14
call fcn.004040e0
xor edx, edx
push 1
mov dl, byte [esi + 0x298]
mov ecx, esi
push edx
call fcn.00460d00
push 0x40
call fcn.00455390
add esp, 4
mov dword [esp + 0x48], eax
cmp eax, ebx
mov dword [esp + 0x40], 1
je 0x42a730
mov ecx, dword [0x6a9038]
push 0xc8
push 0x64
push 2
push ebx
push ecx
push esi
mov ecx, eax
call fcn.00401180
inc dword [esi + 0x320]
jmp 0x42a271
mov edx, dword [esi + 0x38c]
mov eax, dword [esi + 0x288]
or edx, 4
test al, 2
mov dword [esi + 0x38c], edx
je 0x42a271
and al, 0xfd
mov dword [esi + 0x1f8], 0x1e
mov dword [esi + 0x288], eax
mov dword [esi + 0x320], 0x16
jmp 0x42a271
lea edi, [esi + 0x1f8]
mov ecx, esi
push edi
call fcn.00402be0
cmp dword [edi], ebx
jne 0x42a831
mov edx, dword [0x6a9038]
cmp byte [edx + 0x57c], bl
jne 0x42a6cb
cmp dword [0x682c40], ebx
jne 0x42a6cb
push 2
mov ecx, esi
call fcn.00404170
cmp eax, 0x7d0
jge 0x42a6cb
mov eax, dword [0x6a9038]
cmp dword [eax + 0xe48], ebx
jne 0x42a6cb
push 2
mov ecx, esi
call fcn.00404170
cmp eax, 0x28a
jg 0x42a80f
mov ecx, dword [0x6a9038]
mov ebp, dword [esi + 0x29c]
mov eax, dword [ecx + 0xc]
sub eax, ebp
sub eax, 0x4000
mov ecx, eax
sar ecx, 0x1f
mov edx, ecx
xor edx, eax
sub edx, ecx
cmp edx, 0x64000
jle 0x42a6cb
mov ecx, esi
call fcn.004040e0
mov dword [0x682c40], esi
mov dword [esi + 0x31c], 9
mov dword [esi + 0x320], ebx
jmp 0x42a271
mov eax, dword [esi + 0x38c]
or al, 4
mov dword [esi + 0x38c], eax
jmp 0x42a271
push str.Unknown_substate_
push ebx
call fcn.004015b0
add esp, 8
jmp 0x42a271