Function at 0x47c600
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4c3d2e
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d88f0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x48]
cmp eax, 0x8000
lea esi, [edi + 0x4c38]
mov dword [esp + 0x14], esi
mov dword [esi + 4], 0
mov dword [esi], 0
jle 0x47c650
mov eax, 0x8000
mov ecx, dword [edi + 0x4c40]
push eax
mov eax, dword [esp + 0x48]
push eax
push ecx
call fcn.004afc30
lea ecx, [edi + 0x4c04]
add esp, 0xc
mov dword [esp + 0x20], ecx
call fcn.0045a6a0
test byte [esp + 0x40], 0x80
je 0x47c697
push esi
call fcn.0045a6d0
mov ebp, eax
mov dword [esp + 0x44], ebp
test ebp, ebp
jne 0x47c694
mov ecx, edi
call fcn.0047a990
jmp 0x47c6a1
dec ebp
jmp 0x47c69d
mov ebp, dword [edi + 0x4c68]
mov dword [esp + 0x44], ebp
mov eax, dword [edi + 0x4c48]
cmp ebp, eax
ja 0x47c708
cmp ebp, dword [edi + 0x4c60]
ja 0x47c708
cmp ebp, eax
sete bl
push 0x64
mov dword [edi + 0x4c68], ebp
mov byte [esp + 0x4c], bl
call fcn.004b0160
add esp, 4
mov dword [esp + 0x1c], eax
xor esi, esi
mov dword [esp + 0x38], esi
cmp eax, esi
je 0x47c6e3
mov ecx, eax
call fcn.0047b120
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
test bl, bl
je 0x47c790
cmp ebp, 0x400
jbe 0x47c720
test esi, esi
je 0x47c708
push 1
mov ecx, esi
call fcn.0047a850
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0xc
lea ebx, [edi + 0x4c44]
push 1
mov ecx, ebx
call fcn.00444300
push 0x64
call fcn.004b0160
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], 1
test eax, eax
je 0x47c754
mov ecx, eax
call fcn.0047b120
mov ebp, eax
jmp 0x47c756
xor ebp, ebp
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [edi + 0x4c48]
mov edx, dword [ebx]
mov dword [edx + eax*4 - 4], ebp
mov eax, dword [edi + 0x4c48]
dec eax
push 0
lea ecx, [edi + 0x4c5c]
mov dword [esp + 0x20], ebp
mov dword [esi + 0x10], eax
call fcn.00460c50
lea ebx, [ebp + 8]
mov dword [ebx], 0
jmp 0x47c7a5
mov eax, dword [edi + 0x4c44]
mov ebx, dword [eax + ebp*4]
mov dword [esp + 0x1c], ebx
add ebx, 8
mov dword [esi + 0x10], ebp
inc dword [ebx]
xor eax, eax
xor edx, edx
mov dword [esp + 0x18], ebx
cmp dword [edi + 0x4c54], eax
jbe 0x47c7fe
lea ebp, [edi + 0x4c50]
jmp 0x47c7c0
mov ecx, dword [ebp]
mov ebp, dword [ecx + eax*4]
mov ebx, eax
sub ebx, edx
mov dword [ecx + ebx*4], ebp
mov ecx, dword [edi + 0x4c50]
cmp dword [ecx + eax*4], 0
lea ebp, [edi + 0x4c50]
lea ecx, [ecx + eax*4]
jne 0x47c7e3
inc edx
test edx, edx
jle 0x47c7ed
mov dword [ecx], 0
inc eax
cmp eax, dword [edi + 0x4c54]
jb 0x47c7c0
mov ebx, dword [esp + 0x18]
test edx, edx
jne 0x47c812
lea ebp, [edi + 0x4c50]
push 1
mov ecx, ebp
call fcn.00444300
mov edx, 1
mov eax, dword [edi + 0x4c54]
mov ecx, dword [esp + 0x14]
sub eax, edx
mov edx, dword [ebp]
mov dword [edx + eax*4], esi
mov eax, dword [ebx]
push ecx
mov dword [esi + 8], eax
call fcn.0045a6d0
mov cl, byte [esp + 0x40]
mov ebp, eax
test cl, 0x40
je 0x47c840
add ebp, 0x102
mov edx, dword [edi + 0x96ec]
add edx, ebp
and edx, 0x3fffff
mov dword [esi], edx
test cl, 0x20
je 0x47c875
mov ebx, dword [esp + 0x14]
push ebx
call fcn.0045a6d0
mov edx, dword [esp + 0x44]
mov dword [esi + 4], eax
mov ecx, dword [edi + 0x4c5c]
mov dword [ecx + edx*4], eax
mov cl, byte [esp + 0x40]
jmp 0x47c895
mov eax, dword [esp + 0x44]
cmp eax, dword [edi + 0x4c60]
jae 0x47c88c
mov edx, dword [edi + 0x4c5c]
mov eax, dword [edx + eax*4]
jmp 0x47c88e
xor eax, eax
mov ebx, dword [esp + 0x14]
mov dword [esi + 4], eax
mov eax, dword [edi + 0x96f0]
mov edi, dword [edi + 0x96ec]
cmp eax, edi
je 0x47c8b7
sub eax, edi
and eax, 0x3fffff
cmp eax, ebp
ja 0x47c8b7
mov eax, 1
jmp 0x47c8b9
xor eax, eax
mov byte [esi + 0xc], al
xor eax, eax
mov dword [esi + 0x40], eax
lea edi, [esi + 0x40]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [esi + 0x4c], 0x3c000
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], edx
test cl, 0x10
je 0x47c92e
mov ecx, ebx
call fcn.0043afa0
shr eax, 9
push 7
mov ecx, ebx
mov dword [esp + 0x1c], eax
call fcn.0043afd0
mov ebp, 1
mov dword [esp + 0x44], 7
mov eax, dword [esp + 0x18]
test eax, ebp
je 0x47c922
push ebx
call fcn.0045a6d0
mov dword [edi], eax
add edi, 4
rol ebp, 1
sub dword [esp + 0x44], 1
jne 0x47c912
cmp byte [esp + 0x48], 0
je 0x47ca07
push ebx
call fcn.0045a6d0
mov ebp, eax
cmp ebp, 0x10000
jae 0x47c708
test ebp, ebp
je 0x47c708
push ebp
call fcn.004af837
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
jne 0x47c970
mov ecx, 0x5062f4
call fcn.0042c410
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], 2
xor edi, edi
test ebp, ebp
jbe 0x47c9b2
mov ecx, dword [ebx]
add ecx, 3
cmp ecx, 0x8000
jae 0x47c9e2
mov ecx, ebx
call fcn.0043afa0
mov edx, dword [esp + 0x24]
shr eax, 8
push 8
mov ecx, ebx
mov byte [edx + edi], al
call fcn.0043afd0
inc edi
cmp edi, ebp
jb 0x47c986
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
lea ecx, [ebx + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
push ebp
push edi
call fcn.0045ba40
mov dword [esp + 0x38], 0xffffffff
test edi, edi
je 0x47ca0b
mov edx, edi
push edx
call fcn.004af901
add esp, 4
jmp 0x47ca0b
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x24], 0
je 0x47c708
mov eax, dword [esp + 0x24]
push eax
call fcn.004af901
add esp, 4
jmp 0x47c708
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x14]
mov dword [esi + 0x20], eax
mov ecx, dword [ebx + 0x24]
mov dword [esi + 0x24], ecx
mov ebp, dword [ebx + 0x38]
lea edx, [ebp - 1]
cmp edx, 0x1ffe
ja 0x47ca73
add dword [esi + 0x38], ebp
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x3c]
cmp ecx, eax
jbe 0x47ca62
mov edx, eax
shr edx, 2
lea edi, [edx + eax + 0x20]
cmp ecx, edi
jbe 0x47ca41
mov edi, ecx
mov eax, dword [esi + 0x34]
push edi
push eax
call fcn.004af98f
add esp, 8
mov dword [esi + 0x34], eax
test eax, eax
jne 0x47ca5f
mov ecx, 0x5062f4
call fcn.0042c410
mov dword [esi + 0x3c], edi
mov ecx, dword [ebx + 0x34]
mov edx, dword [esi + 0x34]
push ebp
push ecx
push edx
call fcn.004afc30
add esp, 0xc
mov edi, 0x40
cmp dword [esi + 0x2c], edi
jae 0x47cad5
mov eax, dword [esi + 0x28]
xor ebx, ebx
cmp eax, ebx
je 0x47ca92
push eax
call fcn.004af901
add esp, 4
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
add dword [esi + 0x2c], edi
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x30]
cmp ecx, eax
jbe 0x47cad5
mov edx, eax
shr edx, 2
lea edi, [edx + eax + 0x20]
cmp ecx, edi
jbe 0x47cab4
mov edi, ecx
mov eax, dword [esi + 0x28]
push edi
push eax
call fcn.004af98f
add esp, 8
mov dword [esi + 0x28], eax
cmp eax, ebx
jne 0x47cad2
mov ecx, 0x5062f4
call fcn.0042c410
mov dword [esi + 0x30], edi
mov edi, dword [esi + 0x28]
mov ebx, edi
lea ebp, [esi + 0x40]
mov dword [esp + 0x48], 7
mov ecx, dword [ebp]
push ecx
mov ecx, dword [esp + 0x24]
push ebx
call fcn.0045a6c0
add ebp, 4
add ebx, 4
sub dword [esp + 0x48], 1
jne 0x47cae5
mov edx, dword [esi + 4]
mov ebx, dword [esp + 0x20]
push edx
lea eax, [edi + 0x1c]
push eax
mov ecx, ebx
call fcn.0045a6c0
push 0
lea ecx, [edi + 0x20]
push ecx
mov ecx, ebx
call fcn.0045a6c0
mov edx, dword [esi + 8]
push edx
lea eax, [edi + 0x2c]
push eax
mov ecx, ebx
call fcn.0045a6c0
xor eax, eax
test byte [esp + 0x40], 8
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
je 0x47cbfd
mov ebp, dword [esp + 0x14]
mov ecx, dword [ebp]
add ecx, 3
cmp ecx, 0x8000
jae 0x47c708
push ebp
call fcn.0045a6d0
mov ebx, eax
cmp ebx, 0x1fc0
ja 0x47c708
mov eax, dword [esi + 0x2c]
lea edx, [ebx + 0x40]
cmp eax, edx
jae 0x47cbc0
mov ecx, ebx
sub ecx, eax
mov eax, dword [esi + 0x30]
add ecx, 0x40
add dword [esi + 0x2c], ecx
mov ecx, dword [esi + 0x2c]
cmp ecx, eax
jbe 0x47cbc0
mov edx, eax
shr edx, 2
lea edi, [edx + eax + 0x20]
cmp ecx, edi
jbe 0x47cb9f
mov edi, ecx
mov eax, dword [esi + 0x28]
push edi
push eax
call fcn.004af98f
add esp, 8
mov dword [esi + 0x28], eax
test eax, eax
jne 0x47cbbd
mov ecx, 0x5062f4
call fcn.0042c410
mov dword [esi + 0x30], edi
mov esi, dword [esi + 0x28]
add esi, 0x40
xor edi, edi
test ebx, ebx
jbe 0x47cbfd
lea esp, [esp]
mov ecx, dword [ebp]
add ecx, 3
cmp ecx, 0x8000
jae 0x47c708
mov ecx, ebp
call fcn.0043afa0
shr eax, 8
push 8
mov ecx, ebp
mov byte [edi + esi], al
call fcn.0043afd0
inc edi
cmp edi, ebx
jb 0x47cbd0
mov al, 1
jmp 0x47c70a