Function at 0x1111b120
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111e5af8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
push esi
push esi
push str.limitcolorbits
mov ebx, ecx
mov ecx, dword [0x1127aa68]
push str.View
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x24], esi
call fcn.110bbc00
mov dword [ebp - 0x54], eax
lea eax, [ebx + 0x30]
mov edi, 0x20
push eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], 0x64
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebx + 0x68]
mov dword [ebp - 4], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x48], edi
lea esp, [esp]
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx - 0xc]
mov dword [ebp - 0x40], ecx
cmp ecx, esi
je 0x1111b361
mov eax, dword [ecx]
mov eax, dword [eax + 0x7c]
mov esi, dword [ecx + 0x30]
lea edx, [ebp - 0x58]
push edx
call eax
mov edi, eax
test edi, edi
je 0x1111b1da
cmp edi, 0x18
jl 0x1111b1f2
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
call eax
test dword [eax + 0x68], 0x2000
jne 0x1111b1f2
mov edi, 0x10
cmp edi, dword [ebp - 0x24]
jle 0x1111b1fa
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x34]
jge 0x1111b205
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x54]
push 0
push ecx
push str.limitcolorbits
push str.Client
mov ecx, esi
call fcn.110bbc00
mov edi, dword [ebp - 0x40]
cmp edi, dword [0x1127ab4c]
jne 0x1111b24c
mov ecx, dword [0x1127acf8]
test ecx, ecx
je 0x1111b24c
test byte [ecx + 4], 2
jne 0x1111b23d
cmp byte [ecx + 5], 0
je 0x1111b24c
mov cl, byte [ecx + 5]
mov eax, 8
test cl, cl
je 0x1111b250
movzx eax, cl
test eax, eax
je 0x1111b258
cmp dword [ebp - 0x3c], eax
jle 0x1111b258
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x44], 0
je 0x1111b271
mov edx, dword [ebp - 0x28]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.USER32.dll_UnionRect]
jmp 0x1111b292
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x44], 1
mov ecx, edi
call fcn.110861a0
test eax, 0x200
jne 0x1111b2b7
cmp edi, dword [0x1127ab4c]
jne 0x1111b2d7
mov eax, dword [0x1127acf8]
test eax, eax
je 0x1111b2d7
test byte [eax + 4], 1
je 0x1111b2d7
push 0
push 0x14a
push str.ScrapeSkipDelay
push str.Client
mov ecx, esi
call fcn.110bbc00
cmp eax, dword [ebp - 0x2c]
jle 0x1111b2d7
mov dword [ebp - 0x2c], eax
push 0
push 0x32
push str.ScrapeBusyDelay
push str.Client
mov ecx, esi
call fcn.110bbc00
cmp eax, dword [ebp - 0x38]
jle 0x1111b2f4
mov dword [ebp - 0x38], eax
push 0
push 0x64
push str.ScrapeNotBusyDelay
push str.Client
mov ecx, esi
call fcn.110bbc00
cmp eax, dword [ebp - 0x30]
jle 0x1111b311
mov dword [ebp - 0x30], eax
push 0
push 0
push str.ScrapeBandwidth
push str.Client
mov ecx, esi
call fcn.110bbc00
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebx + 0x770], eax
je 0x1111b35f
push 0
push 0x3e8
push str.ScrapeBandwidthPeriod
push str.Client
mov ecx, esi
call fcn.110bbc00
mov dword [ebx + 0x774], eax
xor esi, esi
add dword [ebp - 0x28], 0x38
dec dword [ebp - 0x48]
jne 0x1111b1b0
push esi
push str.candojpegs_d_n
mov byte [ebx + 0x7a3], 0
call fcn.111bd7b0
add esp, 8
mov ecx, 0x18
cmp dword [ebp - 0x24], esi
jne 0x1111b390
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x24], eax
jle 0x1111b39b
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], ecx
jle 0x1111b3a3
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
mov dword [ebx + 0x764], eax
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x79c], eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffffe
mov dword [ebx + 0x768], ecx
mov dword [ebx + 0x76c], edx
cmp eax, 5
ja case.0x1111b3ec.4
jmp dword [eax*4 + 0x1111b464]
mov dword [ebx + 0x79c], esi
mov dword [ebp - 0x24], 8
jmp 0x1111b426
mov dword [ebx + 0x79c], 0x32
mov dword [ebp - 0x24], 8
jmp 0x1111b426
mov dword [ebp - 0x24], 2
mov dword [ebx + 0x79c], 0x64
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret 8
mov dword [ebx + 0x79c], 0x19
mov dword [ebp - 0x24], 2
jmp 0x1111b426