Function at 0x103540a
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x1038008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x208], 0
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x200], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x23c], eax
mov eax, dword [esi + 4]
push edi
mov edi, dword [ebp + 0x18]
not eax
and eax, 1
push esi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x24c], eax
call fcn.01001990
movzx eax, word [esi + 0x16]
mov ebx, dword [edi]
mov dword [ebp - 0x230], eax
xor eax, eax
test byte [ebp + 0x24], 8
mov dword [ebp - 0x228], ebx
mov dword [edi], eax
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x240], eax
je 0x103550b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [0x1038030]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov dword [ebp - 0x224], edi
test edi, edi
jne 0x10354c9
mov dword [ebp - 0x208], 0xc0000017
jmp 0x1035ddb
push ebx
push dword [ebp - 0x220]
mov dword [ebp - 0x240], edi
push edi
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
push dword [0x1038334]
shr ebx, 1
push ebx
push edi
call fcn.01004894
mov dword [ebp - 0x208], eax
test eax, eax
jl 0x1035db8
mov ebx, dword [ebp - 0x228]
mov edi, dword [ebp - 0x21c]
jmp 0x1035517
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x224], eax
cmp dword [edi], ebx
jae 0x1035d99
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 eax, dword [ebp - 0x228]
jae 0x103586c
cmp dword [ebp - 0x204], 0x64
jae 0x103578a
movzx eax, word [esi + 8]
cmp word [ebp - 0x20c], ax
jge 0x103578a
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 0x1035595
cmp ax, 0x7f
jne 0x103559e
cmp dword [ebp - 0x24c], 0
je 0x103560f
push dword [ebp - 0x218]
push dword [0x1038334]
push dword [0x1038268]
call fcn.0100a980
test eax, eax
je 0x1035697
cmp dword [ebp - 0x204], 0x63
jae 0x103578a
movsx eax, word [esi + 8]
movsx ecx, word [ebp - 0x20c]
dec eax
cmp ecx, eax
jge 0x103578a
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 0x1035765
movzx ecx, ax
sub ecx, 7
je 0x1035713
dec ecx
je 0x103578a
dec ecx
je 0x10356bf
dec ecx
je 0x103578a
sub ecx, 3
je 0x103578a
test byte [ebp + 0x24], 4
je 0x1035649
cmp ax, 0x20
jb 0x1035719
test byte [esi], 4
je 0x103565c
test byte [0x10382f8], 1
jne 0x103565c
mov word [ebx], dx
jmp 0x10356a1
lea eax, [ebp - 0x244]
push eax
push 1
lea eax, [ebp - 0x248]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
cmp word [ebp - 0x244], 0x20
jne 0x1035697
push 1
push ebx
push 1
lea eax, [ebp - 0x248]
push eax
push dword [0x1038334]
call fcn.0101c1c5
jmp 0x10356a1
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 0x1035765
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 0x103578a
xor ecx, ecx
test eax, eax
jbe 0x103570a
cmp dword [ebp - 0x204], 0x64
jae 0x103570a
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 0x10356ea
add dword [ebp - 0x200], 2
jmp 0x1035765
test byte [ebp + 0x24], 4
je 0x1035750
cmp dword [ebp - 0x204], 0x63
jae 0x103578a
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 0x10356b6
push 0
push 0
push 0x403
push dword [0x1038260]
call dword [sym.imp.USER32.dll_SendNotifyMessageW]
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 0x103554d
cmp dword [ebp - 0x204], 0
je 0x103586c
movsx eax, word [esi + 8]
movsx ecx, word [esi + 0x4c]
sub eax, ecx
cmp dword [ebp - 0x204], eax
jbe 0x10357af
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.010327f2
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.01033e9e
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.010352b1
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x228]
jne 0x1035d85
push esi
call fcn.01001a51
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x1035db1
mov ecx, dword [ebp - 0x210]
mov dword [eax], ecx
jmp 0x1035db1
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x21c]
cmp dword [ecx], eax
je 0x1035d99
mov eax, dword [ebp - 0x224]
movzx ecx, word [eax]
movzx eax, cx
sub eax, 8
je 0x1035a7a
dec eax
je 0x10359df
dec eax
je 0x10359c7
sub eax, 3
je 0x103599f
movzx eax, cx
cmp ax, 0x20
jb 0x1035d61
push eax
push dword [0x1038334]
push dword [0x1038268]
call fcn.0100a980
test eax, eax
je 0x1035d61
movsx eax, word [esi + 8]
movsx ecx, word [ebp - 0x20c]
dec eax
cmp ecx, eax
jl 0x1035d61
test byte [esi + 4], 2
je 0x1035d61
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 0x1035968
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.01033e9e
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.010352b1
mov dword [ebp - 0x208], eax
jmp 0x1035d85
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 0x1035d4b
add dword [ebp - 0x200], 2
xor eax, eax
mov word [ebp - 0x1fc], ax
mov ax, word [esi + 0x4e]
inc ax
jmp 0x10359b3
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 0x1035a2a
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 0x1035a3d
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.01033fb2
lea eax, [ebp - 0x214]
push eax
push 3
push dword [esi + 0x4c]
push dword [ebp - 0x230]
push esi
call fcn.010348ec
jmp 0x10359ba
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 0x1035c5a
sub edi, dword [ebp - 0x22c]
sar edi, 1
cmp edi, 0x64
jle 0x1035ad7
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 [sym.imp.ntdll.dll_RtlAllocateHeap]
test eax, eax
jne 0x1035add
mov dword [ebp - 0x208], 0xc0000017
jmp 0x1035db8
lea eax, [ebp - 0x130]
mov ebx, dword [ebp - 0x22c]
mov ecx, eax
test edi, edi
jbe 0x1035b13
mov dword [ebp - 0x218], edi
movzx edx, word [ebx]
cmp dx, 8
jne 0x1035b00
cmp ecx, eax
jbe 0x1035b05
dec ecx
dec ecx
jmp 0x1035b05
mov word [ecx], dx
inc ecx
inc ecx
inc ebx
inc ebx
dec dword [ebp - 0x218]
jne 0x1035aef
cmp ecx, eax
jne 0x1035b18
push 0x20
pop ebx
jmp 0x1035b1c
movzx ebx, word [ecx - 2]
lea ecx, [ebp - 0x130]
cmp eax, ecx
je 0x1035b3b
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp bx, 9
jne 0x1035b8c
push dword [0x1038334]
dec edi
push edi
push dword [ebp - 0x22c]
push dword [ebp + 0x20]
call fcn.01023319
sub word [ebp - 0x1fc], ax
jns 0x1035c61
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 0x1035c61
cmp bx, 0x20
jae 0x1035be0
dec word [ebp - 0x1fc]
dec dword [ebp - 0x210]
test byte [ebp + 0x24], 1
je 0x1035c5a
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.01033fb2
lea eax, [ebp - 0x214]
push eax
push 3
push dword [ebp - 0x1fc]
jmp 0x1035c4e
push ebx
push dword [0x1038334]
push dword [0x1038268]
call fcn.0100a980
test eax, eax
je 0x1035c5a
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.010352b1
test byte [ebp + 0x24], 1
je 0x1035c5a
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.01033fb2
lea eax, [ebp - 0x214]
push eax
push 3
push dword [esi + 0x4c]
push dword [ebp - 0x230]
push esi
call fcn.010348ec
dec word [ebp - 0x1fc]
test byte [ebp + 0x24], 0x10
je 0x1035c7a
cmp word [ebp - 0x1fc], 0
jge 0x1035c7a
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.010352b1
test byte [ebp + 0x24], 1
mov dword [ebp - 0x208], eax
je 0x1035cdd
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.01033fb2
lea eax, [ebp - 0x214]
push eax
push 3
push dword [esi + 0x4c]
push dword [ebp - 0x230]
push esi
call fcn.010348ec
mov dword [ebp - 0x208], eax
cmp word [esi + 0x4c], 0
jne 0x1035d61
test byte [esi + 4], 2
je 0x1035d61
mov eax, dword [ebp - 0x22c]
cmp dword [ebp - 0x200], eax
jbe 0x1035d61
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.0101c5c7
test eax, eax
je 0x1035d61
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.010352b1
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
jl 0x1035df2
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 0x103551f
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x1035dab
mov ecx, dword [ebp - 0x210]
mov dword [eax], ecx
push esi
call fcn.01001a51
and dword [ebp - 0x208], 0
cmp dword [ebp - 0x240], 0
je 0x1035ddb
push dword [ebp - 0x240]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x208]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100158a
leave
ret 0x24
push esi
call fcn.01001a51
jmp 0x1035db8