Function at 0x513fc0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5dd0b8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
test byte [esi + 0x294], 8
mov eax, dword [esi + 0x264]
mov dword [esp + 0x18], eax
je 0x51400f
cmp byte [esi + 0x29d], 2
jb 0x51400f
or dword [esp + 0x18], 4
mov edi, dword [ebp + 0xc]
mov ecx, dword [esi + 0x290]
mov eax, dword [edi + 0xc]
mov ebx, dword [edi + 4]
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esi + 0x274]
add edx, dword [edi]
sar eax, 1
add eax, ebx
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 0x28c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ecx
cmp eax, ebx
jge 0x51404f
mov eax, ebx
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0xc]
cmp ecx, eax
jle 0x51405a
mov dword [esp + 0x38], eax
mov ecx, esi
call fcn.0049cc80
mov byte [esp + 0x17], al
test al, al
jne 0x51406e
or dword [esp + 0x18], 1
test byte [ebp + 0x10], 1
je 0x514227
mov edx, dword [esi]
mov eax, dword [edx + 0x1b8]
mov ecx, esi
call eax
mov ebx, 0x200
test al, al
je 0x514099
test dword [esi + 0x294], ebx
jne 0x514227
xor eax, eax
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x70], eax
mov dword [esp + 0x3c], vtable.wxColour.0
call fcn.004e68e0
mov dword [esp + 0x70], 1
test dword [esi + 0x294], ebx
je 0x514118
mov ecx, dword [esi + 0x44]
lea edx, [esp + 0x50]
push edx
call fcn.0049ef20
mov ebx, eax
lea eax, [esp + 0x3c]
mov byte [esp + 0x70], 2
cmp eax, ebx
je 0x5140e8
push ebx
mov ecx, eax
call fcn.00423b20
mov ecx, dword [ebx + 8]
mov dword [esp + 0x44], ecx
movzx edx, byte [ebx + 0xc]
mov byte [esp + 0x48], dl
movzx eax, byte [ebx + 0xd]
mov byte [esp + 0x49], al
mov cl, byte [ebx + 0xe]
mov byte [esp + 0x4a], cl
movzx edx, byte [ebx + 0xf]
mov byte [esp + 0x4b], dl
movzx eax, byte [ebx + 0x10]
mov byte [esp + 0x4c], al
jmp 0x514169
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
call fcn.00513f30
mov ebx, eax
lea edx, [esp + 0x3c]
mov byte [esp + 0x70], 3
cmp edx, ebx
je 0x51413b
push ebx
mov ecx, edx
call fcn.00423b20
mov eax, dword [ebx + 8]
mov dword [esp + 0x44], eax
movzx ecx, byte [ebx + 0xc]
mov byte [esp + 0x48], cl
movzx edx, byte [ebx + 0xd]
mov byte [esp + 0x49], dl
mov al, byte [ebx + 0xe]
mov byte [esp + 0x4a], al
movzx ecx, byte [ebx + 0xf]
mov byte [esp + 0x4b], cl
movzx edx, byte [ebx + 0x10]
mov byte [esp + 0x4c], dl
lea ecx, [esp + 0x50]
mov byte [esp + 0x70], 1
mov dword [esp + 0x50], vtable.wxObject.0
call fcn.00423980
push 0x64
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x2c]
call fcn.004f2fb0
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x74]
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x74], 4
call edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x70], 1
call fcn.00506650
push 0x64
push 1
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x30]
call fcn.00508e60
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x6c]
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x74], 5
call edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x70], 1
mov dword [esp + 0x24], vtable.wxObject.0
call fcn.00423980
mov edx, dword [edi + 0xc]
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x174]
push edx
mov edx, dword [edi + 8]
push edx
mov edx, dword [edi + 4]
push edx
mov edx, dword [edi]
push edx
call eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x70], 0xffffffff
mov dword [esp + 0x3c], vtable.wxObject.0
call fcn.00423980
jmp 0x51422a
mov ebx, dword [ebp + 8]
cmp dword [esi + 0x27c], 0
lea edi, [esi + 0x27c]
jne 0x514272
test byte [ebp + 0x10], 2
jne 0x51434c
call fcn.00543e20
mov ecx, dword [esp + 0x18]
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
push ecx
lea ecx, [esp + 0x30]
push ecx
push ebx
push esi
mov ecx, eax
call edx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [esp + 0x17], 0
jne 0x514281
lea edi, [esi + 0x288]
jmp 0x51429d
mov eax, dword [esi + 0x264]
test al, 4
je 0x514293
lea edi, [esi + 0x280]
jmp 0x51429d
test al, 0x10
je 0x51429d
lea edi, [esi + 0x284]
cmp byte [esi + 0x29c], 0
je 0x5142c6
test byte [ebp + 0x10], 2
jne 0x5142c6
call fcn.00543e20
mov ecx, dword [esp + 0x18]
mov edx, dword [eax]
mov edx, dword [edx + 0x38]
push ecx
lea ecx, [esp + 0x30]
push ecx
push ebx
push esi
mov ecx, eax
call edx
push esi
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.004df390
fild dword [esp + 0x38]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x70], 6
fstp qword [esp + 0x24]
call fcn.004cf4d0
fsubr qword [esp + 0x24]
fmul qword [0x603b00]
fiadd dword [esp + 0x30]
call fcn.005895e0
fild dword [esp + 0x34]
lea ecx, [esp + 0x1c]
mov esi, eax
fstp qword [esp + 0x24]
call fcn.004cf4b0
fsubr qword [esp + 0x24]
fmul qword [0x603b00]
fiadd dword [esp + 0x2c]
call fcn.005895e0
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x188]
push 1
push esi
push eax
lea eax, [esp + 0x28]
push eax
call edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x70], 0xffffffff
call fcn.00506650
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc