Function at 0x10144c3a
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, dword [0x102c4138]
mov esi, edx
add esi, 0xfffff82b
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 0
sete dl
mov esi, dword [ebp - 0x1c]
mov dword [0x102c4134], esi
mov edi, dword [ebp - 0x10]
cmp edi, 0
sete dh
and dl, dh
test dl, 1
mov dword [ebp - 0x20], eax
jne 0x10144d56
jmp 0x10144d80
mov eax, dword [ebp - 0x24]
mov ecx, 0x5fe
mov edx, dword [ebp - 0x28]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov word [ebp - 0x32], si
mov word [ebp - 0x34], bx
jb 0x10144cd8
mov ax, word [ebp - 0x32]
mov word [ebp - 0x34], ax
mov ax, word [ebp - 0x34]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x2c]
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 - 0x30]
mov byte [ebp - 0x35], bl
mov dword [ebp - 0x3c], esi
jne 0x10144d1d
jmp 0x10144d35
mov eax, dword [ebp - 0x40]
mov dword [0x102c4134], eax
mov dword [0x102c4138], 0x14b5
jmp 0x10144ea3
mov eax, dword [ebp - 0x3c]
mov cl, byte [ebp - 0x35]
test cl, 1
mov edx, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], edx
jne 0x10144d61
jmp 0x10144e7d
mov eax, 0x1079
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov edx, dword [ebp - 0x4c]
cmp ecx, edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x3c], eax
jb 0x10144c9c
jmp 0x10144d1d
mov eax, dword [ebp - 0x20]
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [0x102c4138], 0x14b5
mov eax, dword [ebp - 0x44]
add eax, 0x2078
mov dword [0x102c4134], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x20], eax
jmp 0x10144d56
mov eax, dword [ebp - 0x18]
add eax, 0xffffff19
mov dword [0x102c4138], eax
mov dword [0x102c4134], 0x1807
mov ecx, dword fs:[0x18]
mov dword [0x102c4134], 0x17d3
mov dword [0x102c4138], 0xca9
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0xc]
mov ecx, eax
add ecx, 0x14
mov eax, dword [eax + 0x14]
mov dword [0x102c4134], 0x1e4e
cmp eax, ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], eax
je 0x10144ea3
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [0x102c4138]
add edx, 0xffffdfbd
mov esi, dword [ebp - 0x58]
mov byte [ebp - 0x59], cl
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x64], esi
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
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 - 0x59]
and bh, bl
test bh, 1
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x50], edi
jne 0x10144e5a
xor eax, eax
mov ecx, dword [ebp - 0x70]
mov dx, word [ecx]
shr dx, 1
movzx esi, dx
cmp dx, 0
mov edi, dword [ebp - 0x6c]
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x48], edi
je 0x10144e7d
jmp 0x10144c9c
mov eax, dword [ebp - 0x6c]
mov dword [0x102c4134], eax
mov dword [0x102c4138], 0x14b5
mov ecx, dword [ebp - 0x68]
add ecx, 0xfffffff8
mov dword [ebp - 0x20], ecx
jmp 0x10144d56
mov eax, dword [ebp - 0x48]
mov ecx, 0xfffff472
mov edx, dword [ebp - 0x68]
mov esi, dword [edx]
mov edi, dword [ebp - 0x54]
cmp esi, edi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x64], esi
je 0x10144d06
jmp 0x10144dfe
mov dword [0x102c4134], 0x1726
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x10144d56