Function at 0x10004970
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 [0x10019c78], 0x1f14
mov dword [0x10019c74], 0xd0f
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 0x100049bb
jmp 0x100049ec
mov eax, dword [ebp - 0x18]
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov cx, word [eax]
shr cx, 1
movzx edx, cx
cmp cx, 0
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], esi
je 0x10004b84
jmp 0x10004abe
mov dword [0x10019c78], 0x1da2
mov dword [0x10019c74], 0xa49
mov ecx, dword fs:[0x18]
xor eax, eax
mov edx, dword [0x10019c74]
add edx, 0x211c
mov dword [0x10019c74], edx
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0xc]
mov edx, ecx
add edx, 0x14
mov dword [0x10019c78], 0x1e4f
mov ecx, dword [ecx + 0x14]
mov dword [0x10019c74], 0x1b5d
cmp ecx, edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x18], eax
je 0x100049bb
mov eax, 0x1b5d
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
setne dl
mov esi, dword [ebp - 0x2c]
mov byte [ebp - 0x31], dl
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], esi
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov edx, eax
add edx, 0x24
mov esi, dword [eax + 0x28]
mov edi, ecx
add edi, 0xffffde1f
mov ebx, dword [eax + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x10]
cmp ebx, eax
sete al
mov ah, byte [ebp - 0x31]
and ah, al
test ah, 1
mov eax, edi
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], eax
jne 0x10004ad1
jmp 0x100049c6
xor eax, eax
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffe61
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], eax
jmp 0x10004aea
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x44]
mov dword [0x10019c78], ecx
add eax, 0xfffffff8
mov dword [ebp - 0x18], eax
jmp 0x100049bb
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x4c]
mov dx, word [ecx + eax*2]
mov si, dx
add si, 0xffbf
mov di, dx
add di, 0x20
cmp si, 0x1a
mov dword [ebp - 0x60], eax
mov word [ebp - 0x62], dx
mov word [ebp - 0x64], di
jb 0x10004b1e
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
add edx, 1
cmp ax, 0
setne bh
mov al, bl
and al, bh
mov esi, dword [ebp - 0x24]
cmp edx, esi
setb bh
and al, bh
test al, 1
mov dword [ebp - 0x5c], edx
mov byte [ebp - 0x65], bl
jne 0x10004aea
mov al, byte [ebp - 0x65]
mov ecx, dword [ebp - 0x58]
mov dword [0x10019c74], ecx
test al, 1
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x6c], edx
jne 0x10004b6f
jmp 0x10004b84
mov eax, dword [ebp - 0x6c]
mov dword [0x10019c78], 0x2279
mov dword [ebp - 0x18], eax
jmp 0x100049bb
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x30]
cmp edx, esi
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x70], edi
jne 0x10004a6e
mov eax, dword [ebp - 0x70]
xor ecx, ecx
mov dword [0x10019c78], eax
mov dword [ebp - 0x18], ecx
jmp 0x100049bb