Function at 0x521dc0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x6ac907
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x30]
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
and ebp, 0xe0dfffff
mov esi, ecx
mov edx, ebp
mov ecx, dword [esp + 0x38]
push edi
push eax
mov eax, dword [esp + 0x38]
or edx, 0x280000
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
xor ebx, ebx
push edx
push eax
mov ecx, esi
mov dword [esp + 0x2c], ebx
call fcn.004efdb0
test al, al
je 0x522066
push 0x64
call fcn.00658ea0
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, ebx
mov dword [esp + 0x1c], ebx
je 0x521e43
push 4
mov ecx, eax
call fcn.004e0020
jmp 0x521e45
xor eax, eax
mov ecx, dword [esi + 0xcc]
mov dword [esp + 0x1c], 0xffffffff
shr ecx, 1
test cl, 1
mov dword [esi + 0x158], eax
je 0x522064
push 0x1b4
call fcn.00658ea0
mov edi, eax
add esp, 4
mov dword [esp + 0x3c], edi
test edi, edi
mov dword [esp + 0x1c], 1
je 0x521f34
mov edx, 0x6d83c0
test edx, edx
mov eax, edx
jne 0x521e97
mov eax, 0x8c55f4
mov ecx, dword [0x6e14e0]
push ecx
push 0
push eax
lea ecx, [esp + 0x4c]
call fcn.00570720
mov dword [esp + 0x10], 1
mov eax, dword [0x8b0a50]
mov byte [esp + 0x1c], 2
test eax, eax
jne 0x521ec5
mov eax, 0x8c55f4
mov edx, dword [0x6e14e0]
lea ecx, [esp + 0x38]
push edx
push 0
push eax
call fcn.00570720
mov ebx, 3
mov dword [esp + 0x10], ebx
mov eax, dword [esi]
push ebp
mov ecx, esi
mov dword [esp + 0x20], ebx
call dword [eax + 0x2cc]
mov ecx, edi
mov ebp, eax
call fcn.004d8b00
mov ecx, edi
mov dword [esp + 0x1c], 4
mov dword [edi], vtable.wxTextCtrl.0
call fcn.00500910
lea ecx, [esp + 0x40]
lea edx, [esp + 0x38]
push ecx
push 0x8c9b98
push ebp
push 0x8c9af0
push 0x8c9ae8
push edx
push 0xffffffffffffffff
push esi
mov ecx, edi
call fcn.00500a00
jmp 0x521f36
xor edi, edi
mov dword [esi + 0x150], edi
mov edi, dword [0x6c74ac]
test bl, 2
je 0x521f65
mov eax, dword [esp + 0x38]
and ebx, 0xfffffffd
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x521f65
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x521f65
push eax
call edi
add esp, 4
or ebp, 0xffffffff
test bl, 1
mov dword [esp + 0x1c], ebp
je 0x521f8c
mov ecx, dword [esp + 0x40]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, ebp
je 0x521f8c
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x521f8c
push eax
call edi
add esp, 4
mov ecx, dword [esi + 0x150]
test ecx, ecx
jne 0x521f9d
xor al, al
jmp 0x522066
mov edx, dword [ecx]
push 0x20
call dword [edx + 0x310]
mov ecx, dword [esi + 0x150]
mov edx, dword [esp + 0x2c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x2cc]
mov ecx, dword [esi + 0x150]
mov edx, dword [0x8cad8c]
push esi
push 0
mov eax, dword [ecx + 0x28]
push 0x5221f0
push edx
push ebp
push eax
call fcn.00570500
mov ecx, dword [esi + 0x150]
mov edx, dword [0x8c941c]
push esi
push 0
mov eax, dword [ecx + 0x28]
push 0x522180
push edx
push ebp
push eax
call fcn.00570500
mov ecx, dword [esi + 0x150]
mov edx, dword [0x8c9350]
push esi
push 0
mov eax, dword [ecx + 0x28]
push 0x5221e0
push edx
push ebp
push eax
call fcn.00570500
mov edi, dword [esi + 0x150]
mov esi, dword [esi + 0x158]
push 0x44
call fcn.00658ea0
add esp, 4
mov dword [esp + 0x3c], eax
test eax, eax
mov dword [esp + 0x1c], 7
je 0x522052
push 0
push 5
push 0x820
push 2
push edi
mov ecx, eax
call fcn.004de090
jmp 0x522054
xor eax, eax
mov edx, dword [esi]
push eax
mov eax, dword [esi + 0x34]
mov ecx, esi
push eax
mov dword [esp + 0x24], ebp
call dword [edx + 0x10]
mov al, 1
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x20