Function at 0x100b679
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x34]
push eax
push dword [esi + 0x50]
xor edi, edi
push dword [esi + 0x4c]
mov dword [ebp - 0x10], edi
call fcn.01001a65
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x1010b96
mov eax, dword [esi + 0x2c]
push ebx
mov ebx, dword [ebp + 0xc]
cmp eax, dword [esi + 0x28]
jae 0x1010c52
mov edi, 0x100b794
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0xf]
push eax
push 0
lea eax, [ebp + 0xb]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x34]
push 0x64
push esi
push edi
push ebx
push eax
push 1
lea eax, [ebp - 0x1c]
push eax
push dword [esi]
call fcn.0100b708
mov dword [ebp - 8], eax
test eax, eax
jge 0x1010bb7
cmp dword [ebp - 8], 0xc0030001
jne 0x1010c42
mov eax, dword [ebp - 8]
pop ebx
pop edi
pop esi
leave
ret 0xc
push dword [esi + 0x38]
mov eax, dword fs:[0x18]
mov dword [esi + 0x2c], edi
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 8]
jmp 0x100b6fd
cmp word [esi + 0x3c], 0xffff
jne 0x1010bc7
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x4c]
mov dword [esi + 0x3c], eax
cmp byte [ebp + 0xb], 0
je 0x1010c21
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push esi
call fcn.01016ecc
mov dword [ebp - 8], eax
cmp eax, 0xc0030002
je 0x1010c5f
cmp eax, 0xc0030001
je 0x100b6f9
test eax, eax
jge 0x1010c35
cmp eax, 0xc0030003
jne 0x1010c42
cmp byte [ebp + 0x10], 0
mov dword [ebp - 8], 0xc0030001
jne 0x100b6f9
push 0
push 0x64
push esi
push edi
push ebx
push dword [esi]
call fcn.0100b59d
jmp 0x100b6f9
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push esi
call fcn.01023979
test eax, eax
jne 0x1010c48
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x28]
jae 0x1010c52
jmp 0x100b6ba
and dword [esi + 0x2c], 0
jmp 0x1010c52
or dword [0x10382cc], 0x20000
cmp dword [ebp - 8], 0xc0030001
je 0x100b6f9
cmp byte [esi + 0x48], 0
mov dword [ebp - 0x14], 1
je 0x1010cfa
mov eax, dword [esi + 0x38]
and dword [ebp - 0xc], 0
test dword [esi + 0x2c], 0xfffffffe
mov ecx, eax
jbe 0x1010ce3
mov dx, word [ecx]
inc ecx
inc ecx
cmp dx, 0xd
je 0x1010c9c
mov edx, dword [esi + 0x2c]
inc dword [ebp - 0xc]
shr edx, 1
cmp dword [ebp - 0xc], edx
jae 0x1010ce3
jmp 0x1010c82
mov ecx, dword [0x10382cc]
mov edi, dword [ebp - 0xc]
and ecx, 0x100000
push ecx
add edi, edi
push edi
push eax
push dword [esi + 0x44]
call fcn.010151cb
mov eax, dword [esi + 0x28]
lea ecx, [ebp - 0x14]
push ecx
movzx ecx, word [esi + 0x58]
push ecx
push dword [esi + 0x54]
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x38]
push eax
push edi
push eax
call fcn.01015eec
test eax, eax
jl 0x1010ce3
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x2c], eax
cmp dword [ebp - 8], 0xc0030002
je 0x1010cfa
push 0xffffffffffffffff
lea eax, [esi + 8]
push eax
push dword [esi + 0x4c]
call fcn.01003dae
mov eax, dword [ebp - 8]
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x20]
ja 0x1010e0b
cmp dword [ebp - 0x14], 1
ja 0x1010e15
cmp byte [ebx + 0x98], 0
jne 0x1010dd4
cmp byte [0x1038415], 0
je 0x1010dd4
mov eax, dword [ebp - 0x28]
mov al, byte [eax + 0x42]
test al, al
je 0x1010d8c
mov ecx, dword [esi + 0x24]
cbw
mov word [ecx], ax
mov edi, dword [ebp - 0x28]
add dword [esi + 0x24], 2
add dword [esi + 0x20], 0xfffffffe
add edi, 0x34
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp dword [esi + 0x20], 0
mov dword [ebp - 0x10], 1
jne 0x1010d8c
mov eax, dword fs:[0x18]
mov dword [ebx + 0x84], 1
push dword [esi + 0x38]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
jmp 0x100b6fc
mov edi, dword [esi + 0x2c]
and dword [ebp - 4], 0
mov eax, dword [esi + 0x38]
mov dword [ebp + 8], eax
test edi, edi
je 0x1010dd4
mov eax, dword [esi + 0x20]
shr eax, 1
cmp eax, dword [ebp - 4]
jbe 0x1010dd4
mov eax, dword [ebp + 8]
movzx eax, word [eax]
push eax
push dword [0x1038330]
push dword [0x1038268]
call fcn.0100a3b1
test eax, eax
je 0x1010dc9
add dword [ebp - 4], 2
jmp 0x1010dcc
inc dword [ebp - 4]
add dword [ebp + 8], 2
dec edi
dec edi
jne 0x1010d9d
mov eax, dword [esi + 0x2c]
push eax
mov dword [ebx + 0x84], eax
push dword [esi + 0x38]
push dword [esi + 0x24]
call dword [sym.imp.msvcrt.dll_memmove]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
add esp, 0xc
push dword [esi + 0x38]
push 0
push dword [eax + 0x18]
call edi
jmp 0x1010f8f
cmp dword [ebp - 0x14], 1
jbe 0x1010eb5
mov eax, dword [ebp - 0x24]
or dword [eax + 0x28], 4
cmp byte [ebx + 0x98], 0
jne 0x1010e99
cmp byte [0x1038415], 0
je 0x1010e99
mov eax, dword [ebp - 0x28]
mov al, byte [eax + 0x42]
test al, al
je 0x1010e5c
mov ecx, dword [esi + 0x24]
cbw
mov word [ecx], ax
mov edi, dword [ebp - 0x28]
add dword [esi + 0x24], 2
add dword [esi + 0x20], 0xfffffffe
xor eax, eax
add edi, 0x34
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x10], 1
stosd dword es:[edi], eax
and dword [ebp - 4], 0
mov edi, dword [esi + 0x38]
jmp 0x1010e90
mov ecx, dword [esi + 0x20]
shr ecx, 1
cmp ecx, dword [ebp - 4]
jbe 0x1010e99
push eax
push dword [0x1038330]
push dword [0x1038268]
call fcn.0100a3b1
test eax, eax
je 0x1010e8b
add dword [ebp - 4], 2
jmp 0x1010e8e
inc dword [ebp - 4]
inc edi
inc edi
movzx eax, word [edi]
cmp ax, 0xa
jne 0x1010e65
mov ecx, dword [esi + 0x38]
mov eax, ecx
jmp 0x1010ea2
inc eax
inc eax
cmp word [eax], 0xa
jne 0x1010ea0
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
jmp 0x1010f40
cmp byte [ebx + 0x98], 0
jne 0x1010f3d
cmp byte [0x1038415], 0
je 0x1010f3d
mov eax, dword [ebp - 0x28]
mov al, byte [eax + 0x42]
test al, al
je 0x1010ef5
mov ecx, dword [esi + 0x24]
cbw
mov word [ecx], ax
mov edi, dword [ebp - 0x28]
add dword [esi + 0x24], 2
add dword [esi + 0x20], 0xfffffffe
xor eax, eax
add edi, 0x34
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x10], 1
stosd dword es:[edi], eax
mov edi, dword [esi + 0x2c]
and dword [ebp - 4], 0
mov eax, dword [esi + 0x38]
mov dword [ebp + 8], eax
test edi, edi
je 0x1010f3d
mov eax, dword [esi + 0x20]
shr eax, 1
cmp eax, dword [ebp - 4]
jbe 0x1010f3d
mov eax, dword [ebp + 8]
movzx eax, word [eax]
push eax
push dword [0x1038330]
push dword [0x1038268]
call fcn.0100a3b1
test eax, eax
je 0x1010f32
add dword [ebp - 4], 2
jmp 0x1010f35
inc dword [ebp - 4]
add dword [ebp + 8], 2
dec edi
dec edi
jne 0x1010f06
mov eax, dword [esi + 0x20]
mov dword [ebx + 0x84], eax
mov eax, dword [ebp - 0x24]
or dword [eax + 0x28], 2
mov eax, dword [esi + 0x38]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x34], eax
mov eax, dword [esi + 0x2c]
sub eax, dword [ebx + 0x84]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebx + 0x84]
add eax, dword [esi + 0x38]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x30], eax
push dword [ebx + 0x84]
push dword [esi + 0x38]
push dword [esi + 0x24]
call dword [sym.imp.msvcrt.dll_memmove]
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
add esp, 0xc
cmp byte [ebx + 0x98], 0
mov eax, dword [esi + 0x60]
mov dword [ebx + 0x94], eax
jne 0x101106b
cmp byte [0x1038415], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
je 0x1010fc9
mov ecx, dword [0x1038030]
push dword [ebp - 4]
add ecx, 0x300000
push ecx
jmp 0x1010fd8
mov ecx, dword [ebx + 0x84]
shr ecx, 1
push ecx
push dword [0x1038030]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp + 8], eax
test eax, eax
jne 0x1010ff2
mov eax, 0xc0000017
jmp 0x100b6fc
cmp byte [0x1038415], 0
je 0x101101b
mov eax, dword [ebp - 0x28]
add eax, 0x34
push eax
push dword [ebp - 4]
mov eax, dword [ebx + 0x84]
push dword [ebp + 8]
shr eax, 1
push eax
push dword [esi + 0x24]
call fcn.01036d87
jmp 0x1011036
mov eax, dword [ebx + 0x84]
shr eax, 1
push eax
push dword [ebp + 8]
push eax
push dword [esi + 0x24]
push dword [0x1038330]
call fcn.0101c260
push eax
push dword [ebp + 8]
mov dword [ebx + 0x84], eax
push dword [esi + 0x24]
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x1011058
inc dword [ebx + 0x84]
push dword [ebp + 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call edi
push dword [esi + 0x54]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
xor ebx, ebx
push ebx
push dword [eax + 0x18]
call edi
cmp byte [ebp + 0x10], bl
je 0x100b6f9
mov dword [0x10383cc], ebx
push dword [esi + 4]
push dword [esi + 0x4c]
call fcn.0101a8e7
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call edi
jmp 0x100b6f9