Function at 0x509620
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x593040
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esp + 0x38]
mov eax, esi
call fcn.004275a0
xor ebp, ebp
push eax
mov dword [esp + 0x80], ebp
call fcn.004400f0
mov edi, eax
add esp, 4
lea ecx, [esp + 0x38]
mov dword [esp + 0x34], edi
mov dword [esp + 0x7c], 0xffffffff
call fcn.0044dcc0
mov eax, dword [edi]
mov edx, dword [eax + 0x28]
push 0x25
mov ecx, edi
call edx
movzx ebx, ax
mov al, byte [esi + 0x50]
mov byte [esp + 0x30], al
mov ecx, dword [esp + 0x30]
push ecx
push edi
mov edi, dword [esp + 0x8c]
push ebx
mov ecx, edi
mov byte [esp + 0x25], 1
mov dword [esp + 0x38], 0xffffffff
call fcn.0050bf20
add esp, 0xc
push eax
push esi
call fcn.0050bd40
movzx edx, bx
lea eax, [esp + 0x30]
mov dword [esp + 0x30], edx
push eax
xor edx, edx
mov ecx, edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov byte [esp + 0x1e], 0
mov dword [esp + 0x20], ebp
call fcn.004878d0
mov edi, eax
cmp edi, 0xffffffff
je 0x509ac4
movzx ecx, bx
mov dword [esp + 0x30], ecx
mov edi, edi
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jne 0x50970d
lea ebp, [esi + 0x34]
jmp 0x509740
mov eax, dword [esi + 4]
add ebx, 0xffffffff
test eax, eax
je 0x509731
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x509736
call fcn.00565fa7
mov edx, dword [esi + 4]
imul ebx, ebx, 0x64
lea ebp, [ebx + edx + 0x20]
mov ebx, dword [esp + 0x84]
lea eax, [edi + 1]
cmp eax, dword [ebx + 0x14]
mov dword [esp + 0x24], eax
jbe 0x509758
call fcn.00565fa7
cmp dword [ebx + 0x18], 8
jb 0x509765
mov edx, ebx
mov ebx, dword [edx + 4]
jmp 0x50976f
mov edx, dword [esp + 0x84]
add ebx, 4
cmp edi, dword [edx + 0x14]
jbe 0x509780
call fcn.00565fa7
mov edx, dword [esp + 0x84]
cmp dword [edx + 0x18], 8
jb 0x50978b
mov eax, dword [edx + 4]
jmp 0x50978e
lea eax, [edx + 4]
mov ecx, dword [esp + 0x24]
mov cx, word [ebx + ecx*2]
cmp cx, word [eax + edi*2]
jne 0x5097c2
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x84]
push edx
push eax
push ebp
call fcn.0050c1b0
add esp, 0xc
add edi, 2
mov dword [esp + 0x20], edi
jmp 0x509a9f
cmp edi, dword [esp + 0x20]
je 0x5097e4
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x84]
push edi
push ecx
push ebp
call fcn.0050c1b0
add esp, 0xc
mov dword [esp + 0x20], edi
mov edx, ebx
mov ecx, dword [edx + 0x18]
cmp ecx, 8
lea ebx, [edx + 4]
jb 0x5097f3
mov edi, dword [ebx]
jmp 0x5097f5
mov edi, ebx
test edi, edi
je 0x50981d
cmp ecx, 8
jb 0x509802
mov eax, dword [ebx]
jmp 0x509804
mov eax, ebx
cmp eax, edi
ja 0x50981d
cmp ecx, 8
jb 0x509811
mov eax, dword [ebx]
jmp 0x509813
mov eax, ebx
mov ecx, dword [edx + 0x14]
lea eax, [eax + ecx*2]
cmp edi, eax
jbe 0x509829
call fcn.00565fa7
mov edx, dword [esp + 0x84]
cmp edx, 0xfffffffe
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edi
je 0x50986f
mov ebx, dword [edx + 0x18]
cmp ebx, 8
lea eax, [edx + 4]
jb 0x509845
mov ecx, dword [eax]
jmp 0x509847
mov ecx, eax
mov ebp, dword [esp + 0x84]
mov edx, dword [esp + 0x24]
mov ebp, dword [ebp + 0x14]
lea edx, [edi + edx*2]
lea ecx, [ecx + ebp*2]
cmp edx, ecx
ja 0x50986a
cmp ebx, 8
jb 0x509866
mov eax, dword [eax]
cmp edx, eax
jae 0x50986f
call fcn.00565fa7
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
lea eax, [edi + edx*2]
mov dl, byte [esi + 0x50]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 4]
test eax, eax
mov dword [esp + 0x44], ecx
mov byte [esp + 0x3c], dl
je 0x5098ac
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x1c], eax
jb 0x5098b1
call fcn.00565fa7
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x84]
imul eax, eax, 0x64
mov ebx, dword [esi + 4]
mov ecx, dword [ebp + 0x18]
add ebx, eax
add ebp, 4
cmp ecx, 8
mov dword [esp + 0x40], eax
jb 0x5098d8
mov edx, dword [ebp]
jmp 0x5098da
mov edx, ebp
mov eax, dword [esp + 0x84]
mov eax, dword [eax + 0x14]
add eax, eax
lea edi, [eax + edx]
test edi, edi
je 0x50990f
cmp ecx, 8
jb 0x5098f7
mov edx, dword [ebp]
jmp 0x5098f9
mov edx, ebp
cmp edx, edi
ja 0x50990f
cmp ecx, 8
jb 0x509907
mov ecx, dword [ebp]
jmp 0x509909
mov ecx, ebp
add eax, ecx
cmp edi, eax
jbe 0x509914
call fcn.00565fa7
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x24]
push edx
push eax
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x3c]
push ecx
push ebx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x70], edi
call fcn.0050c290
mov ecx, dword [esp + 0x9c]
mov byte [esp + 0x33], al
mov eax, dword [ecx + 0x18]
add esp, 0x18
cmp eax, 8
jb 0x50995d
mov ebx, dword [ebp]
jmp 0x50995f
mov ebx, ebp
test ebx, ebx
je 0x509990
cmp eax, 8
jb 0x50996d
mov ecx, dword [ebp]
jmp 0x50996f
mov ecx, ebp
cmp ecx, ebx
ja 0x509990
cmp eax, 8
jb 0x50997d
mov eax, dword [ebp]
jmp 0x50997f
mov eax, ebp
mov edx, dword [esp + 0x84]
mov ecx, dword [edx + 0x14]
lea edx, [eax + ecx*2]
cmp ebx, edx
jbe 0x509995
call fcn.00565fa7
mov eax, dword [esp + 0x44]
cmp eax, 0xfffffffe
je 0x5099b0
test eax, eax
je 0x5099ab
cmp eax, dword [esp + 0x84]
je 0x5099b0
call fcn.00565fa7
mov edi, dword [esp + 0x48]
sub edi, ebx
sar edi, 1
cmp byte [esp + 0x1b], 0
je 0x509a9f
mov eax, dword [esi + 4]
test eax, eax
mov dword [esp + 0x20], edi
je 0x5099ea
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x1c], eax
jb 0x5099ef
call fcn.00565fa7
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x40]
mov ecx, dword [eax + ebx + 0x60]
add eax, ebx
test cl, 1
je 0x509a29
mov edx, dword [eax + 0x48]
test dl, 0x40
je 0x509a0e
and ecx, 0xfffffffe
jmp 0x509a26
and edx, 0xffffff3f
and ecx, 0xfffffffd
or edx, 0x100
mov word [eax + 0x44], 0x30
mov dword [eax + 0x48], edx
mov dword [eax + 0x60], ecx
mov ecx, dword [eax + 0x60]
test cl, 2
je 0x509a3d
test byte [eax + 0x48], 0x20
je 0x509a3d
and ecx, 0xfffffffd
mov dword [eax + 0x60], ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x509a60
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x1c], eax
jb 0x509a65
call fcn.00565fa7
mov eax, dword [esi + 4]
mov eax, dword [ebx + eax]
cmp eax, 0xfffffffd
je 0x509a9f
cmp eax, 0xffffffff
jne 0x509a7c
mov byte [esp + 0x19], 0
jmp 0x509a92
cmp eax, 0xfffffffe
jne 0x509a88
mov byte [esp + 0x1a], 1
jmp 0x509a92
cmp eax, dword [esp + 0x2c]
jle 0x509a92
mov dword [esp + 0x2c], eax
mov eax, 1
add dword [esp + 0x28], eax
add dword [esp + 0x1c], eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x88]
mov edx, edi
call fcn.004878d0
mov edi, eax
cmp edi, 0xffffffff
jne 0x509700
cmp dword [esp + 0x1c], 0
jne 0x509ac9
lea ecx, [esi + 0x34]
jmp 0x509b00
mov edi, dword [esp + 0x1c]
mov eax, dword [esi + 4]
add edi, 0xffffffff
test eax, eax
je 0x509af1
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x509af6
call fcn.00565fa7
mov edx, dword [esi + 4]
imul edi, edi, 0x64
lea ecx, [edi + edx + 0x20]
mov ebx, dword [esp + 0x84]
mov eax, dword [ebx + 0x14]
push eax
mov eax, dword [esp + 0x24]
push eax
push ecx
call fcn.0050c1b0
mov edi, dword [esp + 0x38]
add esp, 0xc
xor ebp, ebp
cmp byte [esp + 0x19], 0
jne 0x509bef
cmp edi, ebp
jl 0x509b5e
test byte [esi + 0x50], 1
je 0x509b5e
lea ecx, [esp + 0x5c]
call fcn.005656a9
mov dword [esp + 0x5c], vtable.boost::io::bad_format_string.0
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], ebp
lea esi, [esp + 0x5c]
mov dword [esp + 0x7c], 1
call fcn.0043fed0
xor edi, edi
cmp dword [esp + 0x28], ebp
mov dword [esp + 0x84], ebp
jle 0x509be5
xor ebx, ebx
nop
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x509b91
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x509b96
call fcn.00565fa7
mov eax, dword [esi + 4]
cmp dword [eax + ebx], 0xffffffff
jne 0x509bd9
cmp eax, ebp
je 0x509bbd
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x509bc2
call fcn.00565fa7
mov eax, dword [esp + 0x84]
mov ecx, dword [esi + 4]
mov dword [ebx + ecx], eax
add eax, 1
mov dword [esp + 0x84], eax
add edi, 1
add ebx, 0x64
cmp edi, dword [esp + 0x28]
jl 0x509b70
mov edi, dword [esp + 0x84]
add edi, 0xffffffff
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push 0x20
call eax
movzx ecx, ax
sub esp, 0x64
mov eax, esp
mov dword [eax], 0xffffffff
mov dword [eax + 0x18], ebp
mov edx, 7
mov dword [eax + 0x1c], edx
mov word [eax + 8], bp
mov dword [eax + 0x38], edx
mov dword [eax + 0x34], ebp
mov word [eax + 0x24], bp
mov byte [eax + 0x54], 0
mov word [eax + 0x44], cx
mov ecx, dword [esp + 0x8c]
mov dword [eax + 0x3c], ebp
mov dword [eax + 0x40], 6
mov dword [eax + 0x48], 0x201
mov dword [eax + 0x50], ebp
mov dword [eax + 0x4c], ebp
mov edx, esi
mov dword [esp + 0xe8], esp
mov dword [eax + 0x5c], SysReAllocStringLen
mov dword [eax + 0x60], ebp
call fcn.0050b2c0
cmp byte [esp + 0x1a], 0
je 0x509c6c
or dword [esi + 0x24], 4
add edi, 1
cmp byte [esp + 0x19], 0
mov dword [esi + 0x2c], edi
je 0x509c7f
or dword [esi + 0x24], 1
jmp 0x509c83
and dword [esi + 0x24], 0xfffffffe
mov eax, esi
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 4