Function at 0x44bc70
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5375e6
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor edi, edi
mov di, word [esi + 0x12a]
call fcn.00404b60
xor eax, eax
xor ebx, ebx
mov ax, word [esi + 0x12a]
cmp edi, eax
je 0x44bcb1
mov dword [esi + 0x340], ebx
mov eax, dword [esi + 0x320]
mov dword [esp + 0x24], ebx
cmp eax, 0x16
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
ja case.0x44bce0.8
xor ecx, ecx
mov cl, byte [eax + 0x44c628]
jmp dword [ecx*4 + 0x44c604]
mov ecx, esi
call fcn.004040e0
mov eax, dword [esi + 0x324]
mov dword [esi + 0x378], ebx
cmp eax, 0x258
jg 0x44c5c0
mov ecx, esi
mov dword [esi + 0x310], 0xa0
call fcn.0044afc0
mov edx, dword [0x6a9038]
add edx, 8
mov eax, dword [edx]
mov dword [esp + 0x18], eax
mov al, byte [esi + 0x39c]
mov ecx, dword [edx + 4]
mov dword [esp + 0x1c], ecx
mov edx, dword [edx + 8]
test al, 1
mov dword [esp + 0x20], edx
jne 0x44bd99
test al, 2
je 0x44bd99
mov al, byte [esi + 0x39d]
test al, 0xee
je 0x44bd71
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 + 0x18], ecx
test al, 0xbb
je 0x44bd99
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 + 0x20], ecx
push 2
mov ecx, esi
call fcn.00404170
cmp eax, 0x100
jge 0x44be1d
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 0x44be1d
test byte [esi + 0x39c], 1
jne 0x44bdee
mov dword [esi + 0x320], 0x14
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
mov dl, byte [edx + 0x57c]
mov dword [esi + 0x320], ebx
neg dl
sbb edx, edx
pop edi
and edx, 0xfffffffd
add edx, 4
mov dword [esi + 0x31c], edx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
push 0x64
call fcn.004e5da0
mov ecx, dword [esi + 0x3ac]
add esp, 4
cmp eax, ecx
jge 0x44bea4
mov ecx, esi
call fcn.0044f190
mov edi, eax
cmp edi, ebx
je 0x44bea4
lea eax, [esi + 8]
push ebx
push eax
push 2
mov dword [esi + 0x1f0], ebx
call fcn.004e5da0
add eax, 0x86
add esp, 4
or ah, 0x80
push eax
call fcn.00471ea0
lea ecx, [esp + 0x30]
push edi
push ecx
call fcn.004e3940
add esp, 0x14
lea edx, [esp + 0x24]
mov ecx, esi
mov dword [esi + 0x1f4], edi
push edx
call fcn.0044f2e0
mov dword [esi + 0x31c], 0x17
mov dword [esi + 0x320], ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
push ebx
push 0x100
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.004e6840
add esp, 0x10
cmp eax, 0xffffffff
setne cl
cmp cl, bl
mov byte [esp + 0x13], cl
je 0x44bf86
cmp dword [esi + 0xe4], 0x5dc
jae 0x44bf86
movsx ecx, word [esi + 0x21e]
shl ecx, 0xc
push 0x37
lea edx, [esp + 0x1c]
lea edi, [esi + 8]
push ebx
sub eax, ecx
push edx
push edi
mov ecx, esi
mov dword [esp + 0x2c], eax
call fcn.00403310
test eax, eax
jne 0x44bf86
lea eax, [esp + 0x18]
push 0x5dc
push eax
mov ecx, esi
call fcn.004048f0
test eax, eax
jne 0x44bf40
push 0x5dc
push edi
mov ecx, esi
call fcn.004048f0
test eax, eax
je 0x44bf86
lea ecx, [esp + 0x18]
push 0x5dc
push ecx
mov ecx, esi
call fcn.004048f0
test eax, eax
je 0x44bf86
mov ecx, dword [esi + 0x320]
push ebx
inc ecx
push edi
push 2
mov dword [esi + 0x74], ebx
mov dword [esi + 0x284], ebx
mov dword [esi + 0x320], ecx
call fcn.004e5da0
add eax, 0x86
add esp, 4
or ah, 0x80
push eax
call fcn.00471ea0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
mov cl, byte [esi + 0x39f]
inc cl
mov byte [esi + 0x39f], cl
mov ecx, esi
call fcn.004040e0
mov edx, dword [0x6a9038]
cmp byte [edx + 0x57c], bl
jne 0x44bffb
test byte [esi + 0x39c], 1
je 0x44bffb
cmp dword [0x682c48], ebx
jne 0x44bffb
push ebx
mov ecx, esi
call fcn.00404170
cmp eax, 0x28a
jle 0x44bffb
lea eax, [esi + 8]
push ebx
push eax
push 2
call fcn.004e5da0
add eax, 0x86
add esp, 4
or ah, 0x80
push eax
call fcn.00471ea0
mov dword [0x682c48], esi
add esp, 0xc
mov dword [esi + 0x31c], 7
jmp 0x44c027
cmp byte [esp + 0x13], bl
je 0x44c01d
cmp dword [esi + 0x1f0], ebx
jne 0x44c011
cmp dword [esi + 0x1f4], ebx
jle 0x44c01d
mov dword [esi + 0x31c], 2
jmp 0x44c027
mov dword [esi + 0x31c], 1
mov dword [esi + 0x320], ebx
mov eax, dword [0x682c44]
cmp eax, esi
jne 0x44c05b
mov dword [0x682c44], ebx
mov byte [esi + 0x39c], bl
mov byte [esi + 0x39d], bl
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
test byte [esi + 0x39c], 2
je 0x44c078
mov cl, byte [esi + 0x39d]
mov al, byte [0x682b6e]
not cl
and al, cl
mov byte [0x682b6e], al
mov byte [esi + 0x39c], bl
mov byte [esi + 0x39d], bl
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
mov eax, dword [esi + 0x1f0]
lea edi, [esi + 8]
lea edx, [eax + eax*2]
lea eax, [esi + edx*4 + 0x1a8]
push eax
push edi
call fcn.004e61e0
add esp, 8
cmp eax, 0x32
jae 0x44c0d6
mov dword [esi + 0x320], 0x14
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
mov ebp, dword [esi + 0x1f0]
push str.What__no_waypoint_in_cache_
cmp ebp, ebx
setne cl
push ecx
call fcn.004015b0
mov eax, dword [esi + 0x1f0]
push 0x40
lea edx, [eax + eax*2]
lea eax, [esi + edx*4 + 0x1a8]
mov ecx, dword [esi + edx*4 + 0x1a8]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x34], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x3c], 0x60
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], 0x46
mov dword [esp + 0x44], 0xc1
call fcn.00455390
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x44], ebx
je 0x44c152
lea ecx, [esp + 0x24]
push 1
push ecx
push esi
mov ecx, eax
call fcn.004018d0
mov eax, dword [esi + 0x320]
mov edx, dword [edi]
inc eax
mov ecx, dword [edi + 8]
mov dword [esi + 0x320], eax
mov eax, dword [edi + 4]
add esi, 0x2fc
pop edi
mov dword [esi], edx
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
push ebx
mov ecx, esi
call fcn.00404170
mov ebp, eax
mov al, byte [esi + 0x39c]
test al, 1
je 0x44c1d8
cmp ebp, 0x78
jge 0x44c1d8
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], 4
mov dword [esi + 0x320], ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
mov eax, dword [esi + 0x288]
test al, 1
je 0x44c238
movsx edx, word [esi + 0x21e]
and al, 0xfe
add edx, 0x40
mov dword [esi + 0x288], eax
push ebx
push edx
lea eax, [esi + 8]
push ebx
push eax
call fcn.004e6840
add esp, 0x10
cmp eax, 0xffffffff
jne 0x44c218
mov dword [esi + 0x31c], 0x12
mov dword [esi + 0x320], ebx
mov eax, dword [esi + 0x320]
pop edi
inc eax
mov dword [esi + 0x320], eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
mov eax, dword [esi + 0x1f8]
cmp eax, 6
lea ecx, [eax + 1]
mov dword [esi + 0x1f8], ecx
jle 0x44c253
mov edi, 1
jmp 0x44c261
xor edi, edi
cmp ebp, 0x180
jge 0x44c5f1
mov ecx, esi
call fcn.0044afc0
cmp ebp, 0x320
jge 0x44c2b4
cmp edi, ebx
je 0x44c27a
inc dword [esi + 0x378]
mov eax, dword [esi + 0x378]
cmp eax, 5
jl 0x44c2b4
dec eax
mov dword [esi + 0x378], eax
mov edx, dword [0x6a9038]
cmp byte [edx + 0x57c], bl
jne 0x44c2ba
cmp dword [0x682c48], ebx
jne 0x44c2ba
test byte [esi + 0x39c], 1
je 0x44c3a4
jmp 0x44c5b3
mov edx, dword [0x6a9038]
test byte [esi + 0x39c], 1
je 0x44c3a4
cmp ebp, 0x100
jge 0x44c31f
mov eax, dword [esi + 0xc]
mov ecx, dword [edx + 0xc]
sub eax, ecx
mov ecx, eax
sar ecx, 0x1f
mov edi, ecx
xor edi, eax
sub edi, ecx
cmp edi, 0x32000
jge 0x44c31f
mov dl, byte [edx + 0x57c]
mov dword [esi + 0x320], ebx
neg dl
sbb edx, edx
mov dword [esi + 0x1f8], ebx
and edx, 0xfffffffd
pop edi
add edx, 4
mov dword [esi + 0x31c], edx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
mov eax, dword [esi + 0x1f0]
lea edx, [esi + 8]
lea eax, [eax + eax*2]
lea ecx, [esi + eax*4 + 0x1a8]
push ecx
push edx
call fcn.004e61e0
add esp, 8
mov ecx, esi
mov edi, eax
push 2
call fcn.00404170
add eax, 0x32
cmp eax, edi
jae 0x44c3a4
mov eax, dword [0x6a9038]
cmp byte [eax + 0x57c], bl
jne 0x44c386
cmp dword [0x682c48], ebx
jne 0x44c386
test byte [esi + 0x39c], 1
je 0x44c386
cmp ebp, 0x28a
jle 0x44c386
push 5
call fcn.004e5da0
add esp, 4
test eax, eax
je 0x44c5b3
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
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
test byte [esi + 0x39c], 1
je 0x44bdd1
push 2
mov ecx, esi
call fcn.00404170
cmp eax, 0x100
jge 0x44bdd1
mov ecx, dword [0x6a9038]
mov eax, dword [esi + 0xc]
sub eax, dword [ecx + 0xc]
mov ecx, eax
sar ecx, 0x1f
mov edx, ecx
xor edx, eax
sub edx, ecx
cmp edx, 0x32000
jge 0x44bdd1
mov ecx, esi
call fcn.004040e0
mov eax, dword [0x6a9038]
pop edi
mov cl, byte [eax + 0x57c]
mov dword [esi + 0x320], ebx
neg cl
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 4
mov dword [esi + 0x31c], ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
mov ecx, esi
mov dword [esi + 0x310], 0xa0
call fcn.004040e0
push 0x40
call fcn.00455390
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x44], 1
je 0x44c483
mov edx, dword [0x6a9038]
push 0xc8
push 0x80
push 2
push ebx
push edx
push esi
mov ecx, eax
call fcn.00401180
mov eax, dword [esi + 0x320]
pop edi
inc eax
mov dword [esi + 0x320], eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
mov eax, dword [esi + 0x288]
test al, 2
je 0x44c5f1
and al, 0xfd
push 0x1e
mov dword [esi + 0x288], eax
call fcn.004e5da0
add eax, 0x1e
add esp, 4
mov dword [esi + 0x1f8], eax
mov eax, dword [esi + 0x320]
inc eax
pop edi
mov dword [esi + 0x320], eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
push 3
mov ecx, esi
call fcn.00404170
cmp eax, 0x100
jge 0x44c51f
mov dword [esi + 0x31c], 0x19
mov dword [esi + 0x320], ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
mov eax, dword [esi + 0x1f8]
mov ecx, dword [esi + 0x80]
cmp eax, ecx
jle 0x44c54a
sub eax, ecx
pop edi
mov dword [esi + 0x1f8], eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
mov dword [esi + 0x1f8], ebx
mov eax, dword [0x6a9038]
cmp byte [eax + 0x57c], bl
jne 0x44c4fc
cmp dword [0x682c48], ebx
jne 0x44c4fc
test byte [esi + 0x39c], 1
jne 0x44c576
cmp dword [0x682c44], ebx
jne 0x44c4fc
push 2
mov ecx, esi
call fcn.00404170
cmp eax, 0x28a
jg 0x44c5b3
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, 0xc8000
jle 0x44c4fc
mov ecx, esi
call fcn.004040e0
mov dword [0x682c48], esi
mov dword [esi + 0x31c], 7
mov dword [esi + 0x320], ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
push str.Unknown_substate_
push ebx
call fcn.004015b0
add esp, 8
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret