Function at 0x403d00
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x528c93
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov edi, dword [ebp + 8]
mov dword [esp + 0x68], eax
mov eax, dword [edi]
add eax, 0x10c8
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutexLock::constructor_class_GameMgr::GMMutex__]
mov ebx, dword [ebp + 0xc]
mov byte [esp + 0x68], 1
mov esi, dword [edi]
lea ecx, [esp + 0x30]
push ecx
add esi, 0x10b0
call fcn.0048a030
mov eax, dword [edi]
mov esi, dword [esp + 0x30]
mov edi, dword [eax + 0x10b4]
add eax, 0x10b0
test esi, esi
je 0x403d82
cmp esi, eax
je 0x403d88
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x34]
cmp ebx, edi
jne 0x403db9
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 0
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutexLock::destructor_void_]
mov eax, 0xbbc
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test esi, esi
jne 0x403dc3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esi + 4]
jne 0x403dce
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [ebx + 0x28]
lea edi, [esp + 0x18]
call fcn.0040a3d0
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 0
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutexLock::destructor_void_]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x20]
test eax, eax
je 0x403dfa
cmp dword [eax + 4], 0
jne 0x403e4d
mov eax, dword [esp + 0x18]
mov dword [esp + 0x68], 0xffffffff
mov esi, dword [esp + 0x1c]
test esi, esi
mov byte [eax + 0x60], 1
je 0x40403b
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x40403b
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x40403b
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
jmp 0x40403b
mov ebx, dword [esp + 0x18]
lea edi, [ebx + 0x1c]
mov ecx, edi
call fcn.0041ac50
mov ecx, dword [ebx + 0x54]
mov esi, dword [ebp + 0x10]
shr ecx, 3
test cl, 1
je 0x403f3e
cmp byte [esi + 4], 0
jne 0x403f3e
cmp byte [esi + 5], 0
jne 0x403f3e
push 3
mov ecx, edi
call fcn.0041ad80
add ebx, 0x64
cmp esi, ebx
je 0x403ea3
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
mov edi, esi
mov esi, ebx
call fcn.00414b00
mov ebx, dword [ebp + 8]
mov edx, dword [esp + 0x18]
mov byte [edx + 0x60], 1
mov eax, dword [ebx]
add eax, 0x10c8
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutexLock::constructor_class_GameMgr::GMMutex__]
mov byte [esp + 0x68], 3
mov eax, dword [ebx]
mov ecx, dword [eax + 0x10b4]
mov ecx, dword [ecx]
add eax, 0x10b0
mov esi, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], esi
mov edi, edi
mov eax, dword [ebx]
mov edi, dword [eax + 0x10b4]
add eax, 0x10b0
test esi, esi
je 0x403ef5
cmp esi, eax
je 0x403efb
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x24], edi
je 0x403ff2
test esi, esi
jne 0x403f0f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x24]
cmp edx, dword [esi + 4]
jne 0x403f1e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
cmp dword [ecx + 0x28], eax
je 0x403fc0
lea esi, [esp + 0x20]
call fcn.004abd20
mov esi, dword [esp + 0x20]
jmp 0x403ee0
mov al, byte [esi + 5]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
mov ecx, dword [ecx]
xor edx, edx
test al, al
setne dl
push edx
push edi
mov edi, ecx
call fcn.004220d0
cmp byte [esi + 4], 0
je 0x403ea6
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x54]
shr ecx, 3
test cl, 1
je 0x403ea6
mov dword [esp + 0x28], 0
call fcn.005147f0
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + 0x34]
lea edi, [esp + 0x28]
mov dword [esp + 0x2c], eax
call fcn.004318a0
mov ecx, dword [esi + 0x28]
lea esi, [esp + 0x40]
call fcn.0043f570
mov ecx, eax
mov byte [esp + 0x68], 2
call fcn.004318a0
mov ecx, esi
mov byte [esp + 0x68], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x403ea6
mov ecx, dword [ebx]
push eax
add ecx, 0x10bc
call fcn.00404e10
mov edi, eax
lea eax, [esp + 0x18]
call fcn.0040a3d0
mov edx, dword [esp + 0x24]
mov ecx, dword [ebx]
push edx
push esi
lea eax, [esp + 0x40]
push eax
add ecx, 0x10b0
push ecx
call fcn.00404ef0
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 0
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutexLock::destructor_void_]
mov dword [esp + 0x68], 0xffffffff
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40403b
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x40403b
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 0x40403b
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc