Function at 0x405c70
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4073e9
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40d02c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
mov edi, 1
mov dword [esp + 0x18], ebp
cmp dword [esi + 0x90], edi
jne 0x405e98
mov ecx, dword [esi + 0xa8]
test ecx, ecx
je 0x405ce4
mov eax, dword [esi + 0xa4]
push eax
call dword [sym.imp.NCRRetailFoundation.dll_public:_int___thiscall_NCRRetailCommon::ANCRRunnableModuleExt::RemoveListener_class_NCRRetailCommon::INCRRunnableModuleExtListener__]
mov ecx, dword [esi + 0xa8]
mov edx, dword [ecx + 0x78]
mov eax, dword [edx + 0x14]
add ecx, 0x78
call eax
mov dword [esi + 0xa8], ebp
lea ecx, [esi + 0x34]
call dword [sym.imp.NCRRetailFoundation.dll_public:_int___thiscall_NCRRetailCommon::NCRString::IsEmpty_void_const]
test eax, eax
jne 0x405e98
cmp dword [esi + 0x84], edi
jne 0x405e98
call dword [sym.imp.NCRRetailFoundation.dll_public:_static_class_NCRRetailCommon::NCRModuleLoader____cdecl_NCRRetailCommon::NCRModuleLoader::GetInstance_void_]
mov edi, dword [sym.imp.NCRRetailFoundation.dll_public:_char_const____thiscall_NCRRetailCommon::NCRString::operator_char_const__void_const]
mov ebx, eax
test ebx, ebx
je 0x405d4d
mov ecx, dword [esi + 0x94]
push ecx
push str.ANCRRunnableModuleExt
lea ecx, [esi + 0x74]
call edi
push eax
lea ecx, [esi + 0x54]
call edi
push eax
mov ecx, ebx
call dword [sym.imp.NCRRetailFoundation.dll_public:_class_NCRRetailCommon::ANCRObject____thiscall_NCRRetailCommon::NCRModuleLoader::LoadModule_char_const___char_const___char_const___unsigned_int_]
test eax, eax
je 0x405d3c
add eax, 0xffffff88
jmp 0x405d3e
xor eax, eax
mov dword [esi + 0xa8], eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x14]
mov ecx, ebx
call eax
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x405e98
mov ebp, dword [eax]
lea ecx, [esi + 0x64]
mov ebx, eax
call edi
mov ecx, dword [esi + 0x88]
mov edx, dword [ebp + 0x10]
push eax
push ecx
push ebx
mov ecx, ebx
call edx
test eax, eax
je 0x405e65
mov eax, dword [esi + 0xa4]
mov ecx, dword [esi + 0xa8]
push eax
call dword [sym.imp.NCRRetailFoundation.dll_public:_int___thiscall_NCRRetailCommon::ANCRRunnableModuleExt::AddListener_class_NCRRetailCommon::INCRRunnableModuleExtListener__]
test eax, eax
je 0x405e65
lea ecx, [esp + 0x1c]
call dword [sym.imp.NCRRetailFoundation.dll_public:_void___thiscall_NCRRetailCommon::NCRString::constructor_void_]
mov dword [esp + 0x38], 0
mov ecx, dword [esi + 0x8c]
push ecx
lea ebp, [esi + 0x34]
mov ecx, ebp
call edi
mov ebx, dword [sym.imp.NCRRetailFoundation.dll_public:_void___cdecl_NCRRetailCommon::NCRString::Format_char_const__]
push eax
lea edx, [esp + 0x24]
push str.Starting_Module__s_with_timeout_of__d
push edx
call ebx
add esp, 0x10
lea ecx, [esp + 0x1c]
call edi
mov edx, dword [esi + 0x9c]
mov ecx, 0x200
call fcn.00406370
mov ecx, dword [esi + 0xa8]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
test eax, eax
je 0x405dfb
mov esi, 1
jmp 0x405e3d
mov ecx, ebp
call edi
push eax
lea eax, [esp + 0x20]
push str.Module__s_failed_to_Start
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x1c]
call edi
mov edx, dword [esi + 0x9c]
mov ecx, 0x20
call fcn.00406370
mov esi, dword [esi + 0x9c]
push 0
push 0
push 0xc001ee4e
call fcn.00406400
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.NCRRetailFoundation.dll_public_virtual:_void___thiscall_NCRRetailCommon::NCRString::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xa8]
mov edx, dword [eax + 0x78]
lea ecx, [eax + 0x78]
mov eax, dword [edx + 0x14]
call eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0xa8], 0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret