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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48ccb1
push eax
mov dword fs:[0], esp
sub esp, 0x988
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.0044bde0
test eax, eax
je 0x405a31
push 0
lea eax, [esp + 0x89c]
push str.CInstall_::_IsNonInstalledDevices_n
push eax
call fcn.00471c30
mov edi, str.ENTRY:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x598]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x598]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x898]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0044bd70
mov ecx, eax
call fcn.0044be10
lea eax, [esp + 0x598]
push eax
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
mov eax, dword [0x4b538c]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x9a0], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
push 0x403790
push 0x403770
push 5
lea ecx, [esp + 0x54]
push 8
push ecx
mov byte [esp + 0x9b4], 6
call fcn.00472400
mov eax, dword [0x4b538c]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x1924]
mov dword [esp + 0x9a0], 7
cmp eax, ebx
je 0x405be7
jmp 0x405aaf
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov esi, eax
add esi, 8
lea ecx, [esp + 0x1c]
push esi
mov dword [esp + 0x14], edx
call fcn.00482375
lea eax, [esi + 4]
lea ecx, [esp + 0x20]
push eax
call fcn.00482375
lea ecx, [esi + 8]
push ecx
lea ecx, [esp + 0x28]
call fcn.00482375
lea edx, [esi + 0xc]
lea ecx, [esp + 0x28]
push edx
call fcn.00482375
lea eax, [esi + 0x10]
lea ecx, [esp + 0x2c]
push eax
call fcn.00482375
lea ecx, [esi + 0x14]
push ecx
lea ecx, [esp + 0x34]
call fcn.00482375
lea edx, [esi + 0x18]
lea ecx, [esp + 0x34]
push edx
call fcn.00482375
lea eax, [esi + 0x1c]
mov ebp, esi
lea ebx, [esi + 0x2c]
lea edi, [esp + 0x4c]
mov ecx, dword [eax]
mov dword [esp + 0x18], 5
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x1c]
mov dword [esp + 0x44], edx
sub ebp, eax
push ebx
lea ecx, [edi - 4]
call fcn.00482375
lea ecx, [edi + ebp]
push ecx
mov ecx, edi
call fcn.00482375
mov eax, dword [esp + 0x18]
add ebx, 8
add edi, 8
dec eax
mov dword [esp + 0x18], eax
jne 0x405b47
lea edx, [esi + 0x54]
lea ecx, [esp + 0x70]
push edx
call fcn.00482375
lea eax, [esi + 0x58]
lea ecx, [esp + 0x74]
push eax
call fcn.00482375
lea ecx, [esi + 0x5c]
push ecx
lea ecx, [esp + 0x7c]
call fcn.00482375
mov edx, dword [esi + 0x60]
add esi, 0x64
mov ecx, 0x146
lea edi, [esp + 0x80]
mov dword [esp + 0x7c], edx
push str.SYSTEM
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x24]
push eax
call fcn.00472250
add esp, 8
test eax, eax
je 0x405bd7
mov eax, dword [esp + 0x7c]
cmp eax, 3
je 0x405bcf
cmp eax, 1
jne 0x405bd7
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x405aab
mov ebx, dword [esp + 0x14]
call fcn.0044bde0
test eax, eax
je 0x405c86
push ebx
lea ecx, [esp + 0x79c]
push str.CInstall_::_IsNonInstalledDevices_:_bRetVal___d_n
push ecx
call fcn.00471c30
mov edi, str.EXIT:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x698]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x698]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x798]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x698]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
call fcn.0044bd70
mov ecx, eax
call fcn.0044be20
lea ecx, [esp + 0x78]
mov dword [esp + 0x9a0], 0x11
call fcn.00482288
lea ecx, [esp + 0x74]
mov byte [esp + 0x9a0], 0x10
call fcn.00482288
lea ecx, [esp + 0x70]
mov byte [esp + 0x9a0], 0xf
call fcn.00482288
push 0x403790
push 5
lea ecx, [esp + 0x50]
push 8
push ecx
mov byte [esp + 0x9b0], 0xe
call fcn.00472130
lea ecx, [esp + 0x34]
mov byte [esp + 0x9a0], 0xd
call fcn.00482288
lea ecx, [esp + 0x30]
mov byte [esp + 0x9a0], 0xc
call fcn.00482288
lea ecx, [esp + 0x2c]
mov byte [esp + 0x9a0], 0xb
call fcn.00482288
lea ecx, [esp + 0x28]
mov byte [esp + 0x9a0], 0xa
call fcn.00482288
lea ecx, [esp + 0x24]
mov byte [esp + 0x9a0], 9
call fcn.00482288
lea ecx, [esp + 0x20]
mov byte [esp + 0x9a0], 8
call fcn.00482288
lea ecx, [esp + 0x1c]
mov dword [esp + 0x9a0], 0xffffffff
call fcn.00482288
mov ecx, dword [esp + 0x998]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x994
ret