Function at 0x522670
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5cab50
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x67ff88]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x88]
xor ebp, ebp
mov ecx, vtable.wxObject.0
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
cmp eax, ebp
je 0x5226b8
inc dword [eax + 4]
mov dword [esp + 0x54], vtable.wxPen.0
mov eax, dword [esi + 0x90]
mov dword [esp + 0x88], ebp
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
cmp eax, ebp
je 0x5226dc
inc dword [eax + 4]
mov dword [esp + 0x4c], vtable.wxBrush.0
mov edi, dword [esp + 0x94]
mov eax, dword [edi]
mov edx, dword [eax + 0x28]
mov ecx, edi
mov byte [esp + 0x88], 1
call edx
mov byte [esp + 0x16], al
mov eax, dword [edi]
mov edx, dword [eax + 0x2c]
mov ecx, edi
call edx
mov byte [esp + 0x17], al
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
mov ecx, edi
call edx
mov edi, dword [esp + 0x98]
mov byte [esp + 0x18], al
mov eax, dword [edi]
mov edx, dword [eax + 0x28]
mov ecx, edi
call edx
mov byte [esp + 0x19], al
mov eax, dword [edi]
mov edx, dword [eax + 0x2c]
mov ecx, edi
call edx
mov byte [esp + 0x1a], al
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
mov ecx, edi
call edx
mov byte [esp + 0x1b], al
mov eax, dword [esp + 0x9c]
cmp eax, 0x20
je 0x5229b3
cmp eax, 0x10
je 0x5229b3
mov ebx, dword [esp + 0x90]
mov ecx, dword [ebx + 0xc]
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
cmp ebp, 1
mov dword [esp + 0x44], ecx
jge 0x52278c
mov ebp, 1
test ecx, ecx
jle 0x522bf6
movzx eax, byte [esp + 0x16]
movzx edx, byte [esp + 0x19]
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + 0x1a]
mov dword [esp + 0x20], eax
movzx eax, byte [esp + 0x17]
mov dword [esp + 0x24], eax
movzx eax, byte [esp + 0x1b]
mov dword [esp + 0x28], eax
movzx eax, byte [esp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, ebp
neg eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], eax
xor edi, edi
jmp 0x5227ec
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
sub ecx, ebp
mov dword [esp + 0x3c], ecx
mov cl, byte [esp + 0x19]
sub edi, eax
cmp byte [esp + 0x16], cl
mov ecx, dword [esp + 0x44]
jbe 0x52281a
mov eax, dword [esp + 0x1c]
sub eax, edx
imul eax, edi
cdq
idiv ecx
mov dl, byte [esp + 0x16]
sub dl, al
mov byte [esp + 0x38], dl
jmp 0x522830
mov eax, edx
sub eax, dword [esp + 0x1c]
imul eax, edi
cdq
idiv dword [esp + 0x44]
add al, byte [esp + 0x16]
mov byte [esp + 0x38], al
mov al, byte [esp + 0x1a]
cmp byte [esp + 0x17], al
jbe 0x522854
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x20]
imul eax, edi
cdq
idiv ecx
mov dl, byte [esp + 0x17]
sub dl, al
mov byte [esp + 0x34], dl
jmp 0x52286a
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x24]
imul eax, edi
cdq
idiv ecx
add al, byte [esp + 0x17]
mov byte [esp + 0x34], al
mov al, byte [esp + 0x1b]
cmp byte [esp + 0x18], al
jbe 0x52288e
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
imul eax, edi
cdq
idiv ecx
mov cl, byte [esp + 0x18]
sub cl, al
mov byte [esp + 0x30], cl
jmp 0x5228a4
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x2c]
imul eax, edi
cdq
idiv ecx
add al, byte [esp + 0x18]
mov byte [esp + 0x30], al
mov dword [esp + 0x70], 0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
push 0xff
push edx
push eax
push ecx
lea ecx, [esp + 0x7c]
mov byte [esp + 0x98], 6
mov dword [esp + 0x7c], vtable.wxColour.0
call dword [0x5fc0d0]
push 0x64
push 1
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x68]
mov byte [esp + 0x94], 7
call fcn.00524200
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
mov byte [esp + 0x8c], 8
call eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x88], 7
call fcn.00525080
push 0x64
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x6c]
call fcn.00523730
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x34]
mov ecx, esi
mov byte [esp + 0x8c], 9
call eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x88], 7
call fcn.00525080
cmp dword [esp + 0x9c], 0x40
mov edx, dword [esi]
push ebp
jne 0x522974
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
mov edx, dword [edx + 0xf0]
push eax
mov eax, dword [esp + 0x44]
add ecx, eax
mov eax, dword [ebx]
push ecx
push eax
mov ecx, esi
call edx
jmp 0x522992
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
sub eax, ebp
sub eax, dword [esp + 0x40]
push ecx
add eax, dword [ebx + 4]
mov ecx, esi
push eax
mov eax, dword [ebx]
push eax
mov eax, dword [edx + 0xf0]
call eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x88], 1
call fcn.00525080
cmp dword [esp + 0x3c], 0
jg 0x5227e0
jmp 0x522bf6
mov ebx, dword [esp + 0x90]
mov ecx, dword [ebx + 8]
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
mov edi, eax
sar edi, 8
cmp edi, 1
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x48], ecx
jge 0x5229df
mov edi, 1
cmp ecx, edi
jl 0x522bf6
movzx eax, byte [esp + 0x16]
movzx edx, byte [esp + 0x19]
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + 0x17]
mov dword [esp + 0x24], eax
movzx eax, byte [esp + 0x18]
mov dword [esp + 0x40], edx
movzx edx, byte [esp + 0x1a]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], edx
movzx edx, byte [esp + 0x1b]
mov eax, edi
neg eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x44], eax
jmp 0x522a38
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov dl, byte [esp + 0x19]
sub dword [esp + 0x3c], edi
sub ebp, eax
cmp byte [esp + 0x16], dl
jbe 0x522a62
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x40]
imul eax, ebp
cdq
idiv ecx
mov dl, byte [esp + 0x16]
sub dl, al
mov byte [esp + 0x38], dl
jmp 0x522a78
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x1c]
imul eax, ebp
cdq
idiv ecx
add al, byte [esp + 0x16]
mov byte [esp + 0x38], al
mov al, byte [esp + 0x1a]
cmp byte [esp + 0x17], al
jbe 0x522a9c
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x20]
imul eax, ebp
cdq
idiv ecx
mov dl, byte [esp + 0x17]
sub dl, al
mov byte [esp + 0x34], dl
jmp 0x522ab2
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x24]
imul eax, ebp
cdq
idiv ecx
add al, byte [esp + 0x17]
mov byte [esp + 0x34], al
mov al, byte [esp + 0x1b]
cmp byte [esp + 0x18], al
jbe 0x522ad6
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
imul eax, ebp
cdq
idiv ecx
mov cl, byte [esp + 0x18]
sub cl, al
mov byte [esp + 0x30], cl
jmp 0x522aec
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x2c]
imul eax, ebp
cdq
idiv ecx
add al, byte [esp + 0x18]
mov byte [esp + 0x30], al
mov dword [esp + 0x70], 0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
push 0xff
push edx
push eax
push ecx
lea ecx, [esp + 0x7c]
mov byte [esp + 0x98], 2
mov dword [esp + 0x7c], vtable.wxColour.0
call dword [0x5fc0d0]
push 0x64
push 1
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x70]
mov byte [esp + 0x94], 3
call fcn.00524200
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
mov byte [esp + 0x8c], 4
call eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x88], 3
call fcn.00525080
push 0x64
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x64]
call fcn.00523730
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x34]
mov ecx, esi
mov byte [esp + 0x8c], 5
call eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x88], 3
call fcn.00525080
cmp dword [esp + 0x9c], 0x20
mov edx, dword [esi]
jne 0x522bbf
mov eax, dword [ebx]
mov ecx, dword [ebx + 0xc]
sub eax, edi
sub eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [ebx + 4]
add eax, dword [ebx + 8]
push edi
push ecx
push eax
mov eax, dword [edx + 0xf0]
mov ecx, esi
call eax
jmp 0x522bdb
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
mov edx, dword [edx + 0xf0]
push eax
mov eax, dword [ebx]
push edi
push ecx
mov ecx, dword [esp + 0x48]
add eax, ecx
push eax
mov ecx, esi
call edx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x88], 1
call fcn.00525080
cmp dword [esp + 0x3c], edi
jge 0x522a30
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call edx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x88], 0
call fcn.00525080
lea ecx, [esp + 0x54]
mov dword [esp + 0x88], 0xffffffff
call fcn.00525080
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 0x10