Function at 0x417b30
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48bd68
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x20
cmp eax, 5
push ebx
push ebp
push esi
push edi
mov esi, ecx
jne 0x417d69
lea edi, [esi + 0x437c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x417b80
push eax
push eax
push 0xa0
mov ecx, esi
call fcn.0043fc10
jmp 0x417d69
mov eax, dword [esi + 0x4394]
test eax, eax
je 0x417b9f
push 0
push 0
push 0x182
mov ecx, esi
call fcn.0043fc10
jmp 0x417d69
mov eax, dword [esp + 0x40]
mov cl, byte [eax]
mov eax, dword [eax + 1]
test cl, cl
mov byte [esp + 0x10], cl
mov dword [esp + 0x44], eax
jle 0x417d69
mov ecx, esi
call fcn.0040b700
mov ebx, dword [eax + 0x18]
mov ecx, esi
call fcn.0040b700
mov eax, dword [eax + 8]
test ebx, ebx
mov dword [esp + 0x14], eax
je 0x417d69
test eax, eax
je 0x417d69
mov ecx, dword [esi + 0x4504]
push 0
add ecx, 0x35b0
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CSingleLock::CSingleLock
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0
call sub.MFC42.DLL_CSingleLock::Lock
lea ebp, [esi + 0x37d8]
push 1
push ebp
mov ecx, ebx
call dword [sym.imp.rmDB.dll_public:_int___thiscall_CArmy::GetArmyID_char___int_]
mov edi, eax
test edi, edi
jle 0x417d4f
mov ecx, dword [esi + 0x4504]
push 0xffffffffffffffff
call fcn.00464990
test eax, eax
mov dword [esp + 0x40], eax
jg 0x417c79
mov ecx, dword [esi + 0x4504]
call fcn.00464a70
cmp eax, 1
jne 0x417d4f
mov dword [esp + 0x40], 0x64
push 8
push edi
push ebp
mov ecx, esi
call fcn.004120f0
test eax, eax
jne 0x417c97
push eax
push eax
push 0x101
mov ecx, esi
call fcn.0043fc10
jmp 0x417d4f
push eax
push edi
mov ecx, ebx
call dword [sym.imp.rmDB.dll_public:_int___thiscall_CArmy::IsAgitOwner_int__int_]
test eax, eax
jne 0x417c57
push eax
push eax
push 0x1e
mov ecx, esi
call fcn.0043fc10
jmp 0x417d4f
mov edi, dword [esi + 0x3f90]
cmp edi, 0xee6b2800
jbe 0x417caa
mov edi, 0xee6b2800
mov ecx, dword [esp + 0x44]
mov eax, 0xee6b2800
sub eax, edi
cmp ecx, eax
jbe 0x417cbd
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x44]
push eax
push ecx
push edx
mov ecx, ebx
call dword [sym.imp.rmDB.dll_public:_unsigned_long_int___thiscall_CArmy::RemoveAgitSafeMoney_int__char__unsigned_long_int__unsigned_long_int__]
test eax, eax
jbe 0x417d4f
mov ecx, dword [esp + 0x14]
add edi, eax
mov al, byte [esi + 0x4564]
mov dword [esi + 0x3f90], edi
and al, 0xfd
push ebp
mov dword [esi + 0x3f94], 0
mov byte [esi + 0x4564], al
call dword [sym.imp.rmDB.dll_public:_int___thiscall_CUserDB::SetUserItem_struct_USERDB__]
push 0
push 0
mov ecx, esi
call fcn.00439f50
mov ecx, dword [esp + 0x18]
mov al, byte [esp + 0x10]
mov dword [esp + 0x1d], ecx
mov ecx, dword [esi + 0x4504]
mov byte [esp + 0x1c], al
call fcn.00464a70
mov edx, dword [esi]
cmp eax, 1
lea eax, [esp + 0x1c]
push 1
push eax
push 5
jne 0x417d45
push 0x7ad
jmp 0x417d4a
push 0x76d
mov ecx, esi
call dword [edx + 0xc]
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CSingleLock::Unlock
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CSingleLock::Unlock
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 8