Function at 0x497e98
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a8a00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
lea eax, [esp + 0x2c]
push edi
mov ebp, ecx
push eax
call fcn.00476fc8
add esp, 4
push 0x4d10bc
lea ecx, [esp + 0x30]
xor esi, esi
push eax
push ecx
mov dword [esp + 0x58], esi
call fcn.0050d60c
lea edi, [ebp + 0x9b4]
lea edx, [esp + 0x28]
push edi
push eax
push edx
mov byte [esp + 0x58], 1
call fcn.0050d6a2
push 0x4d1c58
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x54], 2
push eax
call fcn.0050d60c
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 6
call fcn.0050d468
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4c], 5
call fcn.0050d468
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c], 4
call fcn.0050d468
lea ecx, [esp + 0x1c]
call fcn.0050d46e
mov ecx, ebp
mov byte [esp + 0x4c], 7
mov dword [esp + 0x20], esi
call fcn.0049f038
mov ecx, dword [esp + 0x10]
mov esi, dword [0x4b40d8]
push ecx
push 0x63
push 0x4d1ce4
push 0x4ce2e0
call esi
mov ebx, eax
cmp ebx, 0x3e7
mov dword [esp + 0x24], ebx
jbe 0x498498
mov ebx, 0x63
mov dword [esp + 0x24], ebx
push 0x15f
lea eax, [esp + 0x20]
push 0x4ce1a8
push eax
mov dword [esp + 0x2c], 1
call fcn.0050d5e2
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
add esp, 0xc
push ecx
push edx
push 0x4d1ce4
push 0x4ce2e0
call dword [fcn.004b4098]
cmp ebx, 0x159
jb 0x497fc9
cmp ebx, 0x190
jne 0x49804d
lea eax, [esp + 0x40]
push eax
call fcn.00476fc8
add esp, 4
push 0x4d10bc
lea ecx, [esp + 0x40]
mov bl, 8
push eax
push ecx
mov byte [esp + 0x58], bl
call fcn.0050d60c
push edi
lea edx, [esp + 0x3c]
push eax
push edx
mov byte [esp + 0x58], 9
call fcn.0050d6a2
push 0x4d10d0
push eax
lea eax, [esp + 0x3c]
mov byte [esp + 0x54], 0xa
push eax
call fcn.0050d60c
mov eax, dword [eax]
push eax
call dword [0x4b406c]
lea ecx, [esp + 0x34]
call fcn.0050d468
lea ecx, [esp + 0x38]
mov byte [esp + 0x4c], 9
call fcn.0050d468
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4c], bl
call fcn.0050d468
lea ecx, [esp + 0x40]
mov byte [esp + 0x4c], 7
call fcn.0050d468
push 0x2800
call fcn.0050d486
add esp, 4
lea ecx, [esp + 0x18]
mov ebx, eax
call fcn.0050d46e
mov ecx, 0xa00
xor eax, eax
mov edi, ebx
mov byte [esp + 0x4c], 0xb
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
push ecx
push 0x2800
push ebx
push 0x4d85a8
push 0x4d1cd8
push 0x4d1cd0
call dword [fcn.004b40d4]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push ebx
call fcn.0050d630
call fcn.00477148
mov edi, eax
mov eax, dword [0x4de098]
add esp, 8
test eax, eax
je 0x4980d5
push eax
call fcn.0050d474
add esp, 4
mov dword [0x4de098], 0
mov eax, dword [esp + 0x14]
cmp edi, 0x1dc
jne 0x4980ff
mov ecx, 0x77
mov esi, eax
mov edi, 0x4de030
rep movsd dword es:[edi], dword [esi]
mov esi, dword [0x4b40d8]
mov dword [0x4de098], 0
push eax
call fcn.0050d474
mov ecx, 0xa00
xor eax, eax
mov edi, ebx
mov dword [esp + 0x18], 0
add esp, 4
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
push eax
push 0x2800
push ebx
push 0x4d85a8
push 0x4d1cc4
push 0x4d1c3c
call dword [fcn.004b40d4]
lea ecx, [esp + 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push ebx
call fcn.0050d630
call fcn.00477148
add esp, 8
cmp eax, 0x38
mov eax, dword [esp + 0x14]
jne 0x498172
mov ecx, 0xe
mov esi, eax
mov edi, 0x4de210
rep movsd dword es:[edi], dword [esi]
mov esi, dword [0x4b40d8]
push eax
call fcn.0050d474
mov edx, dword [esp + 0x14]
add esp, 4
push edx
push 0
push 0x4d1cb4
push 0x4d1c3c
call esi
cmp eax, 0x96
mov dword [ebp + 0xb0], eax
jb 0x4981a5
mov dword [ebp + 0xa94], 1
mov eax, dword [esp + 0x10]
push eax
push 0
push 0x4d1ca8
push 0x4d1c3c
call esi
mov ecx, dword [0x4de8b0]
mov dword [ecx + 0xf00], eax
mov eax, dword [0x4de8b0]
mov ecx, 0x12c
cmp dword [eax + 0xf00], ecx
jb 0x4981ec
mov dword [eax + 0xe94], 1
mov edx, dword [0x4de8b0]
mov dword [edx + 0xf00], ecx
mov eax, dword [esp + 0x10]
push eax
push 0
push 0x4d1c9c
push 0x4d1c3c
call esi
mov ecx, dword [0x4de8b0]
mov dword [ecx + 0xf04], eax
mov eax, dword [0x4de8b0]
mov ecx, 0x64
cmp dword [eax + 0xf04], ecx
jb 0x498223
mov dword [eax + 0xf04], ecx
lea edx, [esp + 0x40]
push edx
call fcn.0050d7c2
mov edi, dword [eax]
mov ecx, ebp
call fcn.004aa5a8
push ebx
mov dword [ebp + 0x9c], eax
mov dword [ebp + 0x74], edi
call fcn.0050d474
mov ecx, dword [0x4de038]
mov ebx, dword [0x4de034]
mov edi, dword [0x4de048]
mov eax, dword [0x4de068]
mov esi, dword [0x4de044]
mov edx, 1
and ecx, edx
and ebx, edx
and edi, edx
mov dword [0x4de038], ecx
mov ecx, dword [0x4de060]
mov dword [0x4de034], ebx
mov ebx, dword [0x4de064]
mov dword [0x4de048], edi
mov edi, dword [0x4de04c]
and eax, edx
and esi, edx
and ecx, edx
and ebx, edx
and edi, edx
mov dword [0x4de068], eax
mov eax, dword [0x4de03c]
mov dword [0x4de044], esi
mov esi, dword [0x4de054]
mov dword [0x4de060], ecx
mov ecx, dword [0x4de050]
mov dword [0x4de064], ebx
mov ebx, dword [0x4de070]
mov dword [0x4de04c], edi
mov edi, dword [0x4de040]
and eax, edx
and esi, edx
and ecx, edx
and ebx, edx
and edi, edx
mov dword [0x4de03c], eax
mov eax, dword [0x4de058]
mov dword [0x4de054], esi
mov esi, dword [0x4de030]
mov dword [0x4de050], ecx
mov ecx, dword [0x4de198]
mov dword [0x4de070], ebx
mov ebx, dword [0x4de1e4]
mov dword [0x4de040], edi
mov edi, dword [0x4de1f0]
and eax, edx
and esi, 0x3bff
and ecx, 0x3f
and ebx, edx
and edi, edx
mov dword [0x4de058], eax
mov eax, dword [0x4de1e8]
mov dword [0x4de030], esi
mov esi, dword [0x4de1f8]
mov dword [0x4de198], ecx
mov ecx, dword [0x4de1f4]
mov dword [0x4de1e4], ebx
mov dword [0x4de1f0], edi
mov edi, dword [0x4de1a8]
mov ebx, 0x3e7
add esp, 4
and eax, edx
and esi, edx
and ecx, edx
cmp edi, ebx
mov dword [0x4de1e8], eax
mov dword [0x4de1f8], esi
mov dword [0x4de1f4], ecx
mov dword [0x4de1d8], 0xa
jbe 0x498391
mov edi, ebx
mov dword [0x4de1a8], edi
mov ecx, dword [0x4de1b0]
mov eax, 0x270f
cmp ecx, eax
jbe 0x4983a5
mov dword [0x4de1b0], eax
cmp dword [0x4de1b4], eax
jbe 0x4983b2
mov dword [0x4de1b4], eax
cmp dword [0x4de1d4], ebx
jbe 0x4983c0
mov dword [0x4de1d4], ebx
cmp dword [0x4de1ac], ebx
jbe 0x4983ce
mov dword [0x4de1ac], ebx
cmp dword [0x4de1c0], ebx
jbe 0x4983dc
mov dword [0x4de1c0], ebx
cmp dword [0x4de1a0], ebx
jbe 0x4983ea
mov dword [0x4de1a0], ebx
cmp dword [0x4de1bc], ebx
jbe 0x4983f8
mov dword [0x4de1bc], ebx
cmp dword [0x4de1c8], ebx
jbe 0x498406
mov dword [0x4de1c8], ebx
cmp dword [0x4de1d0], ebx
jbe 0x498414
mov dword [0x4de1d0], ebx
cmp dword [0x4de1cc], ebx
jbe 0x498422
mov dword [0x4de1cc], ebx
mov eax, dword [ebp + 0x9a8]
mov ecx, dword [0x4de074]
dec eax
cmp ecx, eax
jbe 0x498438
mov dword [0x4de074], eax
mov ecx, dword [0x4de0a4]
cmp ecx, ebx
jbe 0x49844a
mov ecx, ebx
mov dword [0x4de0a4], ecx
mov eax, dword [0x4de0a8]
cmp eax, ebx
jbe 0x49845a
mov eax, ebx
mov dword [0x4de0a8], eax
cmp ecx, edx
jae 0x498464
mov dword [0x4de0a4], edx
cmp eax, edx
jae 0x49846e
mov dword [0x4de0a8], edx
mov ecx, dword [0x4de0ac]
mov eax, 0x1e
cmp ecx, eax
jbe 0x498482
mov dword [0x4de0ac], eax
mov eax, dword [0x4de0a0]
mov esi, 9
cmp eax, esi
jbe 0x4984d7
mov dword [0x4de0a0], esi
jmp 0x4984e1
cmp ebx, 0x15f
jb 0x497f7c
cmp ebx, 0x190
je 0x497f7c
cmp ebx, 0x15f
jbe 0x49804d
mov edx, dword [ebp + 0x64]
push 0x30
push 0x4ce3b0
push 0x4d1c68
push edx
call dword [0x4b47f8]
jmp 0x49804d
cmp eax, edx
jae 0x4984e1
mov dword [0x4de0a0], edx
mov eax, dword [0x4de1e0]
cmp eax, edx
jae 0x4984f2
mov dword [0x4de1e0], edx
jmp 0x4984fc
cmp eax, esi
jbe 0x4984fc
mov dword [0x4de1e0], esi
cmp dword [0x4de1dc], ebx
jbe 0x49850a
mov dword [0x4de1dc], ebx
mov eax, dword [0x4de094]
mov ecx, 0x18
cmp eax, ecx
jbe 0x498525
mov dword [0x4de094], ecx
mov edx, 2
jmp 0x498534
mov edx, 2
cmp eax, edx
jae 0x498534
mov dword [0x4de094], edx
mov eax, dword [0x4de090]
cmp eax, 1
jae 0x49854a
mov dword [0x4de090], 1
jmp 0x498554
cmp eax, esi
jbe 0x498554
mov dword [0x4de090], esi
mov eax, 0x17
cmp dword [0x4de088], eax
jbe 0x498566
mov dword [0x4de088], eax
cmp dword [0x4de084], eax
jbe 0x498573
mov dword [0x4de084], eax
cmp dword [0x4de08c], esi
jbe 0x498581
mov dword [0x4de08c], esi
mov eax, 1
cmp word [0x4de09c], ax
jae 0x498595
mov word [0x4de09c], ax
mov eax, dword [0x4de0b8]
cmp eax, 1
jae 0x4985ab
mov dword [0x4de0b8], 1
jmp 0x4985b5
cmp eax, esi
jbe 0x4985b5
mov dword [0x4de0b8], esi
mov eax, dword [0x4de0b4]
cmp eax, ecx
jbe 0x4985c6
mov dword [0x4de0b4], ecx
jmp 0x4985d0
cmp eax, edx
jae 0x4985d0
mov dword [0x4de0b4], edx
mov eax, dword [0x4de0b0]
cmp eax, 1
jae 0x4985e6
mov dword [0x4de0b0], 1
jmp 0x4985f0
cmp eax, esi
jbe 0x4985f0
mov dword [0x4de0b0], esi
mov eax, dword [0x4de190]
mov ecx, 0x63
cmp eax, ecx
jbe 0x498604
mov dword [0x4de190], ecx
cmp dword [0x4de194], ebx
jbe 0x498612
mov dword [0x4de194], ebx
cmp dword [0x4de174], ebx
jbe 0x498620
mov dword [0x4de174], ebx
cmp dword [0x4de178], ebx
jbe 0x49862e
mov dword [0x4de178], ebx
cmp dword [0x4de0bc], esi
jbe 0x49863c
mov dword [0x4de0bc], esi
cmp dword [0x4de0c0], esi
jbe 0x49864a
mov dword [0x4de0c0], esi
cmp dword [0x4de19c], edx
jbe 0x498658
mov dword [0x4de19c], edx
cmp dword [0x4de18c], ebx
jbe 0x498666
mov dword [0x4de18c], ebx
mov eax, dword [0x4de204]
cmp eax, 1
jae 0x49867c
mov dword [0x4de204], 1
jmp 0x498686
cmp eax, ecx
jbe 0x498686
mov dword [0x4de204], ecx
cmp dword [0x4de208], esi
jbe 0x498694
mov dword [0x4de208], esi
push edi
mov ecx, ebp
call fcn.0049e768
mov dword [ebp + 0xb14], eax
mov eax, dword [0x4de1b0]
push eax
mov ecx, ebp
call fcn.0049e768
mov dword [ebp + 0xb1c], eax
mov ecx, dword [0x4de1d4]
push ecx
mov ecx, ebp
call fcn.0049e768
mov dword [ebp + 0xb30], eax
mov edx, dword [0x4de1ac]
push edx
mov ecx, ebp
call fcn.0049e768
mov dword [ebp + 0xb18], eax
mov eax, dword [0x4de1c0]
push eax
mov ecx, ebp
call fcn.0049e768
mov dword [ebp + 0xb24], eax
mov ecx, dword [0x4de1a0]
push ecx
mov ecx, ebp
call fcn.0049e768
mov dword [ebp + 0xb10], eax
mov edx, dword [0x4de1c8]
push edx
mov ecx, ebp
call fcn.0049e768
mov dword [ebp + 0xb2c], eax
mov eax, dword [0x4de1a8]
push eax
mov ecx, ebp
call fcn.0049e768
mov ecx, dword [0x4de8b0]
mov dword [ecx + 0xf10], eax
mov edx, dword [0x4de1b4]
push edx
mov ecx, ebp
call fcn.0049e768
mov ecx, dword [0x4de8b0]
mov dword [ecx + 0xf18], eax
mov edx, dword [0x4de1d4]
push edx
mov ecx, ebp
call fcn.0049e768
mov ecx, dword [0x4de8b0]
mov dword [ecx + 0xf2c], eax
mov edx, dword [0x4de1ac]
push edx
mov ecx, ebp
call fcn.0049e768
mov ecx, dword [0x4de8b0]
mov dword [ecx + 0xf14], eax
mov edx, dword [0x4de1c0]
push edx
mov ecx, ebp
call fcn.0049e768
mov ecx, dword [0x4de8b0]
mov dword [ecx + 0xf20], eax
mov edx, dword [0x4de1a0]
push edx
mov ecx, ebp
call fcn.0049e768
mov ecx, dword [0x4de8b0]
mov dword [ecx + 0xf0c], eax
mov edx, dword [0x4de1c8]
push edx
mov ecx, ebp
call fcn.0049e768
mov ecx, dword [0x4de8b0]
mov dword [ecx + 0xf28], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x49884e
cmp dword [esp + 0x24], 0x150
jae 0x49884e
mov edx, dword [0x4de11c]
mov esi, dword [0x4de030]
or dh, 0x10
push 0x1dc
mov dword [0x4de11c], edx
lea edx, [esp + 0x44]
or esi, 0x800
push 0x4de030
push edx
mov dword [0x4de030], esi
call fcn.00477248
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 0xc
call fcn.0050d5e8
lea ecx, [esp + 0x40]
mov byte [esp + 0x4c], 0xb
call fcn.0050d468
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push 0x4d1cd8
push 0x4d1cd0
call dword [fcn.004b4098]
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 7
call fcn.0050d468
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 4
call fcn.0050d468
lea ecx, [esp + 0x10]
mov dword [esp + 0x4c], 0xffffffff
call fcn.0050d468
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x40
ret