Function at 0x1002351
Capabilities:
Get number of processors

Disassembly:
sub eax, 3
jne 0x1002656
add dword [ebp - 0x1a4], 2
mov word [ebp - 0x198], ax
mov ax, word [esi + 0x4e]
jmp 0x1002631
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 0x100248f
xor ecx, ecx
test eax, eax
jbe 0x100246d
cmp dword [ebp - 0x1a8], 0x64
jae 0x100246d
push 0x20
pop edx
mov word [edi], dx
inc edi
inc edi
inc ecx
inc dword [ebp - 0x1a8]
cmp ecx, eax
jb 0x1002264
jmp 0x100246d
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.01001990
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 0x101002a
mov eax, dword [ebp - 0x1b8]
mov dword [ebp - 0x1b4], eax
cmp dword [ebx], edi
jae 0x1002552
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 0x10025ed
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebp - 0x1a8], 0x64
jae 0x100248f
movzx eax, word [esi + 8]
cmp word [ebp - 0x19c], ax
jge 0x100248f
mov eax, dword [ebp - 0x1b4]
movzx edx, word [eax]
mov eax, dword [ebp - 0x1b8]
movzx eax, word [eax]
cmp ax, 0x20
jb 0x10025b1
cmp ax, 0x7f
je 0x10025b1
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 0x1002420
cmp dword [ebp - 0x1a8], 0
je 0x10025ed
movsx eax, word [esi + 8]
movsx ecx, word [esi + 0x4c]
sub eax, ecx
cmp dword [ebp - 0x1a8], eax
ja 0x1010129
mov edi, dword [ebp - 0x1a8]
push esi
push edi
lea eax, [ebp - 0x194]
push eax
call fcn.01001f95
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.0100228e
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.010020a2
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebx]
cmp eax, dword [ebp - 0x1bc]
je 0x10045e3
mov eax, dword [ebp - 0x1bc]
cmp dword [ebx], eax
jb 0x10023ee
mov eax, dword [ebp - 0x1c8]
test eax, eax
jne 0x10103f3
push esi
call fcn.01001a51
and dword [ebp - 0x1a0], 0
cmp dword [ebp - 0x1c4], 0
jne 0x1010400
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 0x100245c
movzx ecx, ax
sub ecx, 7
je 0x10100d2
dec ecx
je 0x100248f
dec ecx
je 0x1002235
dec ecx
je 0x100248f
sub ecx, 3
je 0x100248f
jmp 0x10100a0
mov eax, dword [ebp - 0x1bc]
cmp dword [ebx], eax
je 0x1002552
mov eax, dword [ebp - 0x1b4]
movzx eax, word [eax]
sub eax, 8
je 0x10101dc
dec eax
je 0x1010141
dec eax
jne 0x10021f6
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.010020a2
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0
jl 0x10045fc
add dword [ebx], 2
add dword [ebp - 0x1b4], 2
add dword [ebp - 0x1b8], 2
jmp 0x1002544
push esi
call fcn.01001a51
mov eax, dword [ebp - 0x1c8]
test eax, eax
je 0x1002566
jmp 0x1010134
push esi
call fcn.01001a51
jmp 0x100256d
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 0x101005c
mov dword [ebp - 0x1a0], 0xc0000017
jmp 0x100257a
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.01004894
mov dword [ebp - 0x1a0], eax
test eax, eax
jl 0x100256d
mov edi, dword [ebp - 0x1bc]
jmp 0x10023e6
test byte [ebp + 0x24], 4
je 0x10100ac
cmp ax, 0x20
jb 0x10100d8
test byte [esi], 4
je 0x10100be
test byte [0x10382f8], 1
je 0x100245c
push eax
push dword [0x1038334]
call fcn.0101c2b7
mov word [edi], ax
jmp 0x100245f
test byte [ebp + 0x24], 4
je 0x101010f
cmp dword [ebp - 0x1a8], 0x63
jae 0x100248f
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 0x1002474
push 0
push 0
push 0x403
push dword [0x1038260]
call dword [sym.imp.USER32.dll_SendNotifyMessageW]
jmp 0x1002474
mov dword [ebp - 0x1a8], eax
jmp 0x10024b2
mov ecx, dword [ebp - 0x1ac]
mov dword [eax], ecx
jmp 0x1002566
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 0x101018c
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 0x101019f
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.0101f9ca
lea eax, [ebp - 0x1b0]
push eax
push 3
push dword [esi + 0x4c]
push dword [ebp - 0x1cc]
push esi
call fcn.0100abe0
jmp 0x1002638
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 0x101036b
sub edi, dword [ebp - 0x1c0]
sar edi, 1
cmp edi, 0x64
jle 0x1010239
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 0x101023f
mov dword [ebp - 0x1a0], 0xc0000017
jmp 0x100256d
lea eax, [ebp - 0xcc]
mov edx, dword [ebp - 0x1c0]
mov ecx, eax
mov dword [ebp - 0x19c], edx
test edi, edi
jbe 0x1010286
mov dword [ebp - 0x1a0], edi
mov edx, dword [ebp - 0x19c]
movzx edx, word [edx]
cmp dx, 8
jne 0x101026e
cmp ecx, eax
jbe 0x1010273
dec ecx
dec ecx
jmp 0x1010273
mov word [ecx], dx
inc ecx
inc ecx
add dword [ebp - 0x19c], 2
dec dword [ebp - 0x1a0]
jne 0x1010257
cmp ecx, eax
jne 0x1010292
mov dword [ebp - 0x19c], 0x20
jmp 0x101029c
movzx ecx, word [ecx - 2]
mov dword [ebp - 0x19c], ecx
lea ecx, [ebp - 0xcc]
cmp eax, ecx
je 0x10102bb
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 0x101030d
push dword [0x1038334]
dec edi
push edi
push dword [ebp - 0x1c0]
push dword [ebp + 0x20]
call fcn.01023319
sub word [ebp - 0x198], ax
jns 0x1010372
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 0x1010372
cmp word [ebp - 0x19c], 0x20
jae 0x101036b
dec word [ebp - 0x198]
dec dword [ebp - 0x1ac]
test byte [ebp + 0x24], 1
je 0x101036b
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.0101f9ca
lea eax, [ebp - 0x1b0]
push eax
push 3
push dword [ebp - 0x198]
push dword [ebp - 0x1cc]
push esi
call fcn.0100abe0
dec word [ebp - 0x198]
test byte [ebp + 0x24], 0x10
je 0x101038b
cmp word [ebp - 0x198], 0
jge 0x101038b
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.010020a2
test byte [ebp + 0x24], 1
mov dword [ebp - 0x1a0], eax
je 0x1002656
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.0101f9ca
lea eax, [ebp - 0x1b0]
push eax
push 3
push dword [esi + 0x4c]
push dword [ebp - 0x1cc]
push esi
call fcn.0100abe0
jmp 0x1002650
mov ecx, dword [ebp - 0x1ac]
mov dword [eax], ecx
jmp 0x1002560
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 0x100257a