Function at 0x10139d00
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]
cmp ecx, 0
sete dl
mov dword [0x10140394], 0x1d0f
mov esi, dword [0x10140398]
add esi, 0x1308
mov dword [0x10140398], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x15], dl
mov eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
sete dl
mov dh, byte [ebp - 0x15]
and dh, dl
test dh, 1
mov dword [ebp - 0x1c], eax
jne 0x10139d9e
jmp 0x10139dc1
mov eax, dword [ebp - 0x20]
mov cx, word [eax + 0x24]
mov edx, dword [eax + 0x28]
mov esi, dword [ebp - 0x24]
mov dword [0x10140394], esi
mov edi, dword [eax + 0x10]
mov ebx, dword [ebp - 0x10]
cmp edi, ebx
sete al
mov ah, byte [ebp - 0x25]
and ah, al
test ah, 1
mov esi, dword [ebp - 0x20]
mov word [ebp - 0x28], cx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edi
jne 0x10139e58
jmp 0x10139e68
mov eax, dword [ebp - 0x1c]
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 0x40c8
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
jmp 0x10139e35
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x1c], eax
jmp 0x10139d9e
mov dword [0x10140398], 0x533
mov dword [0x10140394], 0x10ed
mov ecx, dword fs:[0x18]
mov dword [0x10140394], 0xb3f
mov dword [0x10140398], 0x25b1
mov eax, dword [ecx + 0x30]
mov dword [0x10140398], 0x714
mov dword [ebp - 0x44], eax
mov eax, 0x2546
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0xc]
add edx, 0x14
mov dword [0x10140394], 0x1d7f
mov esi, dword [ebp - 0x10]
cmp esi, 0
setne bl
mov edi, edx
mov byte [ebp - 0x25], bl
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], edi
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov eax, dword [eax]
mov esi, dword [ebp - 0x48]
cmp eax, esi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x40], edx
je 0x10139db9
jmp 0x10139d5d
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff8
mov dword [ebp - 0x1c], eax
jmp 0x10139d9e
mov dword [0x10140398], 0x2296
mov ax, word [ebp - 0x28]
shr ax, 1
movzx ecx, ax
mov word [ebp - 0x4a], ax
mov dword [ebp - 0x50], ecx
mov ax, word [ebp - 0x4a]
cmp ax, 0
je 0x10139da9
xor eax, eax
mov dword [ebp - 0x54], eax
jmp 0x10139e99
mov eax, dword [ebp - 0x54]
mov ecx, 0x1c00
mov edx, dword [ebp - 0x2c]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], ecx
mov word [ebp - 0x5e], si
mov word [ebp - 0x60], bx
jb 0x10139ed5
mov ax, word [ebp - 0x5e]
mov word [ebp - 0x60], ax
mov ax, word [ebp - 0x60]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x58]
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 al, bl
mov esi, dword [ebp - 0x5c]
mov byte [ebp - 0x61], bl
mov byte [ebp - 0x62], al
mov dword [ebp - 0x68], esi
jne 0x10139f3e
mov eax, dword [ebp - 0x58]
add eax, 1
mov ecx, dword [ebp - 0x50]
cmp eax, ecx
setb dl
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x6d], dl
mov eax, 0x16c1
mov cl, byte [ebp - 0x6d]
test cl, 1
mov edx, dword [ebp - 0x6c]
mov ch, byte [ebp - 0x61]
mov byte [ebp - 0x62], ch
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x68], eax
jne 0x10139e99
jmp 0x10139f3e
mov eax, dword [ebp - 0x68]
mov cl, byte [ebp - 0x62]
mov dword [0x10140394], eax
test cl, 1
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x40], eax
jne 0x10139db9
jmp 0x10139da9