Function at 0x40def0
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x683820
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push ebp
mov ebp, ecx
push esi
xor esi, esi
push edi
mov eax, dword [ebp + 0xb0]
mov dword [ebp + 0xd0], esi
cmp eax, esi
je 0x40e95c
mov ecx, dword [ebp + 0xc4]
mov edx, dword [ebp + 0xe8]
cmp ecx, esi
mov dword [eax + 0x78], edx
jne 0x40e121
mov al, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x48]
mov byte [esp + 0x48], al
call fcn.004031c0
mov edi, 0x6dfe28
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x48]
push ebx
call fcn.00403350
test al, al
je 0x40df93
mov edi, dword [esp + 0x48]
mov ecx, ebx
mov edx, ecx
mov esi, 0x6dfe28
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x48]
call fcn.00403330
xor esi, esi
mov ecx, dword [ebp + 0xb0]
lea eax, [esp + 0x44]
push esi
push eax
mov dword [esp + 0x84], esi
call fcn.00429bf0
push 1
lea ecx, [esp + 0x48]
mov dword [esp + 0x80], 0xffffffff
call fcn.004031c0
mov ecx, dword [ebp + 0x78]
test ecx, 0x100000
je 0x40e0f6
test ecx, 0x800000
je 0x40dff5
mov edi, dword [ebp + 0x80]
mov eax, dword [ebp + 0x88]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
mov dword [ebp + 0xb4], eax
jmp 0x40e001
mov edx, dword [ebp + 0x80]
mov dword [ebp + 0xb4], edx
test ecx, 0x4000000
je 0x40e0d7
mov al, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov byte [esp + 0x48], al
call fcn.004031c0
mov edi, 0x6d39a0
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x48]
push ebx
call fcn.00403350
test al, al
je 0x40e06b
mov edi, dword [esp + 0x48]
mov ecx, ebx
mov edx, ecx
mov esi, 0x6d39a0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x48]
call fcn.00403330
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x44]
push eax
push 2
push ecx
mov ecx, dword [ebp + 0xb0]
mov dword [esp + 0x88], 1
call fcn.0042bcd0
push 1
lea ecx, [esp + 0x48]
mov dword [esp + 0x80], 0xffffffff
call fcn.004031c0
mov ecx, dword [ebp + 0x84]
mov eax, dword [ebp + 0x8c]
mov ebx, dword [esp + 0x30]
sub eax, ecx
sub eax, ebx
pop edi
cdq
sub eax, edx
pop esi
sar eax, 1
add eax, ecx
mov dword [ebp + 0xb8], eax
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret
mov edx, dword [ebp + 0x84]
pop edi
mov dword [ebp + 0xb8], edx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret
mov eax, dword [ebp + 0x80]
mov ecx, dword [ebp + 0x84]
pop edi
mov dword [ebp + 0xb4], eax
mov dword [ebp + 0xb8], ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret
mov dl, byte [ebp + 0xbc]
lea edi, [ebp + 0xbc]
push esi
lea ecx, [esp + 0x58]
mov byte [esp + 0x58], dl
call fcn.004031c0
mov eax, dword [0x6a3564]
lea ecx, [esp + 0x54]
push eax
push esi
push edi
call fcn.00402fc0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
cmp eax, esi
mov dword [esp + 0x7c], 2
mov dword [esp + 0x20], ecx
mov esi, 0x6a3560
je 0x40e16b
mov esi, eax
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x48]
mov byte [esp + 0x48], dl
call fcn.004031c0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x48]
push ebx
call fcn.00403350
test al, al
je 0x40e1ba
mov edi, dword [esp + 0x48]
mov ecx, ebx
mov eax, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x48]
call fcn.00403330
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [ebp + 0xb0]
lea edx, [esp + 0x48]
push edi
push edx
mov byte [esp + 0x88], 3
call fcn.0042bcd0
test eax, eax
push 1
lea ecx, [esp + 0x48]
sete bl
mov byte [esp + 0x80], 2
call fcn.004031c0
test bl, bl
je 0x40e233
mov ecx, dword [ebp + 0xb0]
lea eax, [esp + 0x54]
push 0
push eax
call fcn.00429bf0
push 1
lea ecx, [esp + 0x58]
mov dword [esp + 0x80], 0xffffffff
call fcn.004031c0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret
mov eax, dword [ebp + 0x80]
mov esi, dword [ebp + 0x88]
mov ecx, dword [ebp + 0x84]
mov ebx, dword [ebp + 0x8c]
mov edx, dword [ebp + 0x78]
sub esi, eax
sub ebx, ecx
mov dword [esp + 0x24], esi
test edx, 0x100000
je 0x40e617
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x68], cl
lea ecx, [esp + 0x68]
call fcn.004031c0
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x7c], 4
cmp eax, esi
jg 0x40e347
mov edx, dword [0x6a3564]
lea eax, [ebp + 0xbc]
push edx
push 0
push eax
lea ecx, [esp + 0x70]
call fcn.00402fc0
mov ecx, dword [ebp + 0x78]
test ecx, 0x400000
je 0x40e2be
mov eax, dword [ebp + 0x88]
mov edx, dword [esp + 0x3c]
sub eax, edx
mov dword [ebp + 0xb4], eax
jmp 0x40e2ef
test ecx, 0x800000
je 0x40e2e3
mov edx, dword [esp + 0x3c]
mov eax, esi
sub eax, edx
cdq
sub eax, edx
mov edx, dword [ebp + 0x80]
sar eax, 1
add eax, edx
mov dword [ebp + 0xb4], eax
jmp 0x40e2ef
mov edx, dword [ebp + 0x80]
mov dword [ebp + 0xb4], edx
test ecx, 0x2000000
je 0x40e30e
mov eax, dword [ebp + 0x8c]
mov ecx, dword [esp + 0x40]
sub eax, ecx
mov dword [ebp + 0xb8], eax
jmp 0x40e5c5
test ecx, 0x4000000
je 0x40e336
mov edi, dword [esp + 0x40]
mov eax, ebx
mov ecx, dword [ebp + 0x84]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov dword [ebp + 0xb8], eax
jmp 0x40e5c5
mov ecx, dword [ebp + 0x84]
mov dword [ebp + 0xb8], ecx
jmp 0x40e5c5
mov eax, dword [ebp + 0x78]
mov edx, dword [ebp + 0x80]
test eax, 0x2000000
mov dword [ebp + 0xb4], edx
je 0x40e371
mov eax, dword [ebp + 0x8c]
mov ecx, dword [esp + 0x40]
sub eax, ecx
mov dword [ebp + 0xb8], eax
jmp 0x40e3a1
test eax, 0x4000000
je 0x40e395
mov eax, ebx
mov ebx, dword [esp + 0x40]
mov ecx, dword [ebp + 0x84]
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov dword [ebp + 0xb8], eax
jmp 0x40e3a1
mov ecx, dword [ebp + 0x84]
mov dword [ebp + 0xb8], ecx
xor ecx, ecx
test edi, edi
mov dword [esp + 0x14], ecx
jle 0x40e580
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 2
jmp 0x40e3c5
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x58]
mov eax, 0x6a3560
test esi, esi
je 0x40e3d5
lea eax, [esi + ecx]
cmp byte [eax], 0xa
je 0x40e580
test esi, esi
mov eax, 0x6a3560
je 0x40e3ea
lea eax, [esi + ecx]
test byte [eax], 0x80
je 0x40e4ba
test esi, esi
jne 0x40e3fc
mov esi, 0x6a3560
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x48]
mov byte [esp + 0x48], dl
call fcn.004031c0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x48]
push ebx
call fcn.00403350
test al, al
je 0x40e44d
mov edi, dword [esp + 0x48]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x4c], ebx
mov byte [ecx + ebx], 0
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x48]
push eax
push ecx
mov ecx, dword [ebp + 0xb0]
mov byte [esp + 0x88], 5
call fcn.0042bcd0
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x80], 4
call fcn.004031c0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
cmp eax, edx
jg 0x40e580
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, 2
add esi, eax
add edx, eax
add ecx, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
jmp 0x40e570
test esi, esi
jne 0x40e4c3
mov esi, 0x6a3560
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], al
call fcn.004031c0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x30]
push ebx
call fcn.00403350
test al, al
je 0x40e514
mov edi, dword [esp + 0x30]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x34], ebx
mov byte [eax + ebx], 0
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [ebp + 0xb0]
lea eax, [esp + 0x30]
push edx
push eax
mov byte [esp + 0x88], 6
call fcn.0042bcd0
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x80], 4
call fcn.004031c0
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
cmp eax, ecx
jg 0x40e580
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc edx
inc ecx
inc eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
cmp edx, eax
jl 0x40e3c1
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x44]
push eax
push 0
push ecx
lea ecx, [ebp + 0xbc]
call fcn.00408170
mov edx, dword [0x6a3564]
lea ecx, [esp + 0x64]
push edx
push 0
push eax
mov byte [esp + 0x88], 7
call fcn.00402fc0
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x80], 4
call fcn.004031c0
mov ecx, dword [ebp + 0xb0]
lea eax, [esp + 0x64]
push 0
push eax
mov dword [ebp + 0xd0], 1
call fcn.00429bf0
mov eax, dword [esp + 0x68]
mov byte [esp + 0x7c], 2
test eax, eax
je 0x40e91f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40e609
cmp al, 0xff
je 0x40e609
dec al
mov byte [ecx], al
jmp 0x40e91f
push ecx
call fcn.006713a0
add esp, 4
jmp 0x40e91f
lea ebx, [ebp + 0xd4]
mov dword [ebp + 0xb4], eax
mov dword [ebp + 0xb8], ecx
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 4]
cmp eax, eax
mov ecx, eax
je 0x40e643
mov edx, dword [ecx]
add ecx, 4
mov dword [esi], edx
add esi, 4
cmp ecx, eax
jne 0x40e635
mov eax, dword [ebx + 8]
mov ecx, ebx
push eax
push esi
call fcn.004748c0
mov cl, byte [esp + 0x13]
xor eax, eax
mov byte [esp + 0x44], cl
mov edi, 0x6d3a58
or ecx, 0xffffffff
mov dword [ebx + 8], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], eax
push ecx
push 0x6d3a58
lea ecx, [esp + 0x4c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
call fcn.004083a0
mov ecx, dword [ebp + 0xb0]
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x48]
push 2
push eax
mov byte [esp + 0x88], 8
call fcn.0042bcd0
mov eax, dword [esp + 0x48]
mov byte [esp + 0x7c], 2
test eax, eax
je 0x40e6d5
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40e6cc
cmp al, 0xff
je 0x40e6cc
dec al
mov byte [ecx], al
jmp 0x40e6d5
push ecx
call fcn.006713a0
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [ebp + 0xd0], 1
mov eax, dword [ebx + 8]
push ecx
xor edi, edi
push 1
push eax
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.0062d440
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
cmp eax, esi
mov dword [esp + 0x1c], edi
jge 0x40e917
mov ecx, dword [esp + 0x58]
cmp ecx, edi
mov edx, 0x6a3560
je 0x40e71b
lea edx, [ecx + eax]
cmp byte [edx], 0xa
jne 0x40e760
inc eax
lea edx, [esi - 1]
cmp eax, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], edi
jge 0x40e90f
mov eax, dword [ebp + 0xd0]
lea ecx, [esp + 0x14]
inc eax
push ecx
mov dword [ebp + 0xd0], eax
mov eax, dword [ebx + 8]
push 1
push eax
mov ecx, ebx
call fcn.0062d440
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x14]
jmp 0x40e90f
cmp ecx, edi
mov edx, 0x6a3560
je 0x40e76c
lea edx, [ecx + eax]
test byte [edx], 0x80
je 0x40e77b
mov dword [esp + 0x18], 2
jmp 0x40e798
cmp ecx, edi
mov dword [esp + 0x18], 1
mov edx, 0x6a3560
je 0x40e78f
lea edx, [ecx + eax]
cmp byte [edx], 0x20
jne 0x40e798
mov dword [esp + 0x1c], eax
cmp ecx, edi
mov esi, 0x6a3560
je 0x40e7a4
lea esi, [ecx + eax]
mov dl, byte [esp + 0x13]
xor eax, eax
mov edi, esi
or ecx, 0xffffffff
mov byte [esp + 0x44], dl
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov dword [esp + 0x30], ecx
push ecx
lea ecx, [esp + 0x4c]
call fcn.00403350
test al, al
je 0x40e7fa
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x48]
mov ecx, eax
push eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x48]
call fcn.00403330
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x3c]
push eax
lea edx, [esp + 0x48]
push ecx
mov ecx, dword [ebp + 0xb0]
push edx
mov byte [esp + 0x88], 9
call fcn.0042bcd0
mov eax, dword [esp + 0x48]
xor edi, edi
cmp eax, edi
mov byte [esp + 0x7c], 2
je 0x40e848
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40e83f
cmp al, 0xff
je 0x40e83f
dec al
mov byte [ecx], al
jmp 0x40e848
push ecx
call fcn.006713a0
add esp, 4
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
lea ecx, [esi + eax]
mov eax, dword [esp + 0x24]
cmp ecx, eax
mov dword [esp + 0x50], edi
jle 0x40e8ed
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
xor esi, esi
lea ecx, [edx - 1]
cmp eax, ecx
jge 0x40e8f1
mov edi, dword [ebp + 0xd0]
inc edi
mov dword [ebp + 0xd0], edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x40e8b4
cmp edi, eax
jge 0x40e8b4
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x2c]
push ecx
inc edi
push 1
push eax
mov ecx, ebx
mov dword [esp + 0x38], edi
call fcn.0062d440
mov eax, edi
mov dword [esp + 0x1c], esi
jmp 0x40e8f1
lea edx, [eax + 1]
cmp edx, ecx
jge 0x40e8cd
cmp edi, eax
jne 0x40e8cd
mov eax, dword [ebx + 8]
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x2c]
push edx
jmp 0x40e8d5
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x14]
push ecx
push 1
push eax
mov ecx, ebx
call fcn.0062d440
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], 0
jmp 0x40e8f1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
add esi, ecx
mov ecx, dword [esp + 0x58]
add eax, edx
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], eax
xor edi, edi
cmp eax, esi
jl 0x40e70f
push edi
mov ecx, ebp
call fcn.0040e970
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x7c], 0xffffffff
test ecx, ecx
je 0x40e95c
mov al, byte [ecx - 1]
test al, al
je 0x40e952
cmp al, 0xff
je 0x40e952
pop edi
dec al
pop esi
pop ebp
mov byte [ecx - 1], al
pop ebx
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret
dec ecx
push ecx
call fcn.006713a0
add esp, 4
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x70
ret