Function at 0x40d540
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x479630
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push edi
mov eax, dword [0x49d340]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
lea edi, [esp + 0x30]
mov eax, esi
call fcn.0040f360
push eax
mov dword [esp + 0x78], 0
call fcn.00418330
mov dword [esp + 0x78], 0xffffffff
mov ebp, dword [esp + 0x34]
add esp, 4
test ebp, ebp
mov ebx, eax
mov dword [esp + 0x2c], ebx
je 0x40d5d7
push 0
lea ecx, [esp + 0x2c]
call fcn.0043212c
mov eax, dword [ebp + 4]
test eax, eax
jbe 0x40d5b5
cmp eax, 0xffffffff
jae 0x40d5b5
add eax, 0xffffffff
mov dword [ebp + 4], eax
mov edi, dword [ebp + 4]
neg edi
sbb edi, edi
not edi
lea ecx, [esp + 0x28]
and edi, ebp
call fcn.0043214d
test edi, edi
je 0x40d5d7
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
push 0x25
mov ecx, ebx
call edx
mov edi, dword [esp + 0x7c]
movzx ebp, ax
mov al, byte [esi + 0x50]
mov byte [esp + 0x28], al
mov ecx, dword [esp + 0x28]
push ecx
push ebx
push ebp
mov ecx, edi
mov byte [esp + 0x1d], 1
mov dword [esp + 0x30], 0xffffffff
call fcn.0040f790
add esp, 0xc
push eax
push esi
call fcn.0040f580
xor eax, eax
push 1
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov byte [esp + 0x1a], al
mov dword [esp + 0x1c], eax
movzx edx, bp
lea eax, [esp + 0x30]
push eax
mov ecx, edi
mov dword [esp + 0x34], edx
call fcn.00404c60
mov edi, eax
cmp edi, 0xffffffff
je 0x40d9fd
movzx ecx, bp
mov dword [esp + 0x28], ecx
mov ebp, dword [esp + 0x14]
test ebp, ebp
jne 0x40d664
lea ebx, [esi + 0x34]
jmp 0x40d697
mov eax, dword [esi + 4]
add ebp, 0xffffffff
test eax, eax
je 0x40d688
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 ebp, eax
jb 0x40d68d
call fcn.00433461
mov edx, dword [esi + 4]
imul ebp, ebp, 0x64
lea ebx, [edx + ebp + 0x20]
mov ebp, dword [esp + 0x7c]
lea eax, [edi + 1]
cmp eax, dword [ebp + 0x14]
mov dword [esp + 0x1c], eax
jbe 0x40d6ac
call fcn.00433461
cmp dword [ebp + 0x18], 8
jb 0x40d6b9
mov edx, ebp
mov ebp, dword [edx + 4]
jmp 0x40d6c0
mov edx, dword [esp + 0x7c]
add ebp, 4
cmp edi, dword [edx + 0x14]
jbe 0x40d6ce
call fcn.00433461
mov edx, dword [esp + 0x7c]
cmp dword [edx + 0x18], 8
jb 0x40d6d9
mov eax, dword [edx + 4]
jmp 0x40d6dc
lea eax, [edx + 4]
mov ecx, dword [esp + 0x1c]
mov cx, word [ebp + ecx*2]
cmp cx, word [eax + edi*2]
jne 0x40d711
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x84]
push ebx
call fcn.0040fa10
add esp, 0xc
add edi, 2
mov dword [esp + 0x18], edi
jmp 0x40d9d7
cmp edi, dword [esp + 0x18]
je 0x40d735
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x7c]
push edi
push ecx
push ebx
call fcn.0040fa10
mov edx, dword [esp + 0x88]
add esp, 0xc
mov dword [esp + 0x18], edi
mov ecx, dword [edx + 0x18]
cmp ecx, 8
lea ebx, [edx + 4]
jb 0x40d744
mov edi, dword [ebx]
jmp 0x40d746
mov edi, ebx
test edi, edi
je 0x40d76e
cmp ecx, 8
jb 0x40d753
mov eax, dword [ebx]
jmp 0x40d755
mov eax, ebx
cmp eax, edi
ja 0x40d76e
cmp ecx, 8
jb 0x40d762
mov eax, dword [ebx]
jmp 0x40d764
mov eax, ebx
mov ecx, dword [edx + 0x14]
lea eax, [eax + ecx*2]
cmp edi, eax
jbe 0x40d777
call fcn.00433461
mov edx, dword [esp + 0x7c]
cmp edx, 0xfffffffe
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edi
je 0x40d7be
mov eax, dword [esp + 0x7c]
mov ebx, dword [eax + 0x18]
add eax, 4
cmp ebx, 8
jb 0x40d797
mov ecx, dword [eax]
jmp 0x40d799
mov ecx, eax
mov ebp, dword [esp + 0x7c]
mov edx, dword [esp + 0x1c]
mov ebp, dword [ebp + 0x14]
lea edx, [edi + edx*2]
lea ecx, [ecx + ebp*2]
cmp edx, ecx
ja 0x40d7b9
cmp ebx, 8
jb 0x40d7b5
mov eax, dword [eax]
cmp edx, eax
jae 0x40d7be
call fcn.00433461
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
lea eax, [edi + edx*2]
mov dl, byte [esi + 0x50]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 4]
test eax, eax
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x34], dl
je 0x40d7fb
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 + 0x14], eax
jb 0x40d800
call fcn.00433461
mov eax, dword [esp + 0x14]
mov ebp, dword [esi + 4]
imul eax, eax, 0x64
add ebp, eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x18]
mov ebx, eax
add ebx, 4
cmp ecx, 8
jb 0x40d825
mov edx, dword [ebx]
jmp 0x40d827
mov edx, ebx
mov eax, dword [eax + 0x14]
add eax, eax
lea edi, [eax + edx]
test edi, edi
je 0x40d853
cmp ecx, 8
jb 0x40d83c
mov edx, dword [ebx]
jmp 0x40d83e
mov edx, ebx
cmp edx, edi
ja 0x40d853
cmp ecx, 8
jb 0x40d84b
mov ecx, dword [ebx]
jmp 0x40d84d
mov ecx, ebx
add eax, ecx
cmp edi, eax
jbe 0x40d858
call fcn.00433461
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x34]
push ecx
push ebp
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x68], edi
call fcn.0040fab0
mov ecx, dword [esp + 0x94]
mov byte [esp + 0x2b], al
mov eax, dword [ecx + 0x18]
add esp, 0x18
cmp eax, 8
jb 0x40d89d
mov ebp, dword [ebx]
jmp 0x40d89f
mov ebp, ebx
test ebp, ebp
je 0x40d8cb
cmp eax, 8
jb 0x40d8ac
mov ecx, dword [ebx]
jmp 0x40d8ae
mov ecx, ebx
cmp ecx, ebp
ja 0x40d8cb
cmp eax, 8
jb 0x40d8bb
mov eax, dword [ebx]
jmp 0x40d8bd
mov eax, ebx
mov edx, dword [esp + 0x7c]
mov ecx, dword [edx + 0x14]
lea edx, [eax + ecx*2]
cmp ebp, edx
jbe 0x40d8d0
call fcn.00433461
mov eax, dword [esp + 0x3c]
cmp eax, 0xfffffffe
je 0x40d8e8
test eax, eax
je 0x40d8e3
cmp eax, dword [esp + 0x7c]
je 0x40d8e8
call fcn.00433461
mov edi, dword [esp + 0x40]
sub edi, ebp
sar edi, 1
cmp byte [esp + 0x13], 0
je 0x40d9d7
mov eax, dword [esi + 4]
test eax, eax
mov dword [esp + 0x18], edi
je 0x40d922
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 + 0x14], eax
jb 0x40d927
call fcn.00433461
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x38]
mov ecx, dword [eax + ebx + 0x60]
add eax, ebx
test cl, 1
je 0x40d961
mov edx, dword [eax + 0x48]
test dl, 0x40
je 0x40d946
and ecx, 0xfffffffe
jmp 0x40d95e
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 0x40d975
test byte [eax + 0x48], 0x20
je 0x40d975
and ecx, 0xfffffffd
mov dword [eax + 0x60], ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x40d998
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 + 0x14], eax
jb 0x40d99d
call fcn.00433461
mov eax, dword [esi + 4]
mov eax, dword [ebx + eax]
cmp eax, 0xfffffffd
je 0x40d9d7
cmp eax, 0xffffffff
jne 0x40d9b4
mov byte [esp + 0x11], 0
jmp 0x40d9ca
cmp eax, 0xfffffffe
jne 0x40d9c0
mov byte [esp + 0x12], 1
jmp 0x40d9ca
cmp eax, dword [esp + 0x24]
jle 0x40d9ca
mov dword [esp + 0x24], eax
mov eax, 1
add dword [esp + 0x20], eax
add dword [esp + 0x14], eax
push 1
push edi
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x88]
call fcn.00404c60
mov edi, eax
cmp edi, 0xffffffff
jne 0x40d657
cmp dword [esp + 0x14], 0
jne 0x40da02
lea ecx, [esi + 0x34]
jmp 0x40da39
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 4]
add edi, 0xffffffff
test eax, eax
je 0x40da2a
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 0x40da2f
call fcn.00433461
mov edx, dword [esi + 4]
imul edi, edi, 0x64
lea ecx, [edi + edx + 0x20]
mov edx, dword [esp + 0x7c]
mov eax, dword [edx + 0x14]
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
mov eax, edx
call fcn.0040fa10
mov edi, dword [esp + 0x30]
xor ebx, ebx
add esp, 0xc
cmp byte [esp + 0x11], bl
jne 0x40db19
cmp edi, ebx
jl 0x40da95
test byte [esi + 0x50], 1
je 0x40da95
lea ecx, [esp + 0x54]
call fcn.004331cb
mov dword [esp + 0x54], vtable.boost::io::bad_format_string.0
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], ebx
lea edi, [esp + 0x54]
mov dword [esp + 0x74], 1
call fcn.0040c160
xor edi, edi
cmp dword [esp + 0x20], ebx
mov dword [esp + 0x7c], ebx
jle 0x40db12
xor ebp, ebp
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40dac4
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 0x40dac9
call fcn.00433461
mov eax, dword [esi + 4]
cmp dword [eax + ebp], 0xffffffff
jne 0x40db06
cmp eax, ebx
je 0x40daf0
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 0x40daf5
call fcn.00433461
mov eax, dword [esp + 0x7c]
mov ecx, dword [esi + 4]
mov dword [ecx + ebp], eax
add eax, 1
mov dword [esp + 0x7c], eax
add edi, 1
add ebp, 0x64
cmp edi, dword [esp + 0x20]
jl 0x40daa3
mov edi, dword [esp + 0x7c]
add edi, 0xffffffff
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push 0x20
call eax
sub esp, 0x64
movzx ecx, ax
mov eax, esp
mov dword [eax], 0xffffffff
mov dword [eax + 0x18], ebx
mov edx, 7
mov dword [eax + 0x1c], edx
mov word [eax + 8], bx
mov dword [eax + 0x38], edx
mov dword [eax + 0x34], ebx
mov word [eax + 0x24], bx
mov byte [eax + 0x54], 0
mov word [eax + 0x44], cx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0xe0], esp
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], 6
mov dword [eax + 0x48], 0x201
mov dword [eax + 0x50], ebx
mov dword [eax + 0x4c], ebx
push ecx
mov ecx, esi
mov dword [eax + 0x5c], 0x7fffffff
mov dword [eax + 0x60], ebx
call fcn.0040e5f0
cmp byte [esp + 0x12], 0
je 0x40db97
or dword [esi + 0x24], 4
add edi, 1
cmp byte [esp + 0x11], 0
mov dword [esi + 0x2c], edi
je 0x40dbaa
or dword [esi + 0x24], 1
jmp 0x40dbae
and dword [esi + 0x24], 0xfffffffe
mov eax, esi
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x68
ret 4