Function at 0x10022f1
Capabilities:
Get number of processors

Disassembly:
sub eax, 3
jne 0x10025f6
add dword [ebp - 0x1a4], 2
mov word [ebp - 0x198], ax
mov ax, word [esi + 0x4e]
jmp 0x10025d1
mov ecx, dword [ebp - 0x19c]
and ecx, 7
push 8
pop eax
sub eax, ecx
movzx ecx, word [esi + 8]
add dword [ebp - 0x19c], eax
cmp word [ebp - 0x19c], cx
jge 0x100242f
xor ecx, ecx
test eax, eax
jbe 0x100240d
cmp dword [ebp - 0x1a8], 0x64
jae 0x100240d
push 0x20
pop edx
mov word [edi], dx
inc edi
inc edi
inc ecx
inc dword [ebp - 0x1a8]
cmp ecx, eax
jb 0x1002204
jmp 0x100240d
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1d8
mov eax, dword [0x1038008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x1a0], 0
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c8], eax
mov eax, dword [esi + 4]
not eax
push edi
and eax, 1
push esi
mov dword [ebp - 0x1d8], eax
call fcn.01001930
movzx eax, word [esi + 0x16]
mov edi, dword [ebx]
mov dword [ebp - 0x1cc], eax
xor eax, eax
test byte [ebp + 0x24], 8
mov dword [ebp - 0x1bc], edi
mov dword [ebx], eax
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0x1c4], eax
jne 0x100ffe2
mov eax, dword [ebp - 0x1b8]
mov dword [ebp - 0x1b4], eax
cmp dword [ebx], edi
jae 0x10024f2
movzx eax, word [esi + 0x4c]
and dword [ebp - 0x1a8], 0
mov dword [ebp - 0x19c], eax
mov eax, dword [ebx]
lea edi, [ebp - 0x194]
cmp eax, dword [ebp - 0x1bc]
jae 0x100258d
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebp - 0x1a8], 0x64
jae 0x100242f
movzx eax, word [esi + 8]
cmp word [ebp - 0x19c], ax
jge 0x100242f
mov eax, dword [ebp - 0x1b4]
movzx edx, word [eax]
mov eax, dword [ebp - 0x1b8]
movzx eax, word [eax]
cmp ax, 0x20
jb 0x1002551
cmp ax, 0x7f
je 0x1002551
mov word [edi], dx
inc edi
inc edi
inc dword [ebp - 0x19c]
inc dword [ebp - 0x1a8]
add dword [ebp - 0x1a4], 2
mov eax, dword [ebp - 0x1bc]
add dword [ebp - 0x1b4], 2
add dword [ebp - 0x1b8], 2
add dword [ebx], 2
cmp dword [ebx], eax
jb 0x10023c0
cmp dword [ebp - 0x1a8], 0
je 0x100258d
movsx eax, word [esi + 8]
movsx ecx, word [esi + 0x4c]
sub eax, ecx
cmp dword [ebp - 0x1a8], eax
ja 0x10100e1
mov edi, dword [ebp - 0x1a8]
push esi
push edi
lea eax, [ebp - 0x194]
push eax
call fcn.01001f35
movzx eax, word [esi + 0x4c]
mov word [ebp - 0x1d4], ax
lea eax, [edi + eax - 1]
mov word [ebp - 0x1d0], ax
movzx eax, word [esi + 0x4e]
mov word [ebp - 0x1d2], ax
mov word [ebp - 0x1ce], ax
lea eax, [ebp - 0x1d4]
push eax
push esi
call fcn.0100222e
mov ax, word [esi + 0x4c]
push dword [ebp + 0x28]
add dword [ebp - 0x1ac], edi
add ax, di
mov word [ebp - 0x198], ax
mov ax, word [esi + 0x4e]
mov word [ebp - 0x196], ax
mov eax, dword [ebp + 0x24]
and eax, 2
push eax
push dword [ebp - 0x198]
push esi
call fcn.01002042
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebx]
cmp eax, dword [ebp - 0x1bc]
je 0x1004583
mov eax, dword [ebp - 0x1bc]
cmp dword [ebx], eax
jb 0x100238e
mov eax, dword [ebp - 0x1c8]
test eax, eax
jne 0x10103ab
push esi
call fcn.010019f1
and dword [ebp - 0x1a0], 0
cmp dword [ebp - 0x1c4], 0
jne 0x10103b8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100158a
leave
ret 0x24
cmp dword [ebp - 0x1d8], 0
jne 0x10023fc
movzx ecx, ax
sub ecx, 7
je 0x101008a
dec ecx
je 0x100242f
dec ecx
je 0x10021d5
dec ecx
je 0x100242f
sub ecx, 3
je 0x100242f
jmp 0x1010058
mov eax, dword [ebp - 0x1bc]
cmp dword [ebx], eax
je 0x10024f2
mov eax, dword [ebp - 0x1b4]
movzx eax, word [eax]
sub eax, 8
je 0x1010194
dec eax
je 0x10100f9
dec eax
jne 0x1002196
add dword [ebp - 0x1a4], 2
xor eax, eax
mov word [ebp - 0x198], ax
mov ax, word [esi + 0x4e]
inc ax
mov word [ebp - 0x196], ax
push dword [ebp + 0x28]
mov eax, dword [ebp + 0x24]
shr eax, 1
and eax, 1
push eax
push dword [ebp - 0x198]
push esi
call fcn.01002042
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0
jl 0x100459c
add dword [ebx], 2
add dword [ebp - 0x1b4], 2
add dword [ebp - 0x1b8], 2
jmp 0x10024e4
push esi
call fcn.010019f1
mov eax, dword [ebp - 0x1c8]
test eax, eax
je 0x1002506
jmp 0x10100ec
push esi
call fcn.010019f1
jmp 0x100250d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [0x1038030]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x1b4], eax
test eax, eax
jne 0x1010014
mov dword [ebp - 0x1a0], 0xc0000017
jmp 0x100251a
push edi
push dword [ebp - 0x1b8]
mov dword [ebp - 0x1c4], eax
push eax
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
push dword [0x1038334]
shr edi, 1
push edi
push dword [ebp - 0x1b4]
call fcn.01004834
mov dword [ebp - 0x1a0], eax
test eax, eax
jl 0x100250d
mov edi, dword [ebp - 0x1bc]
jmp 0x1002386
test byte [ebp + 0x24], 4
je 0x1010064
cmp ax, 0x20
jb 0x1010090
test byte [esi], 4
je 0x1010076
test byte [0x10382f8], 1
je 0x10023fc
push eax
push dword [0x1038334]
call fcn.0101c2e3
mov word [edi], ax
jmp 0x10023ff
test byte [ebp + 0x24], 4
je 0x10100c7
cmp dword [ebp - 0x1a8], 0x63
jae 0x100242f
push 0x5e
pop ecx
mov word [edi], cx
push 2
pop ecx
add dword [ebp - 0x19c], ecx
add dword [ebp - 0x1a8], ecx
add edi, ecx
add eax, 0x40
mov word [edi], ax
add edi, ecx
add dword [ebp - 0x1a4], ecx
jmp 0x1002414
push 0
push 0
push 0x403
push dword [0x1038260]
call dword [sym.imp.USER32.dll_SendNotifyMessageW]
jmp 0x1002414
mov dword [ebp - 0x1a8], eax
jmp 0x1002452
mov ecx, dword [ebp - 0x1ac]
mov dword [eax], ecx
jmp 0x1002506
movzx ecx, word [esi + 0x4c]
add dword [ebp - 0x1a4], 2
mov edx, ecx
push 8
and edx, 7
pop eax
sub eax, edx
add dword [ebp - 0x1ac], eax
add ecx, eax
movzx eax, word [esi + 8]
cmp cx, ax
mov word [ebp - 0x198], cx
jl 0x1010144
movsx ecx, word [esi + 0x4c]
cwde
sub eax, ecx
mov dword [ebp - 0x1b0], eax
xor eax, eax
mov word [ebp - 0x198], ax
mov ax, word [esi + 0x4e]
inc ax
jmp 0x1010157
movsx eax, word [esi + 0x4c]
movsx ecx, cx
sub ecx, eax
mov ax, word [esi + 0x4e]
mov dword [ebp - 0x1b0], ecx
push 0
mov word [ebp - 0x196], ax
lea eax, [ebp - 0x1b0]
push eax
push 4
push dword [esi + 0x4c]
push str.
push esi
call fcn.0101f9f6
lea eax, [ebp - 0x1b0]
push eax
push 3
push dword [esi + 0x4c]
push dword [ebp - 0x1cc]
push esi
call fcn.0100ab3a
jmp 0x10025d8
mov edi, dword [ebp - 0x1a4]
mov eax, dword [esi + 0x4c]
dec dword [ebp - 0x1ac]
mov dword [ebp - 0x198], eax
cmp edi, dword [ebp - 0x1c0]
je 0x1010323
sub edi, dword [ebp - 0x1c0]
sar edi, 1
cmp edi, 0x64
jle 0x10101f1
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 0x10101f7
mov dword [ebp - 0x1a0], 0xc0000017
jmp 0x100250d
lea eax, [ebp - 0xcc]
mov edx, dword [ebp - 0x1c0]
mov ecx, eax
mov dword [ebp - 0x19c], edx
test edi, edi
jbe 0x101023e
mov dword [ebp - 0x1a0], edi
mov edx, dword [ebp - 0x19c]
movzx edx, word [edx]
cmp dx, 8
jne 0x1010226
cmp ecx, eax
jbe 0x101022b
dec ecx
dec ecx
jmp 0x101022b
mov word [ecx], dx
inc ecx
inc ecx
add dword [ebp - 0x19c], 2
dec dword [ebp - 0x1a0]
jne 0x101020f
cmp ecx, eax
jne 0x101024a
mov dword [ebp - 0x19c], 0x20
jmp 0x1010254
movzx ecx, word [ecx - 2]
mov dword [ebp - 0x19c], ecx
lea ecx, [ebp - 0xcc]
cmp eax, ecx
je 0x1010273
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 word [ebp - 0x19c], 9
jne 0x10102c5
push dword [0x1038334]
dec edi
push edi
push dword [ebp - 0x1c0]
push dword [ebp + 0x20]
call fcn.01023345
sub word [ebp - 0x198], ax
jns 0x101032a
movsx eax, word [esi + 8]
dec eax
cdq
and edx, 7
add eax, edx
sar eax, 3
dec word [ebp - 0x196]
lea eax, [eax*8 + 1]
mov word [ebp - 0x198], ax
jmp 0x101032a
cmp word [ebp - 0x19c], 0x20
jae 0x1010323
dec word [ebp - 0x198]
dec dword [ebp - 0x1ac]
test byte [ebp + 0x24], 1
je 0x1010323
push 0
lea eax, [ebp - 0x1b0]
push eax
push 4
push dword [ebp - 0x198]
mov dword [ebp - 0x1b0], 1
push str.
push esi
call fcn.0101f9f6
lea eax, [ebp - 0x1b0]
push eax
push 3
push dword [ebp - 0x198]
push dword [ebp - 0x1cc]
push esi
call fcn.0100ab3a
dec word [ebp - 0x198]
test byte [ebp + 0x24], 0x10
je 0x1010343
cmp word [ebp - 0x198], 0
jge 0x1010343
xor eax, eax
mov word [ebp - 0x198], ax
push dword [ebp + 0x28]
mov eax, dword [ebp + 0x24]
shr eax, 1
and eax, 1
push eax
push dword [ebp - 0x198]
push esi
call fcn.01002042
test byte [ebp + 0x24], 1
mov dword [ebp - 0x1a0], eax
je 0x10025f6
push 0
lea eax, [ebp - 0x1b0]
push eax
push 4
push dword [esi + 0x4c]
mov dword [ebp - 0x1b0], 1
push str.
push esi
call fcn.0101f9f6
lea eax, [ebp - 0x1b0]
push eax
push 3
push dword [esi + 0x4c]
push dword [ebp - 0x1cc]
push esi
call fcn.0100ab3a
jmp 0x10025f0
mov ecx, dword [ebp - 0x1ac]
mov dword [eax], ecx
jmp 0x1002500
push dword [ebp - 0x1c4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x100251a