Function at 0x10021d90
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x100b7040]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
mov esi, ecx
push edi
test esi, esi
je 0x100225c3
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push esi
call edi
test eax, eax
jne 0x100225c3
movzx eax, word [esi + 0x678]
test ax, ax
jle 0x100225c3
mov ecx, dword [0x100ae50c]
push 1
cwde
push eax
call ecx
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
je 0x100225c3
push 4
push esi
call edi
test eax, eax
jne 0x100225c3
cmp byte [esi + 0xa58], al
movzx ecx, byte [esi + 0xbbe]
sete al
movzx eax, al
push eax
call fcn.10017a40
mov edx, eax
mov ecx, esi
call fcn.10017ab0
add esp, 4
mov ecx, 0xbc7944
call fcn.10018430
test al, al
jne 0x10021e3a
cmp dword [esi + 0x3b8], 0
je 0x100225c3
cmp byte [esi + 0x6cc], 0
je 0x100225c3
cmp dword [esi + 0x3ac], 0
je 0x100225c3
lea ecx, [esi + 0xe0]
call fcn.10018560
lea ecx, [esi + 0xdc]
movss dword [esp + 0x14], xmm0
call fcn.10018560
lea ecx, [esi + 0xd8]
movss dword [esp + 0x10], xmm0
call fcn.10018560
mov ecx, 0xc20b78
movss dword [esp + 0x30], xmm0
call fcn.10018560
mov ecx, 0xc20b74
movss dword [esp + 0xc], xmm0
call fcn.10018560
mov ecx, 0xc20b70
movss dword [esp + 0x18], xmm0
call fcn.10018560
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100b9e20]
movss dword [esp + 0x1c], xmm0
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x100bae34]
cmp eax, dword [ecx + 4]
jle 0x10021ef6
push 0x100bae34
call fcn.1007fdcd
add esp, 4
cmp dword [0x100bae34], 0xffffffff
jne 0x10021ef6
push 0x100bae34
call fcn.1007fd7c
add esp, 4
movaps xmm0, xmmword [esp + 0x30]
mov ecx, 0xade4d8
movss xmm1, dword [esp + 0x10]
movss xmm2, dword [esp + 0x14]
subss xmm0, dword [esp + 0x1c]
subss xmm1, dword [esp + 0x18]
subss xmm2, dword [esp + 0xc]
unpcklps xmm0, xmm1
movss dword [0x100bae40], xmm2
mov eax, dword [0x100bae40]
movq qword [0x100bae38], xmm0
movq qword [esp + 0x44], xmm0
mov dword [esp + 0x4c], eax
call fcn.10018560
movss xmm1, dword [esp + 0x48]
movss xmm2, dword [esp + 0x44]
mulss xmm1, xmm1
mulss xmm2, xmm2
movss dword [esp + 0xc], xmm0
addss xmm2, xmm1
movss xmm1, dword [esp + 0x4c]
mulss xmm1, xmm1
addss xmm2, xmm1
xorps xmm1, xmm1
cvtps2pd xmm0, xmm2
ucomisd xmm1, xmm0
ja 0x10021f83
sqrtsd xmm0, xmm0
jmp 0x10021f88
call fcn.1009bd30
movss xmm1, dword [esp + 0xc]
cvtsd2ss xmm0, xmm0
comiss xmm1, xmm0
jbe 0x100225c3
cmp dword [0x100ba9dc], 0
mov eax, dword [esi + 0xac0]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xac4]
mov dword [esp + 0x18], eax
je 0x100225c3
cmp dword [esi + 0x728], 0x64
je 0x100225c3
push esi
lea eax, [esp + 0x48]
push eax
call fcn.100200f0
cmp byte [0x100ba9eb], 0
je 0x10022001
push 4
push esi
call edi
test eax, eax
jne 0x10022001
mov eax, dword [0x100ae5cc]
mov ecx, esi
mov dword [esp + 0xc], eax
call dword [esp + 0xc]
fstp dword [esp + 0xc]
movss xmm0, dword [esp + 0xc]
jmp 0x10022004
xorps xmm0, xmm0
cmp dword [esi + 0x3e4], 7
movss dword [esp + 0x1c], xmm0
divss xmm0, dword [0x100ae924]
addss xmm0, dword [esp + 0x48]
movss dword [esp + 0x48], xmm0
jne 0x1002208b
cmp byte [0x100ba9eb], 0
je 0x1002205b
push 4
push esi
call edi
test eax, eax
jne 0x1002205b
mov eax, dword [0x100ae5c8]
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
call eax
movss xmm2, dword [eax]
movss xmm1, dword [eax + 4]
unpcklps xmm2, xmm1
movq qword [esp + 0x24], xmm2
jmp 0x10022067
movq xmm0, qword [esp + 0x50]
movq qword [esp + 0x24], xmm0
movss xmm1, dword [esp + 0x1c]
mulss xmm1, dword [0x100ae8fc]
movss xmm0, dword [esp + 0x28]
subss xmm0, xmm1
addss xmm0, dword [esp + 0x48]
movss dword [esp + 0x48], xmm0
mov eax, dword [esi + 0x3ac]
mov ecx, 0xc20bb0
mov edi, dword [0x100ae5b8]
mov dword [esp + 0x10], eax
call fcn.100184a0
mov ecx, 0xc20bac
mov esi, eax
call fcn.100184a0
push esi
push eax
push 0xc20c3c
lea eax, [esp + 0x50]
push 0xc20bbc
push eax
call edi
mov ecx, dword [esp + 0x24]
mov edi, eax
mov eax, edx
add esp, 0x14
sub eax, dword [ecx + 0x4c]
mov ecx, 0xd78d78
sub eax, 5
mov dword [esp + 0x28], eax
call fcn.100184a0
mov dword [esp + 0xc], eax
test eax, eax
je 0x100225c3
cmp dword [esp + 0x14], 1
jne 0x1002249c
cmp dword [esp + 0x18], 1
jne 0x1002249c
mov esi, dword [esp + 0x20]
cmp dword [esi + 0x6fc], 2
jg 0x1002211b
cmp dword [esi + 0x708], 1
je 0x10022128
cmp dword [esi + 0x708], 1
jle 0x1002233e
cmp dword [esi + 0x704], 0
je 0x1002233e
mov eax, dword [esp + 0x10]
lea ecx, [edi - 8]
mov dword [esp + 0x1c], ecx
mov eax, dword [eax + 0x48]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, dword [esi + 0x6d8]
sub ecx, 0xa
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x1c]
mov ecx, 0xd78d78
mov dword [esp + 0xc], eax
call fcn.100184a0
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [esp + 0x20], eax
test eax, eax
je 0x100221a1
push 4
push eax
call edi
test eax, eax
jne 0x100221a1
push dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push dword [esp + 0x18]
push dword [esp + 0x20]
push dword [esp + 0x18]
call dword [0x100ae5c0]
movzx eax, byte [esi + 0xbbd]
mov dword [esp + 0x18], eax
dec eax
cmp eax, 0xc7
jbe 0x1002226b
movzx eax, byte [esi + 0xbbe]
dec eax
cmp eax, 0xc7
jbe 0x1002226b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + 0x48]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
sub ecx, 0x1b
mov dword [esp + 0xc], ecx
mov ecx, 0xd78d78
call fcn.100184a0
mov dword [esp + 0x14], eax
test eax, eax
je 0x10022214
push 4
push eax
call edi
test eax, eax
jne 0x10022214
push dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
push dword [esp + 0x10]
push 3
push eax
call dword [0x100ae5c0]
mov cl, byte [esi + 0x6ac]
dec cl
cmp cl, 0x1c
ja 0x100225c3
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
mov eax, dword [eax + 0x48]
cdq
sub eax, edx
sar eax, 1
sub esi, eax
sub esi, 0x2d
mov ecx, 0xd78d78
call fcn.100184a0
mov dword [esp + 0xc], eax
test eax, eax
je 0x1002259f
push 4
push eax
call edi
test eax, eax
jne 0x1002259f
push dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
push esi
jmp 0x10022590
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + 0x48]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
movzx eax, byte [esi + 0xbbe]
sub ecx, 0x1b
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ecx
mov ecx, 0xd78d78
call fcn.100184a0
mov dword [esp + 0x20], eax
test eax, eax
je 0x100222c4
push 4
push eax
call edi
test eax, eax
jne 0x100222c4
push dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push dword [esp + 0x10]
push dword [esp + 0x1c]
push dword [esp + 0x24]
call dword [0x100ae5c4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff8
mov dword [esp + 0x18], ecx
mov eax, dword [eax + 0x48]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
sub ecx, 0x25
mov dword [esp + 0xc], ecx
mov ecx, 0xd78d78
call fcn.100184a0
mov dword [esp + 0x14], eax
test eax, eax
je 0x10022314
push 4
push eax
call edi
test eax, eax
jne 0x10022314
push dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
push dword [esp + 0x10]
push 3
push eax
call dword [0x100ae5c0]
mov al, byte [esi + 0x6ac]
dec al
cmp al, 0x1c
ja 0x100225c3
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov eax, dword [eax + 0x48]
cdq
sub eax, edx
sar eax, 1
sub esi, eax
sub esi, 0x37
jmp 0x1002223a
movzx eax, byte [esi + 0xbbd]
mov dword [esp + 0x18], eax
dec eax
cmp eax, 0xc7
jbe 0x100223e2
movzx eax, byte [esi + 0xbbe]
dec eax
cmp eax, 0xc7
jbe 0x100223e2
mov eax, dword [esp + 0x10]
add edi, 0xfffffff8
mov ecx, edi
mov dword [esp + 0x18], edi
mov eax, dword [eax + 0x48]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
sub ecx, 0xa
mov dword [esp + 0xc], ecx
mov ecx, 0xd78d78
call fcn.100184a0
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [esp + 0x14], eax
test eax, eax
je 0x100223b8
push 4
push eax
call edi
test eax, eax
jne 0x100223b8
push dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
push dword [esp + 0x10]
push 3
push eax
call dword [0x100ae5c0]
mov al, byte [esi + 0x6ac]
dec al
cmp al, 0x1c
ja 0x100225c3
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov eax, dword [eax + 0x48]
cdq
sub eax, edx
sar eax, 1
sub esi, eax
sub esi, 0x1b
jmp 0x1002223a
mov eax, dword [esp + 0x10]
lea ecx, [edi - 8]
mov dword [esp + 0x1c], ecx
mov eax, dword [eax + 0x48]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
movzx eax, byte [esi + 0xbbe]
sub ecx, 0xa
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ecx
mov ecx, 0xd78d78
call fcn.100184a0
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [esp + 0x20], eax
test eax, eax
je 0x10022444
push 4
push eax
call edi
test eax, eax
jne 0x10022444
push dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push dword [esp + 0x10]
push dword [esp + 0x1c]
push dword [esp + 0x24]
call dword [0x100ae5c4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + 0x48]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
sub ecx, 0x1b
mov dword [esp + 0xc], ecx
mov ecx, 0xd78d78
call fcn.100184a0
mov dword [esp + 0x14], eax
test eax, eax
je 0x1002248d
push 4
push eax
call edi
test eax, eax
jne 0x1002248d
push dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
push dword [esp + 0x10]
push 3
push eax
call dword [0x100ae5c0]
mov al, byte [esi + 0x6ac]
dec al
cmp al, 0x1c
jmp 0x1002221f
mov esi, dword [esp + 0x20]
cmp dword [esi + 0x6fc], 2
jg 0x100224b2
cmp dword [esi + 0x708], 1
je 0x100224bb
cmp dword [esi + 0x708], 1
jle 0x10022505
cmp dword [esi + 0x704], 0
je 0x10022505
movzx eax, byte [esi + 0xbbd]
dec eax
cmp eax, 0xc7
jbe 0x100224e2
movzx eax, byte [esi + 0xbbe]
dec eax
cmp eax, 0xc7
ja 0x10022546
mov al, byte [esi + 0x6ac]
dec al
cmp al, 0x1c
ja 0x100225c3
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x48]
cdq
sub eax, edx
sar eax, 1
sub edi, eax
sub edi, 0x2d
jmp 0x10022563
movzx eax, byte [esi + 0xbbd]
dec eax
cmp eax, 0xc7
jbe 0x10022546
movzx eax, byte [esi + 0xbbe]
dec eax
cmp eax, 0xc7
jbe 0x10022546
mov al, byte [esi + 0x6ac]
dec al
cmp al, 0x1c
ja 0x100225c3
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x48]
cdq
sub eax, edx
sar eax, 1
sub edi, eax
sub edi, 0x12
jmp 0x10022563
mov al, byte [esi + 0x6ac]
dec al
cmp al, 0x1c
ja 0x100225c3
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x48]
cdq
sub eax, edx
sar eax, 1
sub edi, eax
sub edi, 0x1b
mov ecx, 0xd78d78
mov dword [esp + 0x10], edi
call fcn.100184a0
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov esi, eax
test esi, esi
je 0x1002259f
push 4
push esi
call edi
test eax, eax
jne 0x1002259f
push dword [esp + 0x28]
mov ecx, esi
push dword [esp + 0x14]
mov eax, dword [0x100ae5c0]
push 4
push 0
call eax
test al, al
jne 0x100225c3
mov ecx, 0xd78d78
call fcn.100184a0
mov esi, eax
test esi, esi
je 0x100225c3
push 4
push esi
call edi
test eax, eax
jne 0x100225c3
push 4
push eax
mov ecx, esi
call dword [0x100ae5bc]
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
xor ecx, esp
call fcn.1007f9e5
mov esp, ebp
pop ebp
ret