Function at 0x843010
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x843018
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x844076
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0xcc8]
test esi, esi
je 0x843fe6
mov eax, dword [0x8a9588]
mov eax, dword [eax]
mov ebx, dword [eax + 0x800]
mov eax, dword [ebx + 0x2b0]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
mov edx, dword [0x8a9588]
mov edx, dword [ebx + 0x2b4]
call fcn.00404bcc
mov byte [ebp - 0x3d], 0
mov eax, dword [esi + 0x254]
cmp byte [eax + 0x46d], 0
je 0x843fe6
xor ecx, ecx
push ebp
push 0x843fdf
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov byte [ebp - 0x3f], 0
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x629c30]
call fcn.0062ad18
mov dword [ebp - 0x30], eax
xor edx, edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x12c]
mov eax, dword [ebp - 0x30]
call fcn.00637aa0
mov byte [eax + 0x30], 0
mov dl, 1
mov eax, dword [ebp - 0x30]
call fcn.00637bd4
mov eax, dword [0x8a9588]
mov eax, dword [eax]
call fcn.0076e658
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xcc8]
mov eax, dword [eax + 0x254]
mov ebx, dword [eax + 0x228]
mov edx, 0xffffff
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00839a40
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0xd8]
test al, al
je 0x84314b
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0xd0]
call fcn.0063df58
test al, al
jne 0x84314b
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, 0xffffff
call fcn.0087800c
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0xd0]
call fcn.00878138
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xcc8]
mov eax, dword [eax + 0x254]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xcc8]
mov edx, dword [eax + 0x254]
mov eax, dword [ebp - 0x30]
call fcn.0087eeec
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0x88]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e0]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x30]
call fcn.00637a4c
mov edx, eax
mov eax, dword [ebp - 0x20]
call fcn.005c87e0
xor ebx, ebx
mov eax, dword [0x8a9588]
mov eax, dword [eax]
cmp byte [eax + 0x151a], 0
jne 0x84321b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xcc8]
mov eax, dword [eax + 0x264]
xor edx, edx
call fcn.004055f0
je 0x84321b
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xcc8]
mov eax, dword [eax + 0x264]
call fcn.0047bf44
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
call fcn.00404dc4
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x1c]
call fcn.0040aabc
mov eax, dword [ebp - 0x1c]
mov edx, 0x844090
call fcn.00404f40
sete bl
mov eax, dword [ebp - 0x30]
push eax
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb9c]
mov ecx, dword [eax + 0x70]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0083c340
lea edx, [ebp - 0x28]
mov eax, dword [0x8a9588]
mov eax, dword [eax]
call fcn.0077ea94
mov byte [ebp - 0x31], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xcc8]
mov eax, dword [eax + 0x264]
xor edx, edx
call fcn.004055f0
jne 0x843652
mov byte [ebp - 0x3f], 1
lea edx, [ebp - 0x18]
mov eax, dword [0x8a9588]
mov eax, dword [eax]
mov eax, dword [eax + 0x800]
mov eax, dword [eax + 0x188]
call fcn.0040aabc
mov eax, dword [0x8a9588]
mov eax, dword [eax]
mov eax, dword [eax + 0x1078]
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x54]
test eax, eax
jl 0x8432bc
lea eax, [ebp - 0x18]
mov edx, dword [0x8a9588]
mov edx, dword [edx]
mov edx, dword [edx + 0x800]
mov edx, dword [edx + 0x188]
call fcn.00404bcc
jmp 0x8432c9
lea eax, [ebp - 0x18]
mov edx, 0x8440a0
call fcn.00404bcc
mov eax, dword [0x8a9588]
mov eax, dword [eax]
cmp byte [eax + 0x151a], 0
jne 0x843300
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0x18]
call fcn.0040aabc
mov eax, dword [ebp - 0x4c]
mov edx, 0x844090
call fcn.00404f40
jne 0x843300
lea eax, [ebp - 0x18]
mov edx, 0x8440b0
call fcn.00404bcc
mov eax, dword [0x8a9588]
mov eax, dword [eax]
mov eax, dword [eax + 0x800]
add eax, 0x188
mov edx, dword [ebp - 0x18]
call fcn.00404b88
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xcc8]
cmp byte [ebx + 0x24c], 0
je 0x843390
lea edx, [ebp - 0x50]
mov eax, dword [ebx + 0x248]
call fcn.0040af30
mov eax, dword [ebp - 0x50]
xor edx, edx
call fcn.004055f0
je 0x843390
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x28]
call fcn.00877708
push dword [ebp - 0x54]
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xcc8]
mov eax, dword [eax + 0x248]
call fcn.0040af30
push dword [ebp - 0x58]
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 0x18]
call fcn.0040544c
push dword [ebp - 0x5c]
mov eax, dword [ebp - 0x20]
add eax, 0x100
mov edx, 3
call fcn.004055a8
jmp 0x8433d6
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x28]
call fcn.00877708
push dword [ebp - 0x60]
push 0
push 0
lea ecx, [ebp - 0x64]
mov eax, dword [0x8a9588]
mov eax, dword [eax]
xor edx, edx
call fcn.0076f478
push dword [ebp - 0x64]
lea eax, [ebp - 0x68]
mov edx, dword [ebp - 0x18]
call fcn.0040544c
push dword [ebp - 0x68]
mov eax, dword [ebp - 0x20]
add eax, 0x100
mov edx, 3
call fcn.004055a8
lea edx, [ebp - 0x6c]
mov eax, dword [0x8a9588]
mov eax, dword [eax]
mov eax, dword [eax + 0x800]
mov eax, dword [eax + 0x188]
call fcn.0040aabc
mov eax, dword [ebp - 0x6c]
mov edx, 0x8440c0
call fcn.00404f40
jne 0x843452
mov eax, dword [0x8a9588]
mov eax, dword [eax]
mov eax, dword [eax + 0x800]
cmp byte [eax + 0x194], 0
je 0x843435
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x17c]
mov eax, dword [eax + 0x1bc]
mov dword [eax + 8], 8
mov dword [eax + 0x10], 3
jmp 0x843452
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x17c]
mov eax, dword [eax + 0x1bc]
mov dword [eax + 8], 8
mov dword [eax + 0x10], 1
lea edx, [ebp - 0x70]
mov eax, dword [0x8a9588]
mov eax, dword [eax]
mov eax, dword [eax + 0x800]
mov eax, dword [eax + 0x188]
call fcn.0040aabc
mov eax, dword [ebp - 0x70]
mov edx, 0x8440d0
call fcn.00404f40
jne 0x8434c0
mov eax, dword [0x8a9588]
mov eax, dword [eax]
mov eax, dword [eax + 0x800]
mov eax, dword [eax + 0x1a0]
test eax, eax
jl 0x8434c0
mov edx, dword [0x8a9588]
cmp eax, 6
jge 0x8434c0
mov ecx, dword [0x8a9588]
add eax, 2
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + 0x17c]
mov edx, dword [edx + 0x1bc]
mov dword [edx + 8], eax
mov dword [edx + 0x10], 1
lea edx, [ebp - 0x74]
mov eax, dword [0x8a9588]
mov eax, dword [eax]
mov eax, dword [eax + 0x800]
mov eax, dword [eax + 0x188]
call fcn.0040aabc
mov eax, dword [ebp - 0x74]
mov edx, 0x8440e0
call fcn.00404f40
je 0x843514
lea edx, [ebp - 0x78]
mov eax, dword [0x8a9588]
mov eax, dword [eax]
mov eax, dword [eax + 0x800]
mov eax, dword [eax + 0x188]
call fcn.0040aabc
mov eax, dword [ebp - 0x78]
mov edx, 0x8440f0
call fcn.00404f40
jne 0x84358f
mov eax, dword [0x8a9588]
mov eax, dword [eax]
mov eax, dword [eax + 0x800]
mov eax, dword [eax + 0x1a4]
test eax, eax
jne 0x84354a
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x17c]
mov eax, dword [eax + 0x1bc]
mov dword [eax + 8], 4
mov dword [eax + 0x10], 1
jmp 0x84358f
mov edx, dword [0x8a9588]
dec eax
jne 0x843572
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x17c]
mov eax, dword [eax + 0x1bc]
mov dword [eax + 8], 8
mov dword [eax + 0x10], 1
jmp 0x84358f
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x17c]
mov eax, dword [eax + 0x1bc]
mov dword [eax + 8], 8
mov dword [eax + 0x10], 3
lea edx, [ebp - 0x7c]
mov eax, dword [0x8a9588]
mov eax, dword [eax]
mov eax, dword [eax + 0x800]
mov eax, dword [eax + 0x188]
call fcn.0040aabc
mov eax, dword [ebp - 0x7c]
mov edx, 0x844090
call fcn.00404f40
jne 0x84378d
mov eax, dword [0x8a9588]
mov eax, dword [eax]
mov eax, dword [eax + 0x800]
mov eax, dword [eax + 0x1a8]
test eax, eax
jne 0x8435f6
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x17c]
mov eax, dword [eax + 0x1bc]
mov dword [eax + 8], 4
mov dword [eax + 0x10], 1
jmp 0x84378d
mov edx, dword [0x8a9588]
dec eax
jne 0x843621
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x17c]
mov eax, dword [eax + 0x1bc]
mov dword [eax + 8], 8
mov dword [eax + 0x10], 1
jmp 0x84378d
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x17c]
mov eax, dword [eax + 0x1bc]
mov dword [eax + 8], 8
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x17c]
mov eax, dword [eax + 0x1bc]
mov dword [eax + 0x10], 3
jmp 0x84378d
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x17c]
mov eax, dword [eax + 0x1bc]
add eax, 0xc
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xcc8]
mov edx, dword [edx + 0x264]
call fcn.004052a4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xcc8]
mov eax, dword [eax + 0x264]
call fcn.008765c8
test al, al
je 0x8436f2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xcc8]
mov eax, dword [eax + 0x254]
call fcn.00637a4c
mov eax, dword [eax + 0x1bc]
cmp dword [eax + 0x24], 3
jne 0x8436f2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xcc8]
mov edx, dword [eax + 0x264]
mov eax, dword [ebp - 4]
call fcn.0082fe70
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jle 0x8436f2
cmp dword [ebp - 0x24], 0x64
jg 0x8436f2
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x17c]
mov eax, dword [eax + 0x1bc]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0xc8], edx
mov byte [ebp - 0x31], 1
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xcc8]
mov eax, dword [eax + 0x264]
call fcn.0047bf0c
mov eax, dword [ebp - 0x80]
push eax
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x28]
call fcn.00877708
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x20]
add eax, 0x100
pop ecx
call fcn.00405544
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xcc8]
mov eax, dword [eax + 0x254]
call fcn.00637a4c
mov eax, dword [eax + 0x1bc]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + 0x17c]
mov edx, dword [edx + 0x1bc]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xcc8]
mov eax, dword [eax + 0x254]
call fcn.00637a4c
mov eax, dword [eax + 0x1bc]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + 0x17c]
mov edx, dword [edx + 0x1bc]
mov dword [edx + 0x10], eax
mov eax, dword [0x8a9dac]
mov eax, dword [eax]
mov byte [eax + 0x2fc], 1
mov eax, dword [ebp - 4]
call fcn.00838f44
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x78], eax
xor eax, eax
push ebp
push 0x843834
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.008486b8
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x174], 0
je 0x8437e7
mov eax, dword [0x8a9588]
mov eax, dword [eax]
mov eax, dword [eax + 0x800]
mov al, byte [eax + 0x72d]
mov edx, dword [ebp - 0x20]
mov byte [edx + 0x175], al
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x3c]
mov byte [ebp - 0x11], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x84383b
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x174], 0
je 0x843828
mov eax, dword [ebp - 0x20]
mov al, byte [eax + 0x175]
mov edx, dword [0x8a9588]
mov edx, dword [edx]
mov edx, dword [edx + 0x800]
mov byte [edx + 0x72d], al
mov eax, dword [0x8a9c84]
mov dword [eax], 0xffffffff
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x844080
lea eax, [ebp - 0x94]
mov edx, 2
call fcn.00405280
lea eax, [ebp - 0x8c]
call fcn.00404b34
lea eax, [ebp - 0x88]
mov edx, 3
call fcn.00405280
lea eax, [ebp - 0x7c]
mov edx, 5
call fcn.00404b58
lea eax, [ebp - 0x68]
mov edx, 7
call fcn.00405280
lea eax, [ebp - 0x4c]
call fcn.00404b34
lea eax, [ebp - 0x48]
call fcn.00405268
lea eax, [ebp - 0x44]
call fcn.00404b34
lea eax, [ebp - 0x3c]
call fcn.00404b34
lea eax, [ebp - 0x28]
call fcn.00405268
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404b58
lea eax, [ebp - 0x10]
call fcn.00405268
ret