Function at 0x491b0e
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e0ad5
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x52472c]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push esi
push edi
mov eax, dword [0x52472c]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov ebx, ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], eax
cmp dword [ebx + 0x88], esi
je 0x492054
mov dword [esp + 0x14], esi
mov dword [esp + 0x170], esi
cmp dword [esp + 0x14], esi
je 0x491b87
push dword [esp + 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, dword [ebx + 0x84]
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x1c], esi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x49203d
lea eax, [esp + 0x58]
push eax
call fcn.0049207a
mov byte [esp + 0x170], 1
lea eax, [ebx + 0x34]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
mov dword [esp + 0x34], eax
test ecx, 0xfffffffe
jle 0x492019
mov dword [esp + 0x18], 1
jmp 0x491bdd
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x18]
dec edi
mov esi, eax
mov dword [esp + 0x28], edi
call fcn.0045bf60
movzx eax, word [eax]
sub eax, 0x67
je 0x491f40
dec eax
dec eax
je 0x491e8d
sub eax, 3
je 0x491f40
sub eax, 7
je 0x491f40
sub eax, 3
jne 0x491ffa
push str.Binary_Data
lea ecx, [esp + 0xa0]
call fcn.00404342
mov byte [esp + 0x170], 5
lea eax, [esp + 0x9c]
push eax
push edi
lea esi, [ebx + 0x1c]
call fcn.00408b31
push eax
lea ebx, [esp + 0x60]
call fcn.00490d3e
mov byte [esp + 0x170], 1
xor ebx, ebx
push ebx
push 1
lea ecx, [esp + 0xa4]
call fcn.004035c5
cmp dword [esp + 0x30], ebx
je 0x491da5
push dword [esp + 0x18]
push dword [esp + 0x18]
call sub.msi.dll_MsiRecordGetStringW
cmp eax, dword [ebp + 0xc]
ja 0x491ff6
push 0x501184
lea ecx, [esp + 0xbc]
call fcn.00404342
mov byte [esp + 0x170], 6
lea eax, [esp + 0xb8]
push eax
lea ebx, [esp + 0x5c]
call fcn.00490c66
xor ebx, ebx
inc ebx
mov dword [esp + 0x28], eax
mov byte [esp + 0x170], bl
xor edi, edi
push edi
push ebx
lea ecx, [esp + 0xc0]
call fcn.004035c5
mov esi, dword [esp + 0x30]
mov eax, dword [esi]
push 0x4f6654
mov ecx, esi
call dword [eax]
push eax
lea eax, [esp + 0xdc]
push eax
call fcn.004092e1
add esp, 0xc
mov byte [esp + 0x170], 7
push dword [esp + 0x28]
push eax
lea eax, [esp + 0x14c]
push eax
call fcn.00409330
add esp, 0xc
mov byte [esp + 0x170], 9
push edi
push ebx
lea ecx, [esp + 0xdc]
call fcn.004035c5
mov eax, dword [esi]
lea ecx, [esp + 0x144]
push ecx
push dword [esp + 0x2c]
mov ecx, esi
call dword [eax + 4]
cmp dword [esp + 0x15c], 8
mov eax, dword [esp + 0x148]
jae 0x491d4f
lea eax, [esp + 0x148]
push eax
lea ecx, [esp + 0x84]
call fcn.00404342
mov byte [esp + 0x170], 0xa
push dword [esp + 0x18]
lea ecx, [esp + 0x84]
push dword [esp + 0x18]
call fcn.0049138a
pop ecx
pop ecx
mov byte [esp + 0x170], 9
push edi
push ebx
lea ecx, [esp + 0x88]
call fcn.004035c5
mov byte [esp + 0x170], bl
push edi
push ebx
lea ecx, [esp + 0x14c]
jmp 0x491ff1
lea eax, [esp + 0x40]
push eax
call fcn.0045ce90
mov byte [esp + 0x170], 0xb
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x40]
call fcn.0045d790
lea eax, [esp + 0x2c]
push eax
push ebx
push dword [esp + 0x20]
mov dword [esp + 0x38], ebx
push esi
call sub.msi.dll_MsiRecordSetStringA
cmp eax, ebx
jne 0x491e0f
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jbe 0x491e0f
lea ecx, [esp + 0x40]
call fcn.0045d0c0
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x4c]
jne 0x491dfc
call fcn.004b3cb3
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x50]
push dword [esp + 0x20]
push esi
call sub.msi.dll_MsiRecordSetStringA
mov edi, dword [esp + 0x20]
mov ecx, dword [edi + 0x70]
add edi, 0x64
cmp ecx, ebx
jne 0x491e21
xor esi, esi
jmp 0x491e2e
mov eax, dword [edi + 0x14]
sub eax, ecx
push 0x18
cdq
pop esi
idiv esi
mov esi, eax
mov ebx, dword [edi + 0x10]
mov eax, ebx
sub eax, ecx
push 0x18
cdq
pop ecx
idiv ecx
cmp eax, esi
jae 0x491e51
lea eax, [esp + 0x40]
push eax
push 1
push ebx
call fcn.00492d7b
mov dword [edi + 0x10], eax
jmp 0x491e76
lea esi, [esp + 0x38]
call fcn.0049496d
push dword [esp + 0x3c]
lea eax, [esp + 0x44]
push dword [esp + 0x3c]
push eax
lea eax, [esp + 0x84]
push eax
mov eax, edi
call fcn.00492c3c
mov byte [esp + 0x170], 1
lea eax, [esp + 0x40]
push eax
call fcn.0045d050
jmp 0x491ff6
push dword [esp + 0x18]
push dword [esp + 0x18]
call sub.msi.dll_MsiRecordReadStream
cmp eax, 0x80000000
jne 0x491ec1
push 0x4ed604
lea ecx, [esp + 0x110]
call fcn.00404342
mov byte [esp + 0x170], 2
or dword [esp + 0x1c], 1
jmp 0x491edf
push eax
lea esi, [esp + 0xf4]
call fcn.00493cb2
pop ecx
mov dword [esp + 0x170], 3
or dword [esp + 0x1c], 2
push eax
push dword [esp + 0x2c]
lea esi, [ebx + 0x1c]
call fcn.00408b31
push eax
lea ebx, [esp + 0x60]
call fcn.00490d3e
push 2
pop eax
mov dword [esp + 0x170], eax
test byte [esp + 0x1c], al
je 0x491f1b
and dword [esp + 0x1c], 0xfffffffd
push 0
push 1
lea ecx, [esp + 0xf8]
call fcn.004035c5
xor eax, eax
inc eax
mov dword [esp + 0x170], eax
test byte [esp + 0x1c], al
je 0x491ff6
and dword [esp + 0x1c], 0xfffffffe
lea ecx, [esp + 0x10c]
jmp 0x491fed
xor edi, edi
push edi
lea ecx, [esp + 0x12c]
mov dword [esp + 0x28], edi
mov dword [esp + 0x144], 7
call fcn.0040364b
mov byte [esp + 0x170], 4
lea eax, [esp + 0x24]
push eax
push 0x4ed604
push dword [esp + 0x20]
push dword [esp + 0x20]
call sub.msi.dll_MsiRecordSetStreamA
cmp eax, 0xea
jne 0x491fc0
cmp dword [esp + 0x24], edi
jbe 0x491fc0
push edi
push dword [esp + 0x28]
lea ecx, [esp + 0x130]
call fcn.00444be7
inc dword [esp + 0x24]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
push edi
lea ecx, [esp + 0x130]
call fcn.00408b09
push eax
push dword [esp + 0x20]
push esi
call sub.msi.dll_MsiRecordSetStreamA
lea eax, [esp + 0x128]
push eax
push dword [esp + 0x2c]
lea esi, [ebx + 0x1c]
call fcn.00408b31
push eax
lea ebx, [esp + 0x60]
call fcn.00490d3e
mov byte [esp + 0x170], 1
lea ecx, [esp + 0x128]
push 0
push 1
call fcn.004035c5
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
sar ecx, 1
dec eax
cmp eax, ecx
jl 0x491bd9
xor esi, esi
lea eax, [esp + 0x58]
push eax
lea eax, [ebx + 0x4c]
call fcn.00490d5b
mov byte [esp + 0x170], 0
lea eax, [esp + 0x58]
push eax
call fcn.0049209d
jmp 0x491b78
or dword [esp + 0x170], 0xffffffff
cmp dword [esp + 0x14], esi
je 0x492054
push dword [esp + 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.004b1fae
mov esp, ebp
pop ebp
ret 8