Function at 0x415340
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4591bd
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x46c008]
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.00415210
mov ecx, dword [ebx + 0x38]
call fcn.00414770
mov esi, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x54], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
push ebx
call fcn.00414590
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 - 0x28], ecx
call fcn.0044a6fb
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.0044a831
add esp, 4
mov dword [edi + 0x30], eax
push dword [edi + 0x34]
call fcn.0044a6fb
add esp, 4
mov dword [edi + 0x34], 0
push dword [ebp - 0x2c]
call fcn.0044a831
add esp, 4
mov dword [edi + 0x34], eax
push dword [edi + 0x38]
call fcn.0044a6fb
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.0044a831
add esp, 4
mov dword [edi + 0x38], eax
push dword [edi + 0x2c]
call fcn.0044a6fb
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.0044a831
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 edx, edx
mov byte [ebp - 4], 2
mov ebx, dword [ebx + 0x38]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x40], edx
cmp dword [ebp - 0x2c], edx
jbe 0x4158c3
nop
mov eax, dword [ebp - 0x18]
xor esi, esi
shl edx, 2
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x3c], edx
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x1c], esi
mov ecx, dword [eax + 8]
sub ecx, dword [ebp - 0x28]
add ecx, dword [eax]
mov eax, dword [edi + 0x38]
mov dword [edx + eax], ecx
mov ecx, ebx
call fcn.00414770
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x415a92
cmp ecx, 0x40
ja 0x415a92
mov dword [ebp - 0x38], esi
test ecx, ecx
je 0x4156e7
nop
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 4]
cmp ecx, eax
jae 0x415a73
mov edx, dword [ebx]
mov bl, byte [edx + ecx]
inc ecx
mov byte [ebp + 0xb], bl
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x44], ecx
mov dword [ebx + 8], ecx
mov bl, byte [ebp + 0xb]
test bl, 0xc0
jne 0x415a92
movzx ebx, bl
and ebx, 0xf
cmp ebx, 8
ja 0x415a92
sub eax, ecx
cmp ebx, eax
ja 0x415a73
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 - 0x24], eax
test ebx, ebx
je 0x415578
nop
movzx eax, byte [ecx + eax]
inc ecx
shld edi, esi, 8
cdq
shl esi, 8
or edi, edx
or esi, eax
mov eax, dword [ebp - 0x24]
cmp ecx, ebx
jb 0x415560
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp + 0xc]
add eax, ebx
mov dword [ecx + 8], eax
cmp dword [edx + 0x50], 0x80
jae 0x41561a
mov ebx, dword [edx + 0x50]
lea eax, [edx + 0x4c]
xor edx, edx
mov dword [ebp - 0x4c], eax
test ebx, ebx
je 0x4155e1
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 - 0x44], ecx
mov ecx, dword [ebp - 0x24]
cmp esi, dword [ecx + eax*8]
mov ecx, dword [ebp - 0x44]
jne 0x4155c5
cmp edi, ecx
je 0x415617
cmp edi, ecx
ja 0x4155d7
jb 0x4155d3
mov ecx, dword [ebp - 0x24]
cmp esi, dword [ecx + eax*8]
jae 0x4155d7
mov ebx, eax
jmp 0x4155da
lea edx, [eax + 1]
cmp edx, ebx
jne 0x4155a7
mov eax, dword [ebp - 0x4c]
mov ecx, eax
call fcn.00417b80
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x4c]
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.0044b640
mov edx, dword [ebp + 0xc]
add esp, 0xc
mov eax, dword [edx + 0x4c]
mov dword [eax + ebx*8], esi
mov dword [eax + ebx*8 + 4], edi
inc dword [edx + 0x50]
mov ecx, dword [ebp - 0x14]
mov dl, byte [ebp + 0xb]
mov ebx, 1
test dl, 0x10
je 0x41564b
call fcn.00414770
mov ebx, eax
cmp ebx, 0x40
ja 0x415a92
mov ecx, dword [ebp - 0x14]
call fcn.00414770
cmp eax, 1
jne 0x415a92
mov dl, byte [ebp + 0xb]
mov eax, dword [ebp - 0x1c]
add eax, ebx
mov dword [ebp - 0x1c], eax
cmp eax, 0x40
ja 0x415a92
mov ebx, dword [ebp - 0x14]
test dl, 0x20
je 0x4156d2
mov ecx, ebx
call fcn.00414770
mov ecx, dword [ebx + 4]
mov edx, eax
sub ecx, dword [ebx + 8]
cmp edx, ecx
ja 0x415a73
cmp esi, 0x21
jne 0x4156a4
test edi, edi
jne 0x4156a4
cmp edx, 1
jne 0x4156cf
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 0x4156cf
mov byte [ecx + 0x44], al
jmp 0x4156cf
cmp esi, 0x30101
jne 0x4156cf
test edi, edi
jne 0x4156cf
cmp edx, 5
jne 0x4156cf
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 0x4156cf
mov dword [ecx + 0x48], eax
add dword [ebx + 8], edx
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x10]
inc edx
mov dword [ebp - 0x38], edx
cmp edx, ecx
jb 0x415500
mov esi, dword [ebp - 0x1c]
cmp ecx, 1
jne 0x4156fe
cmp esi, ecx
jne 0x4156fe
mov dword [ebp - 0x30], 0
mov edi, ecx
jmp 0x41586f
lea edi, [ecx - 1]
cmp esi, edi
jb 0x415a92
mov dword [ebp - 0x6c], 0
cmp esi, dword [ebp - 0x68]
jbe 0x41574e
cmp esi, 0x7fffffff
ja 0x415a78
push dword [ebp - 0x70]
call fcn.0044a6fb
add esp, 4
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x68], 0
push esi
call fcn.0044a831
mov ecx, dword [ebp - 0x10]
add esp, 4
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x68], esi
jmp 0x415751
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x6c], esi
test esi, esi
je 0x415767
push esi
push 0
push eax
call fcn.0044bbc0
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x60], 0
cmp ecx, dword [ebp - 0x5c]
jbe 0x4157a2
push dword [ebp - 0x64]
call fcn.0044a6fb
add esp, 4
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x5c], 0
push dword [ebp - 0x10]
call fcn.0044a831
mov ecx, dword [ebp - 0x10]
add esp, 4
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x5c], ecx
jmp 0x4157a5
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x60], ecx
test ecx, ecx
je 0x4157bb
push ecx
push 0
push eax
call fcn.0044bbc0
mov ecx, dword [ebp - 0x10]
add esp, 0xc
xor esi, esi
test edi, edi
je 0x415812
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x38]
call fcn.00414770
cmp eax, dword [ebp - 0x1c]
jae 0x415a92
mov ecx, dword [ebp - 0x70]
cmp byte [ecx + eax], 0
jne 0x415a92
mov byte [ecx + eax], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x38]
call fcn.00414770
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
jae 0x415a92
mov edx, dword [ebp - 0x64]
cmp byte [edx + eax], 0
jne 0x415a92
inc esi
mov byte [edx + eax], 1
cmp esi, edi
jb 0x4157c1
mov edi, dword [ebp - 0x1c]
lea eax, [ecx - 1]
sub edi, eax
cmp edi, 1
je 0x41584e
xor esi, esi
test edi, edi
je 0x41584e
mov ecx, ebx
call fcn.00414770
cmp eax, dword [ebp - 0x1c]
jae 0x415a92
mov ecx, dword [ebp - 0x70]
cmp byte [ecx + eax], 0
jne 0x415a92
inc esi
mov byte [ecx + eax], 1
cmp esi, edi
jb 0x415825
mov ecx, dword [ebp - 0x10]
xor eax, eax
test ecx, ecx
je 0x41586f
mov edx, dword [ebp - 0x64]
cmp byte [edx + eax], 0
je 0x415864
inc eax
cmp eax, ecx
jb 0x415857
jmp 0x415867
mov dword [ebp - 0x30], eax
cmp eax, ecx
je 0x415a92
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x20]
mov eax, dword [edx + 0x2c]
mov dword [ebx + eax], esi
add esi, ecx
mov eax, dword [edx + 0x30]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x20], esi
mov esi, ebx
mov ebx, dword [ebp - 0x14]
mov dword [esi + eax], ecx
mov eax, dword [edx]
sub eax, ecx
cmp edi, eax
ja 0x415a8d
add ecx, edi
mov edi, edx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x30]
mov eax, dword [edi + 0x34]
mov byte [edx + eax], cl
inc edx
mov dword [ebp - 0x40], edx
cmp edx, dword [ebp - 0x2c]
jb 0x4154b0
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax + 0x38]
mov esi, dword [ebx + 8]
mov eax, dword [edi + 0x2c]
sub esi, dword [ebp - 0x28]
add esi, dword [ebx]
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x18]
mov dword [eax + edx*4], ecx
mov eax, dword [edi + 0x30]
mov ecx, dword [ebp - 0x34]
mov dword [eax + edx*4], ecx
mov eax, dword [ebx + 0x38]
mov ecx, dword [eax + 8]
sub ecx, dword [ebp - 0x28]
add ecx, dword [eax]
mov eax, dword [edi + 0x38]
mov dword [eax + edx*4], ecx
cmp esi, dword [edi + 0x40]
je 0x415929
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x41590d
push eax
call fcn.0044a6fb
add esp, 4
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
test esi, esi
je 0x41593c
push esi
call fcn.0044a831
add esp, 4
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], esi
jmp 0x41592d
test esi, esi
je 0x41593c
push esi
push dword [ebp - 0x28]
push dword [edi + 0x3c]
call fcn.0044b640
add esp, 0xc
push dword [ebp - 0x64]
call fcn.0044a6fb
add esp, 4
push dword [ebp - 0x70]
call fcn.0044a6fb
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x54], 0
je 0x415993
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x38]
mov ecx, dword [eax + 4]
sub ecx, dword [eax + 8]
je 0x415971
mov byte [edx + 0x3c], 1
add dword [edx + 4], 0xffffffff
mov eax, dword [edx + 4]
je 0x415993
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 0x415993
mov eax, dword [edx + eax*4 + 0x10]
add dword [ecx + 8], eax
mov ecx, dword [ebx + 0x38]
call fcn.00414680
cmp eax, 0xc
jne 0x4159a4
test edx, edx
je 0x4159c5
or eax, edx
je 0x415a8d
mov ecx, dword [ebx + 0x38]
call fcn.00414640
mov ecx, dword [ebx + 0x38]
call fcn.00414680
cmp eax, 0xc
jne 0x4159a4
test edx, edx
jne 0x4159a4
push dword [edi + 0x28]
call fcn.0044a6fb
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.0044a831
xor esi, esi
mov dword [edi + 0x28], eax
add esp, 4
cmp dword [ebp - 0x20], esi
jbe 0x415a18
nop dword [eax]
mov ecx, dword [ebx + 0x38]
call fcn.00414680
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 0x415a00
mov ecx, dword [ebx + 0x38]
call fcn.00414680
mov esi, eax
mov ecx, esi
or ecx, edx
je 0x415a5f
cmp esi, 0xa
jne 0x415a49
test edx, edx
jne 0x415a49
lea esi, [edi + 0xc]
mov ecx, ebx
push esi
push dword [ebp - 0x2c]
call fcn.00416320
push esi
mov ecx, ebx
call fcn.00415260
jmp 0x415a51
mov ecx, dword [ebx + 0x38]
call fcn.00414640
mov ecx, dword [ebx + 0x38]
call fcn.00414680
mov esi, eax
or eax, edx
jne 0x415a28
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.00414480
push 0x46a740
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x7e5
push eax
call fcn.0044d691
call fcn.00414480
call fcn.00414490
int3