Function at 0x10006152
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
cmp ecx, 0
sete bl
cmp eax, 0
sete bh
mov dword [0x101182e8], 0x2072
and bl, bh
test bl, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x100063dd
jmp 0x10006244
mov eax, dword [ebp - 0x1c]
mov dword [0x101182ec], eax
mov ecx, dword [ebp - 0x20]
mov dword [0x101182e8], ecx
jmp 0x100063cc
mov eax, 0x5cb
mov cl, byte [ebp - 0x21]
test cl, 1
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], eax
jne 0x1000637e
jmp 0x1000639d
mov eax, 0x1936
mov ecx, 0xfffffc3a
xor edx, edx
mov esi, dword [ebp - 0x34]
mov di, word [esi]
shr di, 1
movzx ebx, di
cmp di, 0
mov esi, eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x30], ecx
je 0x1000639d
jmp 0x100062f4
mov eax, dword [ebp - 0x44]
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 - 0x49]
and bh, bl
test bh, 1
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x5c], edi
jne 0x100062c8
jmp 0x100061cf
mov dword [0x101182ec], 0xfffff1d1
mov dword [0x101182e8], 0xcbc
mov ecx, dword fs:[0x18]
mov dword [0x101182ec], 0x1b8f
mov dword [0x101182e8], 0x2068
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0xc]
mov ecx, eax
add ecx, 0x14
mov dword [0x101182ec], 0x1bb4
mov eax, dword [eax + 0x14]
mov dword [0x101182e8], 0x14fc
cmp eax, ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x64], eax
je 0x100063cc
mov eax, 0x14fc
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
setne dl
mov esi, dword [ebp - 0x64]
mov byte [ebp - 0x49], dl
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], esi
jmp 0x10006209
mov eax, dword [ebp - 0x54]
add eax, 0x1aa3
mov ecx, dword [ebp - 0x54]
add ecx, 0xffffff12
mov dword [0x101182ec], eax
mov dword [0x101182e8], ecx
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff8
mov dword [ebp - 0x18], eax
jmp 0x100063dd
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x40]
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 - 0x68], eax
mov dword [ebp - 0x6c], ecx
mov word [ebp - 0x6e], si
mov word [ebp - 0x70], bx
jb 0x1000632e
mov ax, word [ebp - 0x6e]
mov word [ebp - 0x70], ax
mov ax, word [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
add ecx, 0xffffe35d
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x68]
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 - 0x3c]
cmp esi, edi
setb bh
and al, bh
test al, 1
mov eax, ecx
mov byte [ebp - 0x21], bl
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], esi
jne 0x100062f4
jmp 0x100061b0
mov eax, dword [ebp - 0x28]
mov dword [0x101182e8], eax
mov ecx, dword [ebp - 0x6c]
add ecx, 0xfffffa18
mov dword [0x101182ec], ecx
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x18], ecx
jmp 0x100063dd
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffb07
mov edx, dword [ebp - 0x50]
mov esi, dword [edx]
mov edi, dword [ebp - 0x60]
cmp esi, edi
mov ebx, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], esi
je 0x1000619a
jmp 0x10006209
mov dword [0x101182e8], 0x2401
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x100063dd
mov eax, dword [ebp - 0x18]
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret