Function at 0x101c56b
Capabilities:
Get number of processors

Disassembly:
movzx eax, word [esi + 0x4c]
and dword [ebp - 0x204], 0
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax]
lea ebx, [ebp - 0x1f8]
lea edi, [ebp - 0x68]
cmp dword [ebp - 0x204], 0x64
jae 0x101c58a
movzx eax, word [esi + 8]
cmp word [ebp - 0x20c], ax
jge 0x101c58a
mov eax, dword [ebp - 0x224]
movzx edx, word [eax]
mov eax, dword [ebp - 0x220]
movzx eax, word [eax]
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x248], eax
cmp ax, 0x20
jb 0x101c395
cmp ax, 0x7f
jne 0x101c39e
cmp dword [ebp - 0x24c], 0
je 0x101c40f
push dword [ebp - 0x218]
push dword [0x1038334]
push dword [0x1038268]
call 0xff15b7
test eax, eax
je 0x101c497
cmp dword [ebp - 0x204], 0x63
jae 0x101c58a
movsx eax, word [esi + 8]
movsx ecx, word [ebp - 0x20c]
dec eax
cmp ecx, eax
jge 0x101c58a
mov eax, dword [ebp - 0x218]
push 2
pop ecx
add dword [ebp - 0x20c], ecx
add dword [ebp - 0x204], ecx
mov word [ebx], ax
add ebx, ecx
mov byte [edi], 1
inc edi
mov word [ebx], ax
add ebx, ecx
mov byte [edi], cl
inc edi
add dword [ebp - 0x200], ecx
jmp 0x101c565
movzx ecx, ax
sub ecx, 7
je 0x101c513
dec ecx
je 0x101c58a
dec ecx
je 0x101c4bf
dec ecx
je 0x101c58a
sub ecx, 3
mov ax, word [ebp - 0x218]
mov word [ebx], ax
inc ebx
inc ebx
inc dword [ebp - 0x20c]
inc dword [ebp - 0x204]
add dword [ebp - 0x200], 2
mov byte [edi], 0
inc edi
jmp 0x101c565
mov ecx, dword [ebp - 0x20c]
and ecx, 7
push 8
pop eax
sub eax, ecx
movzx ecx, word [esi + 8]
add dword [ebp - 0x20c], eax
cmp word [ebp - 0x20c], cx
jge 0x101c58a
xor ecx, ecx
test eax, eax
jbe 0x101c50a
cmp dword [ebp - 0x204], 0x64
jae 0x101c50a
push 0x20
pop edx
mov word [ebx], dx
inc ebx
inc ebx
mov byte [edi], 0
inc edi
inc ecx
inc dword [ebp - 0x204]
cmp ecx, eax
jb 0x101c4ea
add dword [ebp - 0x200], 2
jmp 0x101c565
test byte [ebp + 0x24], 4
je 0x101c550
cmp dword [ebp - 0x204], 0x63
jae 0x101c58a
push 0x5e
pop ecx
mov word [ebx], cx
push 2
pop ecx
add dword [ebp - 0x20c], ecx
add dword [ebp - 0x204], ecx
add dword [ebp - 0x200], ecx
add ebx, ecx
add eax, 0x40
mov word [ebx], ax
add ebx, ecx
mov byte [edi], 0
inc edi
jmp 0x101c4b6
push 0
push 0
push 0x403
push dword [0x1038260]
call dword [0x1001208]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x228]
add dword [ebp - 0x224], 2
add dword [ebp - 0x220], 2
add dword [eax], 2
cmp dword [eax], ecx
jb 0x101c34d
cmp dword [ebp - 0x204], 0
je 0x101c66c
movsx eax, word [esi + 8]
movsx ecx, word [esi + 0x4c]
sub eax, ecx
cmp dword [ebp - 0x204], eax
jbe 0x101c5af
mov dword [ebp - 0x204], eax
mov edi, dword [ebp - 0x204]
lea eax, [ebp - 0x68]
push eax
push esi
push edi
lea eax, [ebp - 0x1f8]
push eax
call fcn.010195f2
movzx eax, word [esi + 0x4c]
mov word [ebp - 0x238], ax
lea eax, [edi + eax - 1]
mov word [ebp - 0x234], ax
movzx eax, word [esi + 0x4e]
mov word [ebp - 0x236], ax
mov word [ebp - 0x232], ax
lea eax, [ebp - 0x238]
push eax
push esi
call fcn.0101ac9e
mov ax, word [esi + 0x4c]
push dword [ebp + 0x28]
add dword [ebp - 0x210], edi
add ax, di
mov word [ebp - 0x1fc], ax
mov ax, word [esi + 0x4e]
mov word [ebp - 0x1fa], ax
mov eax, dword [ebp + 0x24]
and eax, 2
push eax
push dword [ebp - 0x1fc]
push esi
call fcn.0101c0b1
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x228]
jne 0x101cb85
push esi
call 0xfe89cf
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x101cbb1
mov ecx, dword [ebp - 0x210]
mov dword [eax], ecx
jmp 0x101cbb1
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x21c]
cmp dword [ecx], eax
je 0x101cb99
mov eax, dword [ebp - 0x224]
movzx ecx, word [eax]
movzx eax, cx
sub eax, 8
je 0x101c87a
dec eax
je 0x101c7df
dec eax
je 0x101c7c7
sub eax, 3
je 0x101c79f
movzx eax, cx
cmp ax, 0x20
jb 0x101cb61
push eax
push dword [0x1038334]
push dword [0x1038268]
call 0xff15b7
test eax, eax
je 0x101cb61
movsx eax, word [esi + 8]
movsx ecx, word [ebp - 0x20c]
dec eax
cmp ecx, eax
jl 0x101cb61
test byte [esi + 4], 2
je 0x101cb61
mov ecx, dword [esi + 0x4c]
movsx edx, word [esi + 0x44]
movsx edi, word [esi + 0xa]
mov eax, ecx
shr eax, 0x10
cwde
add eax, edx
cdq
idiv edi
movsx eax, dx
imul eax, eax, 0x1c
add eax, dword [esi + 0x3c]
movsx edx, cx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
add eax, edx
test byte [eax], 2
lea ecx, [ecx + edx*2]
je 0x101c768
push 0x20
pop edx
mov word [ecx - 2], dx
mov word [ecx], dx
mov byte [eax], 0
mov byte [eax - 1], 0
movzx eax, word [esi + 0x4c]
lea ecx, [eax - 1]
mov word [ebp - 0x234], ax
movzx eax, word [esi + 0x4e]
mov word [ebp - 0x236], ax
mov word [ebp - 0x232], ax
lea eax, [ebp - 0x238]
push eax
push esi
mov word [ebp - 0x238], cx
call fcn.0101ac9e
push dword [ebp + 0x28]
xor eax, eax
mov word [ebp - 0x1fc], ax
mov ax, word [esi + 0x4e]
inc ax
mov word [ebp - 0x1fa], ax
mov eax, dword [ebp + 0x24]
and eax, 2
push eax
push dword [ebp - 0x1fc]
push esi
call fcn.0101c0b1
mov dword [ebp - 0x208], eax
jmp 0x101cb85
add dword [ebp - 0x200], 2
xor eax, eax
mov word [ebp - 0x1fc], ax
mov ax, word [esi + 0x4e]
mov word [ebp - 0x1fa], ax
mov eax, dword [ebp + 0x24]
shr eax, 1
and eax, 1
jmp 0x101cb4b
add dword [ebp - 0x200], 2
xor eax, eax
mov word [ebp - 0x1fc], ax
mov ax, word [esi + 0x4e]
inc ax
jmp 0x101c7b3
movzx ecx, word [esi + 0x4c]
add dword [ebp - 0x200], 2
mov edx, ecx
push 8
and edx, 7
pop eax
sub eax, edx
add dword [ebp - 0x210], eax
add ecx, eax
movzx eax, word [esi + 8]
cmp cx, ax
mov word [ebp - 0x1fc], cx
jl 0x101c82a
movsx ecx, word [esi + 0x4c]
cwde
sub eax, ecx
mov dword [ebp - 0x214], eax
xor eax, eax
mov word [ebp - 0x1fc], ax
mov ax, word [esi + 0x4e]
inc ax
jmp 0x101c83d
movsx eax, word [esi + 0x4c]
movsx ecx, cx
sub ecx, eax
mov ax, word [esi + 0x4e]
mov dword [ebp - 0x214], ecx
push 0
mov word [ebp - 0x1fa], ax
lea eax, [ebp - 0x214]
push eax
push 4
push dword [esi + 0x4c]
push 0x1038ea0
push esi
call fcn.0101adb2
lea eax, [ebp - 0x214]
push eax
push 3
push dword [esi + 0x4c]
push dword [ebp - 0x230]
push esi
call fcn.0101b6ec
jmp 0x101c7ba
mov edi, dword [ebp - 0x200]
mov eax, dword [esi + 0x4c]
dec dword [ebp - 0x210]
mov dword [ebp - 0x1fc], eax
cmp edi, dword [ebp - 0x22c]
je 0x101ca5a
sub edi, dword [ebp - 0x22c]
sar edi, 1
cmp edi, 0x64
jle 0x101c8d7
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea ecx, [edi + edi]
push ecx
push dword [0x1038030]
push dword [eax + 0x18]
call dword [fcn.01001370]
test eax, eax
jne 0x101c8dd
mov dword [ebp - 0x208], 0xc0000017
jmp 0x101cbb8
lea eax, [ebp - 0x130]
mov ebx, dword [ebp - 0x22c]
mov ecx, eax
test edi, edi
jbe 0x101c913
mov dword [ebp - 0x218], edi
movzx edx, word [ebx]
cmp dx, 8
jne 0x101c900
cmp ecx, eax
jbe 0x101c905
dec ecx
dec ecx
jmp 0x101c905
mov word [ecx], dx
inc ecx
inc ecx
inc ebx
inc ebx
dec dword [ebp - 0x218]
jne 0x101c8ef
cmp ecx, eax
jne 0x101c918
push 0x20
pop ebx
jmp 0x101c91c
movzx ebx, word [ecx - 2]
lea ecx, [ebp - 0x130]
cmp eax, ecx
je 0x101c93b
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [fcn.01001378]
cmp bx, 9
jne 0x101c98c
push dword [0x1038334]
dec edi
push edi
push dword [ebp - 0x22c]
push dword [ebp + 0x20]
call fcn.0100a175
sub word [ebp - 0x1fc], ax
jns 0x101ca61
movsx eax, word [esi + 8]
dec eax
cdq
and edx, 7
add eax, edx
sar eax, 3
dec word [ebp - 0x1fa]
lea eax, [eax*8 + 1]
mov word [ebp - 0x1fc], ax
jmp 0x101ca61
cmp bx, 0x20
jae 0x101c9e0
dec word [ebp - 0x1fc]
dec dword [ebp - 0x210]
test byte [ebp + 0x24], 1
je 0x101ca5a
push 0
lea eax, [ebp - 0x214]
push eax
push 4
push dword [ebp - 0x1fc]
mov dword [ebp - 0x214], 1
push 0x1038ea0
push esi
call fcn.0101adb2
lea eax, [ebp - 0x214]
push eax
push 3
push dword [ebp - 0x1fc]
jmp 0x101ca4e
push ebx
push dword [0x1038334]
push dword [0x1038268]
call 0xff15b7
test eax, eax
je 0x101ca5a
push dword [ebp + 0x28]
mov eax, dword [ebp + 0x24]
dec word [ebp - 0x1fc]
dec dword [ebp - 0x210]
and eax, 2
push eax
push dword [ebp - 0x1fc]
push esi
call fcn.0101c0b1
test byte [ebp + 0x24], 1
je 0x101ca5a
push 0
lea eax, [ebp - 0x214]
push eax
push 4
push dword [esi + 0x4c]
mov dword [ebp - 0x214], 1
push 0x1038ea0
push esi
call fcn.0101adb2
lea eax, [ebp - 0x214]
push eax
push 3
push dword [esi + 0x4c]
push dword [ebp - 0x230]
push esi
call fcn.0101b6ec
dec word [ebp - 0x1fc]
test byte [ebp + 0x24], 0x10
je 0x101ca7a
cmp word [ebp - 0x1fc], 0
jge 0x101ca7a
xor eax, eax
mov word [ebp - 0x1fc], ax
push dword [ebp + 0x28]
mov eax, dword [ebp + 0x24]
xor edi, edi
shr eax, 1
inc edi
and eax, edi
push eax
push dword [ebp - 0x1fc]
push esi
call fcn.0101c0b1
test byte [ebp + 0x24], 1
mov dword [ebp - 0x208], eax
je 0x101cadd
push 0
lea eax, [ebp - 0x214]
push eax
push 4
push dword [esi + 0x4c]
mov dword [ebp - 0x214], edi
push 0x1038ea0
push esi
call fcn.0101adb2
lea eax, [ebp - 0x214]
push eax
push 3
push dword [esi + 0x4c]
push dword [ebp - 0x230]
push esi
call fcn.0101b6ec
mov dword [ebp - 0x208], eax
cmp word [esi + 0x4c], 0
jne 0x101cb61
test byte [esi + 4], 2
je 0x101cb61
mov eax, dword [ebp - 0x22c]
cmp dword [ebp - 0x200], eax
jbe 0x101cb61
mov ecx, dword [ebp + 0x24]
movsx edx, word [ebp + 0x20]
and ecx, 4
push ecx
push dword [ebp + 0x20]
movsx ecx, word [esi + 8]
sub ecx, edx
push ecx
mov ecx, dword [ebp - 0x200]
sub ecx, eax
inc ecx
inc ecx
sar ecx, 1
push ecx
push eax
push dword [0x1038334]
push esi
call fcn.01003543
test eax, eax
je 0x101cb61
mov ax, word [esi + 8]
dec ax
mov word [ebp - 0x1fc], ax
mov ax, word [esi + 0x4e]
dec ax
mov word [ebp - 0x1fa], ax
mov eax, dword [ebp + 0x24]
and eax, 2
push dword [ebp + 0x28]
push eax
push dword [ebp - 0x1fc]
push esi
call fcn.0101c0b1
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
jl 0x101cbf2
mov eax, dword [ebp - 0x21c]
add dword [eax], 2
add dword [ebp - 0x224], 2
add dword [ebp - 0x220], 2
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x21c]
cmp dword [ecx], eax
jb 0x101c31f
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x101cbab
mov ecx, dword [ebp - 0x210]
mov dword [eax], ecx
push esi
call 0xfe89cf
and dword [ebp - 0x208], 0
cmp dword [ebp - 0x240], 0
je 0x101cbdb
push dword [ebp - 0x240]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [fcn.01001378]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x208]
pop edi
pop esi
xor ecx, ebp
pop ebx
call 0xfe83a8
leave
ret 0x24
push esi
call 0xfe89cf
jmp 0x101cbb8