Function at 0x1018638b
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 esi, dword [0x101a6adc]
add esi, 0xffffe9dc
mov dword [0x101a6ae0], esi
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 0x101865eb
jmp 0x10186431
mov eax, dword [ebp - 0x1c]
mov ecx, 0xffffe506
mov edx, dword [ebp - 0x20]
mov esi, dword [edx]
mov edi, dword [ebp - 0x24]
cmp esi, edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
je 0x101865d4
jmp 0x1018648b
mov eax, 0x4d
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
setne dl
mov esi, dword [ebp - 0x34]
mov byte [ebp - 0x35], dl
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], esi
jmp 0x1018648b
mov dword [0x101a6adc], 0x926
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x101865eb
mov dword [0x101a6ae0], 0x1f15
mov dword [0x101a6adc], 0x1e97
mov ecx, dword fs:[0x18]
mov eax, dword [0x101a6adc]
add eax, 0xffffe5dc
mov dword [0x101a6adc], eax
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
add eax, 0x14
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x14]
mov dword [0x101a6adc], 0x2441
cmp edx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x34], edx
je 0x1018641d
jmp 0x101863fe
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
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 - 0x35]
and bh, bl
test bh, 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], edi
jne 0x101864c2
jmp 0x101864e5
mov eax, dword [ebp - 0x40]
mov dword [0x101a6adc], eax
mov dword [0x101a6ae0], 0x7b4
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff8
mov dword [ebp - 0x18], ecx
jmp 0x101865eb
mov eax, 0x7b4
xor ecx, ecx
mov edx, 0xffffff6d
mov esi, dword [ebp - 0x44]
mov di, word [esi]
shr di, 1
movzx ebx, di
cmp di, 0
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], edx
je 0x101863d8
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x48]
mov si, word [edx + ecx*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], ecx
mov word [ebp - 0x62], si
mov word [ebp - 0x64], bx
jb 0x1018654f
mov ax, word [ebp - 0x62]
mov word [ebp - 0x64], ax
mov ax, word [ebp - 0x64]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x60]
cmp word [ecx + edx*2], ax
sete bl
cmp ax, 0
sete bh
mov al, bl
xor al, 1
or bh, al
test bh, 1
mov esi, dword [ebp - 0x5c]
mov byte [ebp - 0x65], bl
mov dword [ebp - 0x6c], esi
jne 0x101865a2
mov eax, 0x1bf
mov ecx, 0x9b9
mov edx, dword [ebp - 0x60]
add edx, 1
mov esi, dword [ebp - 0x50]
cmp edx, esi
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x6c], ecx
jb 0x10186515
mov eax, dword [ebp - 0x6c]
mov cl, byte [ebp - 0x65]
test cl, 1
mov edx, eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x1c], edx
jne 0x101865ba
jmp 0x101863d8
mov eax, dword [ebp - 0x70]
mov dword [0x101a6ae0], eax
mov dword [0x101a6adc], 0x1f45
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x18], eax
jmp 0x101865eb
mov dword [0x101a6adc], 0x8fa
mov eax, dword [ebp - 0x28]
mov dword [0x101a6ae0], eax
jmp 0x1018641d
mov eax, dword [ebp - 0x18]
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret