Function at 0x478940
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4d7248
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x3c]
xor eax, eax
push edi
mov dword [ecx], eax
cmp esi, eax
je 0x478b87
mov ebp, dword [esp + 0x44]
cmp ebp, eax
je 0x478b87
cmp word [ebp], ax
je 0x478b87
mov dword [esp + 0x24], vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
mov dword [esp + 0x28], eax
mov byte [esp + 0x2c], al
mov ebx, edx
lea edi, [esp + 0x24]
mov dword [esp + 0x38], eax
call fcn.00477ce0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4789b5
mov eax, dword [eax]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4789bd
mov dword [esp + 0x10], 0x4e1a4c
lea ecx, [ebp + 2]
mov ax, word [ebp]
add ebp, 2
test ax, ax
jne 0x4789c0
mov eax, dword [esp + 0x10]
sub ebp, ecx
sar ebp, 1
mov dword [esp + 0x18], ebp
lea edx, [eax + 2]
jmp 0x4789e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4789e0
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x478b76
test eax, eax
je 0x478b76
mov edx, dword [esp + 0x40]
lea edi, [ebp + ebp]
mov dword [edx], edi
call fcn.00415010
mov ebx, dword [esp + 0x44]
movzx eax, word [ebx]
mov esi, dword [esi + 4]
mov ecx, eax
mov edx, eax
shr ecx, 3
and edx, 7
and ecx, 0xf
shl edx, 4
and eax, 0xff80
or ecx, edx
or ecx, eax
mov eax, dword [esp + 0x10]
movzx edi, cx
call fcn.00477c20
add eax, dword [esp + 0x14]
lea edx, [ebx + 2]
add eax, ebp
movzx eax, al
xor ax, di
mov word [esi], ax
add esi, 2
xor edi, edi
xor ebx, ebx
dec ebp
mov dword [esp + 0x20], 0
mov dword [esp + 0x40], edx
je 0x478b22
jmp 0x478a74
mov edx, dword [esp + 0x40]
mov cx, word [esi - 2]
xor cx, word [edx - 2]
push 0
movzx eax, cx
mov ecx, eax
and eax, 0xf
shl eax, 4
shr ecx, 4
and ecx, 0xf
or ecx, eax
movzx eax, word [edx]
mov edx, eax
mov ebp, eax
shr edx, 3
and edx, 0xf
and eax, 0xff80
and ebp, 7
movzx ecx, cx
shl ebp, 4
or edx, ebp
or edx, eax
movzx eax, dx
mov dword [esp + 0x20], eax
mov ebp, ecx
movzx ecx, bl
xor ecx, ebp
mov eax, 0xa41a41a5
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 7
imul eax, eax, 0x9c
mov edx, 0x64
sub edx, eax
mov eax, dword [esp + 0x14]
add ecx, edx
movzx edx, word [eax + edi*2]
sub edx, ebx
add edx, ebp
mov ebp, dword [esp + 0x1c]
push ecx
add edx, ebp
push 0
push edx
call fcn.004d3f30
movzx eax, al
xor ax, word [esp + 0x1c]
inc edi
mov word [esi], ax
cmp edi, dword [esp + 0x14]
jb 0x478b0e
xor edi, edi
add dword [esp + 0x40], 2
inc ebx
lea eax, [ebp - 1]
add esi, 2
cmp ebx, eax
jb 0x478a70
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
test eax, eax
je 0x478b61
lea ecx, [eax + 0x10]
mov eax, dword [ecx]
dec eax
mov dword [ecx], eax
jne 0x478b61
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 4]
test eax, eax
je 0x478b58
push eax
call fcn.004c57e5
add esp, 4
push esi
call fcn.004c57da
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
call fcn.004050a0
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
xor al, al
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret