Function at 0x1001b400
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x100948fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 4]
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 0x30], ebx
jne 0x1001b435
xor al, al
jmp 0x1001b65e
mov edi, dword [esp + 0x238]
push 1
mov eax, edi
push 1
cdq
sub eax, edx
mov edx, dword [ebx + 0x1d8]
mov ebp, eax
lea ecx, [esp + 0x4c]
sar ebp, 1
sub edi, ebp
cmp edx, esi
setne al
push eax
push ebx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], edi
call sym.YunImage.fne_public:_void___thiscall_CxImage::constructor_class_CxImage_const___bool__bool__bool_
lea ecx, [esp + 0x44]
mov dword [esp + 0x230], esi
call sym.YunImage.fne_public:_bool___thiscall_CxImage::IsValid_void_const
test al, al
jne 0x1001b4a0
lea ecx, [esp + 0x44]
mov dword [esp + 0x230], 0xffffffff
mov dword [esp + 0x44], sym.YunImage.fne_const_CxImage::vftable
call sym.YunImage.fne_public:_bool___thiscall_CxImage::Destroy_void_
xor al, al
jmp 0x1001b65e
cmp dword [ebx + 0x1d8], esi
je 0x1001b4ce
mov esi, dword [ebx + 0x16c]
mov ecx, dword [ebx + 0x174]
mov edx, dword [ebx + 0x170]
mov eax, dword [ebx + 0x178]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edx
jmp 0x1001b4e2
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
xor eax, eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
cmp eax, ecx
jge 0x1001b634
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
shl ecx, 2
mov dword [esp + 0x34], ecx
mov eax, ecx
cdq
idiv dword [ebx + 0x10]
mov dword [ebx + 0x144], eax
mov eax, dword [ebx + 0x148]
test eax, eax
jne 0x1001b634
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], esi
cmp esi, eax
jge 0x1001b618
mov eax, dword [esp + 0x18]
mov ecx, ebx
push eax
push esi
call sym.YunImage.fne_public:_bool___thiscall_CxImage::SelectionIsInside_long_int__long_int_
test al, al
je 0x1001b5ff
neg ebp
mov ebx, ebp
mov byte [esp + 0x13], 0
cmp ebx, edi
mov byte [esp + 0x11], 0
mov byte [esp + 0x12], 0
mov dword [esp + 0x2c], ebx
jge 0x1001b5c9
cmp ebp, edi
jge 0x1001b5c0
mov ecx, dword [esp + 0x18]
add ebx, esi
sub edi, ebp
lea esi, [ecx + ebp]
mov ecx, dword [esp + 0x30]
push 1
push esi
lea edx, [esp + 0x48]
push ebx
push edx
call sym.YunImage.fne_public:_struct_tagRGBQUAD___thiscall_CxImage::GetPixelColor_long_int__long_int__bool_
mov eax, dword [eax]
mov cl, byte [esp + 0x12]
mov dword [esp + 0x14], eax
mov al, byte [esp + 0x16]
cmp al, cl
jbe 0x1001b590
mov byte [esp + 0x12], al
mov al, byte [esp + 0x15]
mov cl, byte [esp + 0x13]
cmp al, cl
jbe 0x1001b5a0
mov byte [esp + 0x13], al
mov al, byte [esp + 0x14]
mov cl, byte [esp + 0x11]
cmp al, cl
jbe 0x1001b5b0
mov byte [esp + 0x11], al
inc esi
dec edi
jne 0x1001b568
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
inc ebx
cmp ebx, edi
mov dword [esp + 0x2c], ebx
jl 0x1001b559
mov cl, byte [esp + 0x12]
mov dl, byte [esp + 0x13]
mov al, byte [esp + 0x11]
mov byte [esp + 0x16], cl
mov byte [esp + 0x15], dl
mov edx, dword [esp + 0x18]
mov byte [esp + 0x14], al
mov ecx, dword [esp + 0x14]
push 0
push ecx
push edx
push esi
lea ecx, [esp + 0x54]
call sym.YunImage.fne_public:_void___thiscall_CxImage::SetPixelColor_long_int__long_int__struct_tagRGBQUAD__bool_
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
mov dword [esp + 0x28], esi
jl 0x1001b529
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
inc eax
add ecx, 0x64
cmp eax, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], ecx
jl 0x1001b4ff
lea eax, [esp + 0x44]
mov ecx, ebx
push eax
call sym.YunImage.fne_public:_bool___thiscall_CxImage::Transfer_class_CxImage__
lea ecx, [esp + 0x44]
mov dword [esp + 0x230], 0xffffffff
mov dword [esp + 0x44], sym.YunImage.fne_const_CxImage::vftable
call sym.YunImage.fne_public:_bool___thiscall_CxImage::Destroy_void_
mov al, 1
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret 4