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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x64
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
mov dword [0x100aa210], 0x2072
cmp ecx, 0
sete bl
cmp eax, 0
sete bh
and bl, bh
test bl, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x100061ff
jmp 0x1000620a
mov eax, 0x5cb
mov cl, byte [ebp - 0x19]
test cl, 1
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
jne 0x10006379
jmp 0x1000639a
mov eax, 0xfffffc3a
mov ecx, 0x1936
xor edx, edx
mov esi, dword [ebp - 0x2c]
mov di, word [esi]
shr di, 1
movzx ebx, di
cmp di, 0
mov esi, ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x28], ecx
je 0x1000639a
jmp 0x100062ef
mov eax, dword [ebp - 0x18]
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [0x100aa214], 0xfffff1d1
mov dword [0x100aa210], 0xcbc
mov ecx, dword fs:[0x18]
mov dword [0x100aa214], 0x1b8f
mov dword [0x100aa210], 0x2068
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0xc]
mov ecx, eax
add ecx, 0x14
mov dword [0x100aa214], 0x1bb4
mov eax, dword [eax + 0x14]
mov dword [0x100aa210], 0x14fc
cmp eax, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
je 0x100063d4
mov eax, 0x14fc
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
setne dl
mov esi, dword [ebp - 0x40]
mov byte [ebp - 0x41], dl
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], esi
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov edx, eax
add edx, 0x24
mov esi, dword [eax + 0x28]
mov edi, dword [eax + 0x10]
mov ebx, dword [ebp - 0x10]
cmp edi, ebx
sete bl
mov bh, byte [ebp - 0x41]
and bh, bl
test bh, 1
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x5c], edi
jne 0x100062c3
jmp 0x100061c5
mov eax, dword [ebp - 0x54]
add eax, 0x1aa3
mov ecx, dword [ebp - 0x54]
add ecx, 0xffffff12
mov dword [0x100aa214], eax
mov dword [0x100aa210], ecx
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff8
mov dword [ebp - 0x18], eax
jmp 0x100061ff
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x58]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], ecx
mov word [ebp - 0x66], si
mov word [ebp - 0x68], bx
jb 0x10006329
mov ax, word [ebp - 0x66]
mov word [ebp - 0x68], ax
mov ax, word [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
add ecx, 0xffffe35d
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x60]
cmp word [edx + esi*2], ax
sete bl
add esi, 1
cmp ax, 0
setne bh
mov al, bl
and al, bh
mov edi, dword [ebp - 0x34]
cmp esi, edi
setb bh
and al, bh
test al, 1
mov eax, ecx
mov byte [ebp - 0x19], bl
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], esi
jne 0x100062ef
jmp 0x100061a6
mov eax, dword [ebp - 0x64]
add eax, 0xfffffa18
mov ecx, dword [ebp - 0x20]
mov dword [0x100aa210], ecx
mov dword [0x100aa214], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], eax
jmp 0x100061ff
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
add eax, 0xfffffb07
mov edx, dword [ebp - 0x50]
mov esi, dword [edx]
mov edi, dword [ebp - 0x3c]
cmp esi, edi
mov ebx, eax
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], esi
jne 0x10006289
mov eax, dword [ebp - 0x6c]
mov dword [0x100aa214], eax
mov ecx, dword [ebp - 0x70]
mov dword [0x100aa210], ecx
xor eax, eax
mov dword [0x100aa210], 0x2401
mov dword [ebp - 0x18], eax
jmp 0x100061ff