Function at 0x18e7dc
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x18e7e5
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x18ec3a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x35], 1
mov byte [ebp - 0xe], 0
mov byte [ebp - 0x10], 0
mov byte [ebp - 0xf], 0
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0xc]
call fcn.00013c3c
xor eax, eax
push ebp
push 0x18eac2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x30]
test ecx, ecx
setne byte [ebp - 0xf]
cmp byte [ebp - 0xf], 0
je 0x18e875
mov ebx, dword [ecx + 0x1c]
test ebx, ebx
setne byte [ebp - 0x10]
cmp byte [ebp - 0x10], 0
je 0x18e875
mov al, byte [ebx + 0xb4]
mov byte [ebp - 0xd], al
mov eax, dword [ebx + 0x1c0]
cdq
cmp edx, 0
jne 0x18e86f
cmp eax, 0xffffffff
setne al
mov byte [ebp - 0xe], al
mov al, byte [ebp - 0xd]
or al, byte [ebp - 0xe]
je 0x18e885
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov al, byte [ebp - 0xd]
or al, byte [ebp - 0xe]
je 0x18ea12
cmp byte [ebp - 5], 0
jne 0x18ea12
call sub.kernel32.dll_GetTickCount
mov esi, eax
xor ebx, ebx
test bl, bl
je 0x18e8af
push 0x64
call sub.kernel32.dll_Sleep
mov byte [ebp - 0xe], 0
mov byte [ebp - 0x10], 0
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xf], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x30]
test ecx, ecx
setne byte [ebp - 0xf]
cmp byte [ebp - 0xf], 0
je 0x18e8fe
mov ebx, dword [ecx + 0x1c]
test ebx, ebx
setne byte [ebp - 0x10]
cmp byte [ebp - 0x10], 0
je 0x18e8fe
mov al, byte [ebx + 0xb4]
mov byte [ebp - 0xd], al
mov eax, dword [ebx + 0x1c0]
cdq
cmp edx, 0
jne 0x18e8f8
cmp eax, 0xffffffff
setne al
mov byte [ebp - 0xe], al
mov al, byte [ebp - 0xd]
or al, byte [ebp - 0xe]
je 0x18e90e
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov bl, 1
cmp byte [ebp - 0xd], 0
je 0x18e93f
cmp byte [ebp - 0xe], 0
je 0x18e93f
cmp byte [ebp - 0x10], 0
je 0x18e93f
cmp byte [ebp - 0xf], 0
je 0x18e93f
call sub.kernel32.dll_GetTickCount
mov edx, esi
call fcn.0002cde4
cmp eax, 0x1388
jb 0x18e8a4
lea edx, [ebp - 0x14]
mov eax, 0x18ec48
call fcn.00031d88
push dword [ebp - 0x14]
lea edx, [ebp - 0x18]
mov al, byte [ebp - 0xf]
call fcn.0002d050
push dword [ebp - 0x18]
lea edx, [ebp - 0x1c]
mov eax, 0x18ec5c
call fcn.00031d88
push dword [ebp - 0x1c]
lea edx, [ebp - 0x20]
mov al, byte [ebp - 0x10]
call fcn.0002d050
push dword [ebp - 0x20]
lea edx, [ebp - 0x24]
mov eax, 0x18ec5c
call fcn.00031d88
push dword [ebp - 0x24]
lea edx, [ebp - 0x28]
mov al, byte [ebp - 0xd]
call fcn.0002d050
push dword [ebp - 0x28]
lea edx, [ebp - 0x2c]
mov eax, 0x18ec5c
call fcn.00031d88
push dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
mov al, byte [ebp - 0xe]
call fcn.0002d050
push dword [ebp - 0x30]
lea edx, [ebp - 0x34]
mov eax, 0x18ec5c
call fcn.00031d88
push dword [ebp - 0x34]
lea edx, [ebp - 0x38]
mov al, byte [ebp - 5]
call fcn.0002d050
push dword [ebp - 0x38]
lea edx, [ebp - 0x3c]
mov eax, 0x18ec5c
call fcn.00031d88
push dword [ebp - 0x3c]
call sub.kernel32.dll_GetTickCount
mov edx, esi
call fcn.0002cde4
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x40]
call fcn.00033468
push dword [ebp - 0x40]
mov eax, dword [ebp - 0xc]
mov edx, 0xc
call fcn.00013f8c
jmp 0x18eab5
lea edx, [ebp - 0x44]
mov eax, 0x18ec60
call fcn.00031d88
push dword [ebp - 0x44]
lea edx, [ebp - 0x48]
mov al, byte [ebp - 0xf]
call fcn.0002d050
push dword [ebp - 0x48]
lea edx, [ebp - 0x4c]
mov eax, 0x18ec5c
call fcn.00031d88
push dword [ebp - 0x4c]
lea edx, [ebp - 0x50]
mov al, byte [ebp - 0x10]
call fcn.0002d050
push dword [ebp - 0x50]
lea edx, [ebp - 0x54]
mov eax, 0x18ec5c
call fcn.00031d88
push dword [ebp - 0x54]
lea edx, [ebp - 0x58]
mov al, byte [ebp - 0xd]
call fcn.0002d050
push dword [ebp - 0x58]
lea edx, [ebp - 0x5c]
mov eax, 0x18ec5c
call fcn.00031d88
push dword [ebp - 0x5c]
lea edx, [ebp - 0x60]
mov al, byte [ebp - 0xe]
call fcn.0002d050
push dword [ebp - 0x60]
lea edx, [ebp - 0x64]
mov eax, 0x18ec5c
call fcn.00031d88
push dword [ebp - 0x64]
lea edx, [ebp - 0x68]
mov al, byte [ebp - 5]
call fcn.0002d050
push dword [ebp - 0x68]
mov eax, dword [ebp - 0xc]
mov edx, 0xa
call fcn.00013f8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x18ebae
mov eax, dword [ebp - 0xc]
push dword [eax]
lea edx, [ebp - 0x98]
mov eax, 0x18ec5c
call fcn.00031d88
push dword [ebp - 0x98]
lea eax, [ebp - 0x9c]
call fcn.001185cc
push dword [ebp - 0x9c]
lea edx, [ebp - 0xa0]
mov eax, 0x18ec5c
call fcn.00031d88
push dword [ebp - 0xa0]
lea eax, [ebp - 0xa4]
call fcn.00118448
push dword [ebp - 0xa4]
mov eax, dword [ebp - 0xc]
mov edx, 5
call fcn.00013f8c
cmp byte [ebp - 5], 0
je 0x18ec1c
mov eax, dword [ebp - 4]
call fcn.0003f854
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x18ec41
lea eax, [ebp - 0xa4]
mov edx, 0x25
call fcn.00013c60
ret