Function at 0x4b0f40
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x50f34b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push ebp
mov dword [esp + 0x30], ecx
push esi
push edi
mov ecx, 0x54bd18
call fcn.004c67c0
test eax, eax
je 0x4b141e
mov ebx, dword [esp + 0x94]
push 0x100
push 0x28
mov ecx, ebx
call fcn.004ab190
push 0x101
push 0x28
mov ecx, ebx
mov dword [esp + 0x2c], eax
call fcn.004ab190
push 4
push 0x28
mov ecx, ebx
mov dword [esp + 0x18], 0
call fcn.004ab080
test eax, eax
je 0x4b141e
mov esi, dword [eax + 8]
test esi, esi
je 0x4b141e
mov ecx, dword [eax + 4]
lea edi, [esp + 0x44]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
xor edx, edx
rep movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 4]
mov ecx, 3
mov edi, 0x54612c
lea esi, [esp + 0x44]
mov byte [esp + eax + 0x44], 0
repe cmpsb byte [esi], byte es:[edi]
jne 0x4b1026
push 6
push 0x28
mov ecx, ebx
mov dword [esp + 0x2c], 8
call fcn.004ab190
test ax, ax
jne 0x4b1012
mov dword [esp + 0x10], 2
jmp 0x4b103e
cmp ax, 1
jne 0x4b141e
mov dword [esp + 0x10], 1
jmp 0x4b103e
mov ecx, 3
mov edi, 0x546130
lea esi, [esp + 0x44]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4b141e
push 0x10
push 0x7fe0
mov ecx, ebx
call fcn.004ab080
test eax, eax
je 0x4b141e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4b141e
mov ebp, dword [eax + 0x14]
test ebp, ebp
je 0x4b141e
cmp dword [ebp + 0x14], 1
jbe 0x4b141e
push 0x10
push 0x28
mov ecx, ebx
mov dword [esp + 0x48], eax
call fcn.004ab080
test eax, eax
je 0x4b141e
mov eax, dword [eax + 8]
test eax, eax
je 0x4b141e
xor ecx, ecx
push 0x11
mov cx, word [eax]
push 0x28
mov dword [esp + 0x3c], ecx
mov ecx, ebx
call fcn.004ab080
test eax, eax
je 0x4b141e
mov eax, dword [eax + 8]
test eax, eax
je 0x4b141e
xor ecx, ecx
push 0x2111
mov cx, word [eax]
push 8
mov dword [esp + 0x38], ecx
mov ecx, ebx
mov dword [esp + 0x20], 0
call fcn.004ab080
test eax, eax
je 0x4b112f
mov esi, dword [eax + 8]
test esi, esi
je 0x4b112f
mov eax, dword [eax + 4]
cmp eax, 0x3f
jb 0x4b10f4
mov eax, 0x3f
mov ecx, eax
lea edi, [esp + 0x44]
mov edx, ecx
push str.DMJ2K
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x48], 0
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x4b112f
mov eax, 1
mov dword [esp + 0x18], eax
jmp 0x4b1133
mov eax, dword [ebp + 0x14]
dec eax
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x30]
neg edi
sbb edi, edi
and eax, 0xffff
and edi, 2
mov ebx, dword [esp + 0x34]
inc edi
shr eax, 3
imul edi, eax
mov ecx, edi
mov dword [esp + 0x1c], edi
imul ecx, dword [esp + 0x14]
imul ecx, esi
imul ecx, ebx
push ecx
call sub.MFC42.DLL_operatornew
push 0x400
mov dword [esp + 0x28], eax
call sub.MFC42.DLL_operatornew
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x4b12b1
mov edx, edi
mov dword [esp + 0x18], 0
imul edx, esi
imul edx, ebx
push edx
call sub.MFC42.DLL_operatornew
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x14]
mov ebx, 1
add esp, 4
cmp eax, ebx
jbe 0x4b1264
cmp ebx, eax
jb 0x4b11c7
xor ecx, ecx
jmp 0x4b1210
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4b11e3
mov ecx, dword [ebp + 0x10]
inc ecx
cmp ecx, ebx
jne 0x4b11e3
mov eax, dword [edx + 8]
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0xc], eax
mov ecx, eax
jmp 0x4b1210
mov ecx, eax
shr ecx, 1
cmp ebx, ecx
jae 0x4b11fc
mov ecx, dword [ebp + 4]
test ebx, ebx
jbe 0x4b120a
mov eax, ebx
mov ecx, dword [ecx + 8]
dec eax
jne 0x4b11f4
jmp 0x4b120a
mov ecx, dword [ebp + 8]
sub eax, ebx
dec eax
je 0x4b120a
mov ecx, dword [ecx + 4]
dec eax
jne 0x4b1204
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], ebx
mov ecx, dword [ecx]
push 0xe000
push 0xfffe
call fcn.004ab080
test eax, eax
je 0x4b1264
mov esi, dword [eax + 8]
test esi, esi
je 0x4b1264
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
mov ecx, dword [eax + 4]
add edi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 4]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add esi, eax
mov eax, dword [ebp + 0x14]
inc ebx
cmp ebx, eax
mov dword [esp + 0x18], esi
jb 0x4b11bf
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x3c]
mov ebx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push edx
mov edx, dword [esp + 0x20]
push eax
push esi
push ecx
push 1
push 0x64
push 0
push edx
push ebx
mov ecx, 0x54bd18
call fcn.004c67e0
test eax, eax
je 0x4b12a3
mov dword [esp + 0x14], 0
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x4b1400
mov eax, edi
imul eax, esi
imul eax, ebx
push eax
mov dword [esp + 0x2c], eax
call sub.MFC42.DLL_operatornew
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov ebx, 1
add esp, 4
cmp eax, ebx
mov dword [esp + 0x14], 0
jbe 0x4b13ea
cmp ebx, eax
jb 0x4b12ea
xor ecx, ecx
jmp 0x4b1333
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4b1306
mov ecx, dword [ebp + 0x10]
inc ecx
cmp ecx, ebx
jne 0x4b1306
mov eax, dword [edx + 8]
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0xc], eax
mov ecx, eax
jmp 0x4b1333
mov ecx, eax
shr ecx, 1
cmp ebx, ecx
jae 0x4b131f
mov ecx, dword [ebp + 4]
test ebx, ebx
jbe 0x4b132d
mov eax, ebx
mov ecx, dword [ecx + 8]
dec eax
jne 0x4b1317
jmp 0x4b132d
mov ecx, dword [ebp + 8]
sub eax, ebx
dec eax
je 0x4b132d
mov ecx, dword [ecx + 4]
dec eax
jne 0x4b1327
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], ebx
mov ecx, dword [ecx]
push 0xe000
push 0xfffe
call fcn.004ab080
mov esi, eax
test esi, esi
je 0x4b13ea
mov eax, dword [esi + 8]
test eax, eax
je 0x4b13ea
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x4b1372
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x38]
push edx
push eax
call fcn.004b01a0
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esi + 4]
push eax
mov eax, dword [esi + 8]
push ecx
push 1
push 0x64
push 0
push edx
push eax
mov ecx, 0x54bd18
call fcn.004c67e0
test eax, eax
jne 0x4b13ea
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
cmp ecx, eax
jne 0x4b13ea
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
add eax, esi
inc ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
cmp ebx, eax
jb 0x4b12e2
mov eax, dword [esp + 0x18]
dec ebx
push eax
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_operatordelete
mov esi, dword [esp + 0x24]
add esp, 4
mov ecx, dword [esp + 0x24]
push ecx
call sub.MFC42.DLL_operatordelete
mov ebx, dword [esp + 0x18]
add esp, 4
test ebx, ebx
jg 0x4b143b
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x80
ret 8
push 0x20
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x38], eax
test eax, eax
mov dword [esp + 0x8c], 0
je 0x4b147b
imul edi, ebx
imul edi, dword [esp + 0x30]
imul edi, dword [esp + 0x34]
push 1
push esi
push edi
push 0x10
push 0x7fe0
mov ecx, eax
call fcn.004aa010
mov esi, eax
jmp 0x4b147d
xor esi, esi
mov ecx, dword [esp + 0x40]
push esi
mov dword [esp + 0x90], 0xffffffff
call fcn.004ab3c0
test esi, esi
je 0x4b14a6
mov ecx, esi
call fcn.004aa050
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
jmp 0x4b1420