Function at 0x403f80
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x408dba
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
mov eax, dword [0x40e028]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
push 1
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x28], vtable.boost::exception.0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x18], str.bad_allocation
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_]
mov dword [esp + 0x20], vtable.boost::exception_detail::bad_alloc_.1.0
mov dword [esp + 0x34], vtable.boost::exception_detail::bad_alloc_.0
push 1
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x80], ebx
call fcn.004048e0
test byte [0x40ebb0], 1
mov dword [esp + 0x48], str.class_boost::exception_ptr___cdecl_boost::exception_detail::get_static_exception_object_struct_boost::exception_detail::bad_alloc___void_
mov dword [esp + 0x4c], str.F:SealRootC_thirdDepsinclude_boost_exception_detail_exception_ptr.hpp
mov dword [esp + 0x50], 0x8a
jne 0x4040d6
or dword [0x40ebb0], 1
push 0x2c
mov byte [esp + 0x7c], 2
call dword [sym.imp.mfc100u.dll_new]
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x78], 3
cmp eax, ebx
je 0x404066
push 1
lea edx, [esp + 0x44]
push edx
mov ecx, eax
call fcn.00404560
jmp 0x404068
xor eax, eax
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7c], 2
call fcn.00404ed0
mov ecx, dword [eax]
mov dword [0x40ebb4], ecx
mov eax, dword [eax + 4]
mov dword [0x40ebb8], eax
cmp eax, ebx
je 0x404097
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x4040c9
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4040c9
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4040c9
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
push 0x409230
call fcn.004063ba
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [0x40ebb4]
mov dword [eax], ecx
mov edx, dword [0x40ebb8]
mov dword [eax + 4], edx
mov eax, edx
cmp eax, ebx
je 0x4040fc
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov byte [esp + 0x78], bl
mov edx, dword [esp + 0x60]
mov esi, dword [sym.imp.MSVCR100.dll_public_virtual:_void___thiscall_std::exception::destructor_void_]
mov dword [esp + 0x40], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::bad_alloc__.2.0
mov dword [esp + 0x54], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::bad_alloc__.1.0
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x60], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::bad_alloc__.0
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx + 4]
lea edx, [eax - 8]
mov dword [esp + eax + 0x5c], edx
lea ecx, [esp + 0x54]
mov dword [esp + 0x40], vtable.boost::exception_detail::bad_alloc_.1.0
mov dword [esp + 0x54], vtable.std::bad_alloc.0
call esi
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x40], vtable.boost::exception.0
cmp ecx, ebx
je 0x404168
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test al, al
je 0x404168
mov dword [esp + 0x44], ebx
mov dword [esp + 0x78], 0xffffffff
lea ecx, [esp + 0x34]
mov dword [esp + 0x68], vtable.boost::exception_detail::clone_base.0
mov dword [esp + 0x20], vtable.boost::exception_detail::bad_alloc_.1.0
mov dword [esp + 0x34], vtable.std::bad_alloc.0
call esi
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], vtable.boost::exception.0
cmp ecx, ebx
je 0x4041a5
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret