Function at 0x77461440
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov edx, dword [ebp + 0x10]
sub esp, 0x34
push ebx
push esi
push edi
test edx, edx
je 0x7746163b
mov esi, dword [ebp + 8]
test esi, esi
je 0x774b59e4
cmp dword [esi + 8], 0xddeeddee
je 0x774b59fd
test byte [0x7753848c], 2
jne 0x774b5a0e
xor edi, edi
test dword [esi + 0x44], 0x1000000
jne 0x774b5cb8
test byte [esi + 0x48], 1
jne 0x774b5a5b
test dl, 7
jne 0x774b5a44
cmp byte [edx - 1], 5
lea edi, [edx - 8]
je 0x774b5a1f
test byte [edi + 7], 0x3f
je 0x774b5a2d
test edi, edi
je 0x774b5a6c
cmp byte [edx - 1], 5
je 0x774b5a97
mov eax, dword [ebp + 0xc]
cmp byte [edi + 7], 0
jge 0x77461649
mov ecx, edi
shr ecx, 3
xor ecx, dword [edi]
xor ecx, dword [0x77538774]
xor ecx, esi
test cx, cx
jne 0x774b5ca0
shr ecx, 0xd
mov eax, edi
sub eax, ecx
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x774b5ca0
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 4]
shr eax, 8
movzx edx, ax
mov eax, dword [ecx]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], edx
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x10]
xor eax, dword [esp + 0x18]
xor eax, ecx
xor eax, dword [0x77538774]
mov ecx, eax
movzx eax, ax
shr ecx, 0x10
imul ecx, edx
add ecx, dword [esp + 0x14]
add eax, ecx
cmp eax, edi
jne 0x774b5bdb
call fcn.77461a00
test eax, eax
jne 0x774b5bf8
mov eax, 0x7ffe0380
cmp byte [eax], 0
jne 0x774b5c0b
cmp word [0x7ffe036a], 1
mov ecx, 0x64
mov dword [esp + 0x18], ecx
jbe 0x774b5c34
mov edx, dword [esp + 0x10]
mov dword [esp + 0x24], 0
add edx, 0x10
mov esi, dword [edx]
mov eax, esi
shr eax, 0x10
mov dword [esp + 0x28], esi
test eax, 0x8000
jne 0x77461967
mov ecx, esi
mov eax, esi
or ecx, 0x80000000
lock cmpxchg dword [edx], ecx
cmp eax, esi
jne 0x77461963
cmp esi, 0xffffffff
je 0x77461978
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov byte [edi + 7], 0x80
mov edi, dword [esp + 0x10]
mov eax, dword [eax + 0x18]
btr dword [eax], ecx
cmp word [edi + 0xc], 0
jne 0x774619b2
mov ecx, dword [esp + 0x1c]
movzx eax, si
inc ecx
mov esi, dword [esp + 0x20]
add eax, ecx
shl esi, 0x10
or eax, esi
mov esi, dword [edi]
mov dword [esp + 0x28], esi
cmp ax, word [edi + 0x18]
je 0x77461660
lea esi, [edi + 0x1c]
mov dword [edx], eax
mov eax, dword [esi]
test al, 2
je 0x7746185b
mov esi, dword [ebp + 8]
mov edi, 1
mov eax, dword [0x77538684]
test al, 1
jne 0x774b5cc0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edx
mov edx, eax
mov ecx, esi
push edi
or edx, 2
call fcn.77461a20
movzx edi, al
test al, al
jne 0x77461623
jmp 0x77461630
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x58]
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x54]
cmp ecx, 1
jne 0x77461699
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x24]
jb 0x77461699
sub ecx, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi]
mov esi, dword [esp + 0x20]
cmp esi, dword [ecx + 0x14]
jb 0x7746160c
mov eax, dword [edi]
xor esi, esi
mov dword [esp + 0x18], eax
add eax, 4
xchg dword [eax], esi
test esi, esi
je 0x7746179d
lea edx, [esi + 0x1c]
mov edi, 0xfffffff9
mov eax, dword [edx]
mov ecx, eax
and ecx, edi
lock cmpxchg dword [edx], ecx
jne 0x774616b8
mov edi, dword [esp + 0x10]
cmp eax, 6
je 0x774b5c3f
mov ecx, dword [esp + 0x18]
mov edx, esi
call fcn.77462c60
test al, al
je 0x7746179d
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x7746179d
test dl, 2
jne 0x7746179d
mov ecx, edx
lea edi, [esi + 0x1c]
or ecx, 2
mov eax, edx
lock cmpxchg dword [edi], ecx
mov edi, dword [esp + 0x10]
cmp eax, edx
jne 0x774616e2
mov edx, dword [esi]
xor eax, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], eax
jmp 0x77461720
movzx ecx, word [edx + 0x5e]
add ecx, eax
and ecx, 0xf
lea eax, [ecx + 2]
lea eax, [edx + eax*4]
mov dword [esp + 0x28], eax
mov eax, dword [eax]
mov dword [esp + 0x20], eax
test eax, eax
je 0x77461949
mov eax, dword [eax + 0x1c]
test al, 1
jne 0x774618eb
mov eax, dword [esp + 0x24]
mov edx, esi
add eax, 8
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x20]
lock cmpxchg dword [ecx], edx
cmp eax, dword [esp + 0x20]
jne 0x774618e7
mov esi, dword [esp + 0x20]
mov edi, 0xfffffffd
lea edx, [esi + 0x1c]
mov eax, dword [edx]
mov ecx, eax
and ecx, edi
lock cmpxchg dword [edx], ecx
jne 0x77461778
mov edi, dword [esp + 0x10]
cmp eax, 2
jne 0x7746179d
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], 0
lea edx, [esi + 0x20]
call fcn.77467900
test byte [edi + 0x16], 3
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov eax, dword [edi]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], eax
jne 0x774b5c4e
mov eax, dword [edi + 4]
push ecx
mov ecx, esi
mov dword [eax + 0xc], 0
mov edx, dword [edi + 4]
call fcn.7745ff00
movzx eax, word [edi + 0x18]
mov ecx, dword [esp + 0x28]
neg eax
add ecx, 0x50
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov edi, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [esp + 0x28], edx
lea ebx, [edi + eax]
mov eax, edi
lea ecx, [edx - 1]
mov esi, dword [esp + 0x20]
lock cmpxchg8b qword [esi]
cmp eax, edi
mov ecx, esi
mov eax, dword [esp + 0x24]
jne 0x774617e4
cmp edx, dword [esp + 0x28]
jne 0x774617e4
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov dword [esi + 4], 0
lock inc dword [eax + 0x20]
mov dword [esi + 0x10], 0
lea edx, [esi + 0x1c]
mov edi, 0xfffffffe
mov eax, dword [edx]
mov ecx, eax
and ecx, edi
lock cmpxchg dword [edx], ecx
jne 0x77461831
cmp eax, 1
jne 0x7746161b
mov eax, dword [esi]
lea edx, [esi + 0x20]
mov ecx, dword [eax]
mov dword [esi], 0
call fcn.77467900
jmp 0x7746161b
mov ecx, dword [esp + 0x28]
mov edx, edi
call fcn.77462c60
test al, al
je 0x7746161b
mov edi, edi
mov edx, dword [esi]
test edx, edx
je 0x7746161b
test dl, 2
jne 0x7746161b
mov ecx, edx
mov eax, edx
or ecx, 2
lock cmpxchg dword [esi], ecx
cmp eax, edx
jne 0x77461870
mov eax, dword [edi]
xor edx, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov edi, edi
movzx ecx, word [eax + 0x5e]
add ecx, edx
and ecx, 0xf
lea edx, [ecx + 2]
mov esi, dword [eax + edx*4]
lea edx, [eax + edx*4]
test esi, esi
je 0x774618d5
mov eax, dword [esi + 0x1c]
test al, 1
je 0x77461917
mov edx, dword [esp + 0x24]
inc edx
mov dword [esp + 0x24], edx
cmp edx, 0x10
jae 0x77461990
mov eax, dword [esp + 0x20]
jmp 0x774618a0
mov ecx, edi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x7746161b
jmp 0x774618bd
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, 0x10
jb 0x77461720
mov eax, dword [esi]
movzx ecx, word [eax + 0x5c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + ecx*4 + 0x3c0]
add ecx, 0x48
jmp 0x77461795
mov eax, dword [esp + 0x20]
mov edx, edi
add eax, 8
lea ecx, [eax + ecx*4]
mov eax, esi
lock cmpxchg dword [ecx], edx
cmp eax, esi
jne 0x774618bd
mov edi, 0xfffffffd
lea edx, [esi + 0x1c]
mov eax, dword [edx]
mov ecx, eax
and ecx, edi
lock cmpxchg dword [edx], ecx
jne 0x77461937
cmp eax, 2
jmp 0x7746183e
mov edi, dword [esp + 0x28]
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edi], ecx
mov edi, dword [esp + 0x10]
test eax, eax
je 0x7746179d
jmp 0x774618eb
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
cmp eax, ecx
jbe 0x77461597
mov ecx, dword [esp + 0x10]
lea edx, [edi + 8]
mov byte [edi + 7], 0x80
lea ecx, [ecx + 8]
call fcn.77467900
jmp 0x7746161b
mov eax, dword [edi]
lea edx, [edi + 0x20]
movzx ecx, word [eax + 0x5c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + ecx*4 + 0x3c0]
add ecx, 0x48
call fcn.77467900
jmp 0x7746161b
lea ecx, [edi + 8]
call fcn.77448098
mov edx, eax
test edx, edx
je 0x774619e5
mov esi, dword [esp + 0x14]
mov ecx, dword [edx - 4]
mov eax, dword [esi + 0x18]
mov edx, dword [edx]
inc dword [esp + 0x1c]
shr ecx, 8
movzx ecx, cx
btr dword [eax], ecx
mov dword [esp + 0x20], ecx
test edx, edx
jne 0x774619c4
mov esi, dword [esp + 0x28]
lea edx, [edi + 0x10]
jmp 0x774615ed
push 0
push 0
push 0
push edx
xor edx, edx
lea ecx, [edx + 0x12]
call fcn.774a6033
mov edx, dword [ebp + 0x10]
jmp 0x77461464
push dword [ebp + 0xc]
mov ecx, esi
call fcn.774e670e
mov edi, eax
jmp 0x77461630
push dword [ebp + 0xc]
mov ecx, esi
call 0x77505240
mov edi, eax
jmp 0x77461630
movzx eax, byte [edi + 6]
shl eax, 3
sub edi, eax
jmp 0x774614ad
push 0
push 0
push 0
push edi
mov edx, esi
mov ecx, 8
call fcn.774a6033
xor edi, edi
jmp 0x774b5a64
push 0
push 0
push 0
push edx
mov edx, esi
mov ecx, 9
call fcn.774a6033
xor edi, edi
jmp 0x774b5a64
mov ecx, esi
call fcn.77480f38
mov edi, eax
mov edx, dword [ebp + 0x10]
jmp 0x774614b7
mov eax, dword fs:[0x18]
mov esi, dword fs:[0x18]
push 0xc000000d
mov dword [eax + 0xbf4], 0xc000000d
call fcn.774762b0
mov dword [esi + 0x34], eax
xor edi, edi
jmp 0x77461630
cmp byte [edi + 7], 0
jge 0x774b5ab6
mov edx, edi
mov ecx, esi
call 0x7750ae59
mov edx, dword [ebp + 0x10]
mov byte [esp + 0xf], al
test al, al
jne 0x774b5ae0
jmp 0x774b5b6e
cmp dword [esi + 0x4c], 0
je 0x774b5ae0
mov eax, dword [edi]
mov ecx, eax
xor ecx, dword [esi + 0x50]
mov dword [esp + 0x38], eax
mov dword [esp + 0x38], ecx
mov al, byte [esp + 0x3a]
xor al, byte [esp + 0x39]
xor al, cl
shr ecx, 0x18
cmp cl, al
jne 0x774b5b69
cmp byte [edi + 7], 0
jge 0x774b5b0d
mov ecx, edi
shr ecx, 3
xor ecx, dword [edi]
xor ecx, dword [0x77538774]
xor ecx, esi
test cx, cx
je 0x774b5afe
xor eax, eax
jmp 0x774b5b07
shr ecx, 0xd
mov eax, edi
sub eax, ecx
mov eax, dword [eax]
mov ax, word [eax + 0x14]
jmp 0x774b5b25
cmp dword [esi + 0x4c], 0
je 0x774b5b22
mov eax, dword [edi]
test dword [esi + 0x4c], eax
je 0x774b5b1d
xor eax, dword [esi + 0x50]
movzx eax, ax
jmp 0x774b5b25
movzx eax, word [edi]
cmp byte [edi + 7], 4
movzx eax, ax
movzx eax, ax
mov dword [esp + 0x24], eax
jne 0x774b5b5b
cmp dword [esi + 0x4c], 0
je 0x774b5b4a
mov eax, dword [edi]
test dword [esi + 0x4c], eax
je 0x774b5b45
xor eax, dword [esi + 0x50]
movzx eax, ax
jmp 0x774b5b4d
movzx eax, word [edi]
mov ecx, dword [edi - 8]
movzx eax, ax
sub ecx, eax
add ecx, dword [esp + 0x24]
jmp 0x774b5b62
lea ecx, [eax*8]
lea eax, [ecx + edi]
cmp eax, edx
jae 0x774b5b8e
mov byte [esp + 0xf], 0
push 0
push 0
push edx
push edi
mov edx, esi
mov ecx, 3
call fcn.774a6033
cmp byte [esp + 0xf], 0
je 0x774b5a6c
mov edx, dword [ebp + 0x10]
mov eax, dword [edx - 8]
lea ecx, [edx - 8]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
test eax, 0x3c000102
jne 0x774614cc
cmp byte [ecx + 7], 5
jne 0x774b5bba
movzx eax, byte [ecx + 6]
shl eax, 3
sub ecx, eax
add ecx, 8
jmp 0x774b5bbc
xor ecx, ecx
push ecx
mov ecx, dword [esp + 0x28]
push 3
push edx
mov edx, esi
call fcn.774effd9
test eax, eax
js 0x774b5a6c
mov edx, dword [ebp + 0x10]
jmp 0x774614c9
mov eax, dword [esp + 0x18]
mov ecx, 3
push 0
push 0
push 0
mov edx, dword [eax + 0xc]
push edi
call fcn.774a6033
jmp 0x7746161e
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x50]
add eax, 0x226
jmp 0x77461568
mov eax, dword fs:[0x30]
test byte [eax + 0x240], 1
je 0x77461571
mov eax, dword [esp + 0x18]
lea edx, [edi + 8]
push 2
mov ecx, dword [eax + 0xc]
call fcn.77502fe7
jmp 0x77461571
xor ecx, ecx
mov dword [esp + 0x18], ecx
jmp 0x77461588
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], 0
jmp 0x77461795
mov eax, dword [edi + 4]
mov ecx, edi
add eax, 0x101f
and eax, 0xfffff000
mov dword [esp + 0x30], eax
call fcn.77444837
movzx ecx, word [edi + 0x18]
mov edx, 1
movzx eax, ax
imul ecx, eax
lea eax, [esp + 0x34]
push eax
shl ecx, 3
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 0xc]
call fcn.7744f147
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x3c]
push eax
push 0xffffffffffffffff
call fcn.77492e60
jmp 0x774617ba
push 0
push 0
push 0
push edi
mov edx, esi
mov ecx, 3
call fcn.774a6033
jmp 0x7746161e
mov eax, dword [ebp + 0xc]
jmp 0x77461649
test al, 2
je 0x77461630
cmp esi, dword [0x77538770]
je 0x77461630
mov eax, dword fs:[0x30]
cmp dword [eax + 0x18], 0
je 0x77461630
test dword [ebp + 0xc], 0x10000000
jne 0x77461630
mov edx, dword [ebp + 0x10]
mov ecx, esi
call 0x77502687
jmp 0x77461630