Function at 0x10021510
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x270
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
xor edx, edx
dec edx
mov dword [eax + 8], edx
mov dword [eax + 4], 0x10028ec0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea esi, [ebp - 0xec]
mov dword [esi + 0x60], edx
pcmpeqd xmm0, xmm0
movdqu xmmword [esi + 0x50], xmm0
movdqu xmmword [esi + 0x40], xmm0
movdqu xmmword [esi + 0x30], xmm0
movdqu xmmword [esi + 0x20], xmm0
movdqu xmmword [esi + 0x10], xmm0
movdqu xmmword [esi], xmm0
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x27c]
push 0xc8
push 0xff
mov dword [ebp - 0x3c], eax
push eax
call fcn.1002ec50
sub esp, 8
movsd xmm0, qword [ebp + 0x1c]
movsd qword [esp + 0xc], xmm0
mov dword [esp], esi
mov dword [esp + 8], str._.0Lf
mov dword [esp + 4], 0x64
call fcn.100539f4
add esp, 0x14
cmp eax, 0x64
jb 0x1002163b
mov dword [ebp - 0x24], esp
push eax
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x20], eax
add eax, 4
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x10], ecx
push eax
call fcn.1002ab70
add esp, 4
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov dword [ecx + 0x10], str._.0Lf
movsd xmm0, qword [ebp + 0x1c]
movsd qword [ecx + 0x14], xmm0
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
call fcn.1002a820
add esp, 0x1c
mov dword [ebp - 0x20], eax
mov esp, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1002192f
mov esi, dword [ebp - 0x38]
add eax, eax
push eax
call fcn.10040acf
add esp, 4
test eax, eax
je 0x1002191e
mov dword [ebp - 0x3c], eax
jmp 0x10021642
mov dword [ebp - 0x24], 0
jmp 0x100216c8
mov dword [ebp - 0x20], eax
xor eax, eax
xor esi, esi
mov ecx, dword [ebp + 0x14]
lea edx, [ebp - 0x34]
mov dword [edx], 0xffffffff
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x10], 0
push edx
call fcn.1001188a
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x34]
push 0x10069fe8
call fcn.10023d30
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x38]
lea ebx, [edi + ecx]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax]
mov dword [ebp - 0x64], eax
mov esi, dword [ecx + 0x28]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, esi
call dword [section..00cfg]
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x64]
push dword [ebp - 0x3c]
push ebx
push edi
call esi
mov eax, dword [ebp - 0x20]
xor edx, edx
test eax, eax
jle 0x1002162f
mov ecx, dword [ebp - 0x38]
cmp byte [ecx], 0x2d
sete al
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x70]
xor ebx, ebx
dec ebx
mov dword [eax], ebx
lea edi, [ebp - 0x88]
mov dword [edi + 4], edx
mov dword [edi], edx
mov dword [edi + 8], edx
lea esi, [ebp - 0x58]
mov dword [esi + 4], edx
mov dword [esi], edx
mov dword [esi + 8], edx
lea ecx, [ebp - 0x4c]
mov dword [ecx + 4], edx
mov dword [ecx], edx
mov dword [ecx + 8], edx
lea eax, [ebp - 0x30]
mov word [eax], bx
lea eax, [ebp - 0x2e]
mov word [eax], bx
lea edx, [ebp - 0x7c]
mov dword [edx], ebx
mov dword [ebp - 0x10], 2
movzx eax, byte [ebp - 0x24]
movzx ebx, byte [ebp + 0x10]
push edx
push ecx
push esi
push edi
lea ecx, [ebp - 0x2e]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x34]
push ecx
mov dword [ebp - 0x78], eax
push eax
push ebx
call fcn.100219fe
add esp, 0x28
lea edi, [ebp - 0x1b4]
push 0xc8
push 0xff
push edi
call fcn.1002ec50
add esp, 0xc
mov ebx, dword [ebp - 0x7c]
mov esi, dword [ebp - 0x20]
mov eax, esi
sub eax, ebx
jg 0x10021783
movzx eax, byte [ebp - 0x41]
test al, al
jns 0x10021767
mov eax, dword [ebp - 0x48]
jmp 0x1002176a
and eax, 0x7f
movzx ecx, byte [ebp - 0x4d]
test cl, cl
jns 0x10021777
mov ecx, dword [ebp - 0x54]
jmp 0x1002177a
and ecx, 0x7f
add eax, ebx
add eax, ecx
add eax, 2
jmp 0x100217ab
movzx ecx, byte [ebp - 0x41]
test cl, cl
js 0x10021790
and ecx, 0x7f
jmp 0x10021793
mov ecx, dword [ebp - 0x48]
movzx edx, byte [ebp - 0x4d]
test dl, dl
js 0x100217a0
and edx, 0x7f
jmp 0x100217a3
mov edx, dword [ebp - 0x54]
lea eax, [ebx + eax*2]
add eax, ecx
add eax, edx
inc eax
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x24], 0
cmp eax, 0x65
jb 0x100217d2
add eax, eax
push eax
call fcn.10040acf
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10021909
lea eax, [ebp - 0x6c]
xor edx, edx
dec edx
mov dword [eax], edx
lea eax, [ebp - 0x68]
mov dword [eax], edx
movzx ebx, word [ebp - 0x2e]
mov eax, dword [ebp - 0x3c]
lea ecx, [eax + esi*2]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 4]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x10], 3
movzx esi, word [ebp - 0x30]
push dword [ebp - 0x74]
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x88]
push ecx
push ebx
push esi
lea esi, [ebp - 0x70]
push esi
push dword [ebp - 0x78]
push dword [ebp - 0x64]
push dword [ebp - 0x20]
push eax
push edx
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x20], edi
push edi
call fcn.10021b52
add esp, 0x3c
movzx eax, word [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x68]
mov esi, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x40], edi
movzx eax, ax
push eax
push dword [ebp + 0x14]
push edx
push esi
push dword [ebp - 0x20]
push ecx
push dword [ebp + 8]
call fcn.100066f8
add esp, 0x1c
cmp dword [ebp - 0x24], 0
je 0x10021876
push dword [ebp - 0x24]
call fcn.1003fae0
add esp, 4
cmp byte [ebp - 0x41], 0
jns 0x10021887
push dword [ebp - 0x4c]
call fcn.1002afb4
add esp, 4
cmp byte [ebp - 0x4d], 0
jns 0x10021898
push dword [ebp - 0x58]
call fcn.1002afb4
add esp, 4
cmp byte [ebp - 0x7d], 0
jns 0x100218ac
push dword [ebp - 0x88]
call fcn.1002afb4
add esp, 4
mov esi, dword [ebp - 0x34]
xor eax, eax
dec eax
lock xadd dword [esi + 4], eax
test eax, eax
jne 0x100218d3
mov eax, dword [esi]
mov edi, dword [eax + 4]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
call edi
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x100218e3
push eax
call fcn.1003fae0
add esp, 4
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x100218f3
push eax
call fcn.1003fae0
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x10], 3
call fcn.10053a71
jmp 0x1002193c
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], esi
call fcn.10053a71
jmp 0x1002193c
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
call fcn.10053a71
push ebp
sub esp, 0x3c
add ebp, 0xc
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x10021953
push eax
call fcn.1003fae0
add esp, 4
add esp, 0x3c
pop ebp
ret