Function at 0x412c20
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441518
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x44e008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
push 0
push 0xb
call fcn.00412950
mov ecx, dword [ebx + 0x38]
call fcn.00411e80
mov esi, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], esi
mov word [ebp - 0x54], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
push ebx
call fcn.00411ce0
mov eax, dword [ebx + 0x38]
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
add ecx, dword [eax]
mov dword [edi + 4], esi
push dword [edi + 0x30]
mov dword [ebp - 0x30], ecx
call fcn.004340fc
inc esi
mov dword [edi + 0x30], 0
xor ecx, ecx
add esp, 4
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043424b
add esp, 4
mov dword [edi + 0x30], eax
push dword [edi + 0x34]
call fcn.004340fc
add esp, 4
mov dword [edi + 0x34], 0
push dword [ebp - 0x28]
call fcn.0043424b
add esp, 4
mov dword [edi + 0x34], eax
push dword [edi + 0x38]
call fcn.004340fc
xor ecx, ecx
mov dword [edi + 0x38], 0
add esp, 4
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043424b
add esp, 4
mov dword [edi + 0x38], eax
push dword [edi + 0x2c]
call fcn.004340fc
xor ecx, ecx
mov dword [edi + 0x2c], 0
add esp, 4
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043424b
add esp, 4
mov dword [edi + 0x2c], eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
xor esi, esi
mov byte [ebp - 4], 2
mov ebx, dword [ebx + 0x38]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x28], esi
jbe 0x4131d5
nop
mov eax, dword [ebp - 0x18]
mov edx, dword [edi + 0x38]
shl esi, 2
mov dword [ebp - 0x44], esi
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x38], 0
mov eax, dword [ecx + 8]
sub eax, dword [ebp - 0x30]
add eax, dword [ecx]
mov ecx, ebx
mov dword [edx + esi], eax
xor esi, esi
mov dword [ebp - 0x1c], esi
call fcn.00411e80
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x4133da
cmp ecx, 0x40
ja 0x4133da
mov dword [ebp - 0x40], esi
test ecx, ecx
je 0x412fcc
nop
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 4]
cmp ecx, eax
jae 0x4133df
mov edx, dword [ebx]
mov bl, byte [edx + ecx]
inc ecx
mov byte [ebp + 0xb], bl
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x24], ecx
mov dword [ebx + 8], ecx
mov bl, byte [ebp + 0xb]
test bl, 0xc0
jne 0x4133da
movzx ebx, bl
and ebx, 0xf
cmp ebx, 8
ja 0x4133da
sub eax, ecx
cmp ebx, eax
ja 0x4133df
lea eax, [ecx + edx]
xorps xmm0, xmm0
movlpd qword [ebp - 0x50], xmm0
xor ecx, ecx
mov edi, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x34], eax
test ebx, ebx
je 0x412e5a
nop
movzx eax, byte [ecx + eax]
inc ecx
shld edi, esi, 8
cdq
shl esi, 8
or edx, edi
or esi, eax
mov edi, edx
mov eax, dword [ebp - 0x34]
cmp ecx, ebx
jb 0x412e40
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
add eax, ebx
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x50]
cmp ebx, 0x80
jae 0x412eff
add eax, 0x4c
xor edx, edx
mov dword [ebp - 0x34], eax
test ebx, ebx
je 0x412ec2
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x24]
lea eax, [ebx + edx]
shr eax, 1
mov ecx, dword [ecx + eax*8 + 4]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0x24]
cmp esi, dword [ecx + eax*8]
mov ecx, dword [ebp - 0x4c]
jne 0x412ea6
cmp edi, ecx
je 0x412efc
cmp edi, ecx
ja 0x412eb8
jb 0x412eb4
mov ecx, dword [ebp - 0x24]
cmp esi, dword [ecx + eax*8]
jae 0x412eb8
mov ebx, eax
jmp 0x412ebb
lea edx, [eax + 1]
cmp edx, ebx
jne 0x412e88
mov eax, dword [ebp - 0x34]
mov ecx, eax
call fcn.00415170
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [eax + ebx*8]
mov eax, dword [edx + 0x50]
sub eax, ebx
shl eax, 3
push eax
push ecx
lea eax, [ecx + 8]
push eax
call fcn.00437570
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov eax, dword [eax]
mov dword [eax + ebx*8], esi
mov dword [eax + ebx*8 + 4], edi
mov eax, dword [ebp + 0xc]
inc dword [eax + 0x50]
mov ecx, dword [ebp - 0x14]
mov dl, byte [ebp + 0xb]
mov ebx, 1
test dl, 0x10
je 0x412f30
call fcn.00411e80
mov ebx, eax
cmp ebx, 0x40
ja 0x4133da
mov ecx, dword [ebp - 0x14]
call fcn.00411e80
cmp eax, 1
jne 0x4133da
mov dl, byte [ebp + 0xb]
mov eax, dword [ebp - 0x1c]
add eax, ebx
mov dword [ebp - 0x1c], eax
cmp eax, 0x40
ja 0x4133da
mov ebx, dword [ebp - 0x14]
test dl, 0x20
je 0x412fb7
mov ecx, ebx
call fcn.00411e80
mov ecx, dword [ebx + 4]
mov edx, eax
sub ecx, dword [ebx + 8]
cmp edx, ecx
ja 0x4133df
cmp esi, 0x21
jne 0x412f89
test edi, edi
jne 0x412f89
cmp edx, 1
jne 0x412fb4
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x38]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
mov al, byte [ecx + eax]
mov ecx, dword [ebp + 0xc]
cmp byte [ecx + 0x44], al
jae 0x412fb4
mov byte [ecx + 0x44], al
jmp 0x412fb4
cmp esi, 0x30101
jne 0x412fb4
test edi, edi
jne 0x412fb4
cmp edx, 5
jne 0x412fb4
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x38]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
mov eax, dword [ecx + eax + 1]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x48], eax
jae 0x412fb4
mov dword [ecx + 0x48], eax
add dword [ebx + 8], edx
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
inc edx
mov dword [ebp - 0x40], edx
cmp edx, ecx
jb 0x412de0
mov esi, dword [ebp - 0x1c]
cmp ecx, 1
jne 0x412fe3
cmp esi, ecx
jne 0x412fe3
mov dword [ebp - 0x38], 0
mov edi, ecx
jmp 0x41317e
lea eax, [ecx - 1]
cmp esi, eax
jb 0x4133da
mov dword [ebp - 0x6c], 0
cmp esi, dword [ebp - 0x68]
jbe 0x413035
cmp esi, 0x7fffffff
ja 0x4133e4
push dword [ebp - 0x70]
call fcn.004340fc
add esp, 4
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x68], 0
push esi
call fcn.0043424b
mov ecx, dword [ebp - 0x10]
mov edx, eax
add esp, 4
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x68], esi
jmp 0x413038
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x6c], esi
test esi, esi
je 0x413056
mov ecx, esi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x60], 0
cmp ecx, dword [ebp - 0x5c]
jbe 0x41309f
cmp ecx, 0x7fffffff
ja 0x4133e4
push dword [ebp - 0x64]
call fcn.004340fc
add esp, 4
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x5c], 0
push dword [ebp - 0x10]
call fcn.0043424b
mov ecx, dword [ebp - 0x10]
mov edx, eax
add esp, 4
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x5c], ecx
jmp 0x4130a2
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x60], ecx
test ecx, ecx
je 0x4130be
mov edi, edx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp - 0x10]
lea edi, [ecx - 1]
xor esi, esi
test edi, edi
je 0x413121
nop word [eax + eax]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x38]
call fcn.00411e80
cmp eax, dword [ebp - 0x1c]
jae 0x4133da
mov ecx, dword [ebp - 0x70]
cmp byte [ecx + eax], 0
jne 0x4133da
mov byte [ecx + eax], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x38]
call fcn.00411e80
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
jae 0x4133da
mov edx, dword [ebp - 0x64]
cmp byte [edx + eax], 0
jne 0x4133da
inc esi
mov byte [edx + eax], 1
cmp esi, edi
jb 0x4130d0
mov edi, dword [ebp - 0x1c]
lea eax, [ecx - 1]
sub edi, eax
cmp edi, 1
je 0x41315d
xor esi, esi
test edi, edi
je 0x41315d
mov ecx, ebx
call fcn.00411e80
cmp eax, dword [ebp - 0x1c]
jae 0x4133da
mov ecx, dword [ebp - 0x70]
cmp byte [ecx + eax], 0
jne 0x4133da
inc esi
mov byte [ecx + eax], 1
cmp esi, edi
jb 0x413134
mov ecx, dword [ebp - 0x10]
xor eax, eax
test ecx, ecx
je 0x413176
mov edx, dword [ebp - 0x64]
cmp byte [edx + eax], 0
je 0x413173
inc eax
cmp eax, ecx
jb 0x413166
jmp 0x413176
mov dword [ebp - 0x38], eax
cmp eax, ecx
je 0x4133da
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x20]
mov eax, dword [edx + 0x2c]
mov dword [eax + ebx], esi
add esi, ecx
mov eax, dword [edx + 0x30]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x20], esi
mov esi, ebx
mov ebx, dword [ebp - 0x14]
mov dword [eax + esi], ecx
mov eax, dword [edx]
sub eax, ecx
cmp edi, eax
ja 0x4133f9
mov esi, dword [ebp - 0x2c]
add ecx, edi
mov edi, edx
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x38]
mov eax, dword [edi + 0x34]
mov byte [eax + esi], cl
inc esi
mov dword [ebp - 0x2c], esi
cmp esi, dword [ebp - 0x28]
jb 0x412d90
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax + 0x38]
mov eax, dword [edi + 0x2c]
mov esi, dword [ebx + 8]
mov ecx, dword [ebp - 0x2c]
sub esi, dword [ebp - 0x30]
add esi, dword [ebx]
mov edx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x18]
mov dword [eax + ecx*4], edx
mov eax, dword [edi + 0x30]
mov edx, dword [ebp - 0x3c]
mov dword [eax + ecx*4], edx
mov ecx, dword [ebx + 0x38]
mov edx, dword [edi + 0x38]
mov eax, dword [ecx + 8]
sub eax, dword [ebp - 0x30]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x2c]
mov dword [edx + ecx*4], eax
cmp esi, dword [edi + 0x40]
je 0x41323c
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x413222
push eax
call fcn.004340fc
add esp, 4
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
test esi, esi
je 0x41324f
push esi
call fcn.0043424b
add esp, 4
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], esi
test esi, esi
je 0x41324f
push esi
push dword [ebp - 0x30]
push dword [edi + 0x3c]
call fcn.00437af0
add esp, 0xc
push dword [ebp - 0x64]
call fcn.004340fc
add esp, 4
push dword [ebp - 0x70]
call fcn.004340fc
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x54], 0
je 0x4132a6
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x38]
mov ecx, dword [eax + 4]
sub ecx, dword [eax + 8]
je 0x413284
mov byte [edx + 0x3c], 1
add dword [edx + 4], 0xffffffff
mov eax, dword [edx + 4]
je 0x4132a6
cmp byte [ebp - 0x53], 0
lea eax, [eax + eax*2]
lea ecx, [edx - 4]
lea ecx, [ecx + eax*4]
mov dword [edx + 0x38], ecx
je 0x4132a6
mov eax, dword [edx + eax*4 + 0x10]
add dword [ecx + 8], eax
push 0
push 0xc
mov ecx, ebx
call fcn.00412950
push dword [edi + 0x28]
call fcn.004340fc
mov eax, dword [ebp - 0x20]
xor ecx, ecx
add esp, 4
mov dword [edi + 0x28], 0
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043424b
xor esi, esi
mov dword [edi + 0x28], eax
add esp, 4
cmp dword [ebp - 0x20], esi
jbe 0x413308
nop dword [eax]
mov ecx, dword [ebx + 0x38]
call fcn.00411d90
mov ecx, dword [edi + 0x28]
mov dword [ecx + esi*8], eax
mov dword [ecx + esi*8 + 4], edx
inc esi
cmp esi, dword [ebp - 0x20]
jb 0x4132f0
mov ecx, dword [ebx + 0x38]
call fcn.00411d90
mov esi, eax
mov ecx, esi
or ecx, edx
je 0x4133c6
nop dword [eax]
cmp esi, 0xa
jne 0x41338f
test edx, edx
jne 0x41338f
mov edx, dword [ebx + 0x38]
lea esi, [edi + 0xc]
mov edi, dword [edx + 8]
cmp edi, dword [edx + 4]
jae 0x4133df
mov eax, dword [edx]
mov cl, byte [edi + eax]
lea eax, [edi + 1]
mov dword [edx + 8], eax
test cl, cl
jne 0x41335f
push esi
push dword [ebp - 0x28]
mov ecx, ebx
call fcn.00413b30
push esi
mov ecx, ebx
call fcn.004129c0
jmp 0x4133b0
mov edi, dword [ebp - 0x28]
mov ecx, esi
push edi
call fcn.004150b0
test edi, edi
je 0x413385
mov ecx, edi
mov eax, 0x1010101
mov edi, dword [esi]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push esi
mov ecx, ebx
call fcn.004129c0
jmp 0x4133b0
mov esi, dword [ebx + 0x38]
mov ecx, esi
call fcn.00411d90
mov ecx, dword [esi + 4]
mov edi, dword [esi + 8]
sub ecx, edi
test edx, edx
ja 0x4133df
jb 0x4133ab
cmp eax, ecx
ja 0x4133df
add eax, edi
mov dword [esi + 8], eax
mov ecx, dword [ebx + 0x38]
call fcn.00411d90
mov esi, eax
or eax, edx
je 0x4133c6
mov edi, dword [ebp + 0xc]
jmp 0x413320
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.00411be0
call fcn.00411bd0
push 0x44c518
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x7e5
push eax
call fcn.00435d4e
call fcn.00411bd0
int3