Function at 0x100066c0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1004b74b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x10077990]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10077990]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x250]
mov ebx, dword [esp + 0x24c]
push 0
push 0
mov dword [esp + 0x30], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
mov esi, dword [ebx + 8]
add esi, 0xf8
push esi
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x244], 0
test ebp, ebp
je 0x10006a03
cmp dword [ebp + 0x10], 2
jne 0x10006a03
cmp dword [esp + 0x254], 0
jne 0x10006a03
cmp dword [ebp + 0x14], 0
jne 0x10006776
mov edi, 0x80040e76
jmp 0x10006a08
mov eax, dword [ebx + 8]
cmp dword [eax + 0x50], 0
jbe 0x10006792
test dword [eax + 0x3c], 0x100
jne 0x10006792
mov edi, 0x80040e05
jmp 0x10006a08
mov ecx, dword [eax + 0x14]
add ecx, 0xc
test byte [eax + 0x3c], 0x10
mov dword [esp + 0x24], ecx
je 0x100067ac
mov edi, 0x80004005
jmp 0x10006a08
mov eax, dword [0x1007a1e0]
push 0x800
push eax
mov dword [esp + 0x20], 0x400
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x100067d6
mov edi, 0x8007000e
jmp 0x10006a08
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x64]
cmp ecx, 0xffffffff
je 0x100067f7
mov eax, dword [eax + 0x34]
push ecx
push dword [eax + 0x10]
call sub.msjet40.dll_Ordinal_108
mov eax, dword [ebx + 8]
mov dword [eax + 0x64], 0xffffffff
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + 0x34]
mov edx, dword [eax + 0x14]
mov edi, dword [eax + 0x10]
lea eax, [ecx + 0x64]
push eax
push dword [ebp + 0x14]
push edx
push edi
call sub.msjet40.dll_Ordinal_315
mov ebp, eax
cmp ebp, 0xfffffae7
je 0x100069ea
test ebp, ebp
jns 0x1000682d
mov edi, 0x80004005
jmp 0x100068e4
mov eax, dword [ebx + 8]
mov dword [esp + 0x1c], 1
mov ecx, dword [eax + 0x38]
test ecx, ecx
je 0x10006844
call fcn.10039b10
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + 0x34]
mov eax, dword [eax + 0x58]
mov dword [ecx + 0x38], eax
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x38]
test ecx, ecx
je 0x1000685f
call fcn.100397b0
mov edi, dword [esp + 0x2c]
lea edx, [esp + 0x14]
xor eax, eax
push edx
lea edx, [esp + 0x24]
mov word [edi], ax
mov ecx, dword [ebx + 8]
push edx
push 0x100
lea edx, [esp + 0x44]
mov eax, dword [ecx + 0x34]
push edx
lea edx, [esp + 0x44]
push edx
push dword [esp + 0x2c]
push edi
push dword [ecx + 0x64]
push dword [eax + 0x10]
call sub.msjet40.dll_Ordinal_317
mov ebp, eax
cmp ebp, 0xfffff245
je 0x100068b1
test ebp, ebp
je 0x100068f9
cmp ebp, 0x3ee
jne 0x10006823
mov eax, dword [0x1007a1e0]
test eax, eax
je 0x100068c6
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x14]
mov eax, dword [0x1007a1e0]
mov ecx, dword [esp + 0x18]
mov edx, dword [eax]
add ecx, ecx
mov dword [esp + 0x18], ecx
add ecx, ecx
push ecx
push eax
call dword [edx + 0xc]
mov edi, eax
test edi, edi
jne 0x10006863
mov edi, 0x8007000e
test ebp, ebp
jne 0x100069ef
test edi, edi
jns 0x10006a4d
jmp 0x10006a08
mov ecx, 0x100
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
add ecx, ecx
cmp ecx, 0x200
jae 0x100069e5
xor eax, eax
mov word [esp + ecx + 0x38], ax
mov eax, dword [ebx + 8]
mov edx, dword [eax + 0x6c]
test edx, edx
je 0x10006936
mov eax, dword [0x1007a1e0]
test eax, eax
je 0x10006936
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [ebx + 8]
mov dword [eax + 0x6c], edi
mov eax, dword [ebx + 8]
mov dword [eax + 0x48], 1
mov eax, dword [ebx + 8]
mov edx, dword [eax + 0x4c]
test edx, edx
je 0x10006960
mov eax, dword [0x1007a1e0]
test eax, eax
je 0x10006960
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [ebx + 8]
add eax, 0x4c
push eax
mov eax, dword [esp + 0x2c]
push dword [eax + 0x14]
call fcn.10019d20
mov edx, dword [esp + 0x14]
mov edi, eax
mov ebp, dword [esp + 0x24]
and edx, 1
push edx
push 0xfd
mov ecx, dword [ebp + 0xc]
call fcn.10015160
mov ecx, eax
call fcn.10017fc0
test byte [esp + 0x14], 1
je 0x100069d9
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x38]
push eax
push 0xf2
call fcn.10015160
mov ecx, eax
call fcn.10017f20
mov edi, eax
test edi, edi
js 0x10006a08
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
shr eax, 1
and eax, 1
push eax
push 0x119
call fcn.10015160
mov ecx, eax
call fcn.10017fc0
mov eax, dword [ebx + 8]
or dword [eax + 0x3c], 0x20
jmp 0x100068ec
call fcn.1003e83e
mov edi, 0x80040e76
mov eax, dword [ebx + 8]
push 0x10068e18
push ebp
push edi
push dword [eax + 0x34]
call fcn.10010bd0
jmp 0x10006a21
mov edi, 0x80070057
mov eax, dword [ebx + 8]
push 0
push 0x10068e18
push edi
mov eax, dword [eax + 0x34]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.100105d0
test edi, edi
jns 0x10006a4d
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x64]
cmp ecx, 0xffffffff
je 0x10006a4d
cmp dword [esp + 0x1c], 1
jne 0x10006a4d
mov eax, dword [eax + 0x34]
push ecx
push dword [eax + 0x10]
call sub.msjet40.dll_Ordinal_108
mov eax, dword [ebx + 8]
mov dword [eax + 0x64], 0xffffffff
test esi, esi
je 0x10006a58
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.1003dba2
add esp, 0x234
ret 0xc