Function at 0x1002205
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x100e064
call fcn.010084d8
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 8
lea edi, [esi + 0x68]
xor ebx, ebx
cmp dword [edi], ebx
je 0x1002230
push edi
call fcn.0100a1f7
mov dword [edi], ebx
lea edi, [esi + 0x20]
cmp dword [edi], ebx
je 0x100223f
push edi
call fcn.0100a1f7
mov dword [edi], ebx
lea edi, [esi + 0x4c]
cmp dword [edi], ebx
je 0x100224e
push edi
call fcn.0100a1f7
mov dword [edi], ebx
lea edi, [esi + 0x50]
cmp dword [edi], ebx
je 0x100225d
push edi
call fcn.0100a1f7
mov dword [edi], ebx
mov eax, dword [esi + 0x48]
cmp eax, ebx
je 0x100226e
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [esi + 0x48], ebx
mov eax, dword [esi + 0x54]
cmp eax, ebx
je 0x100227f
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [esi + 0x54], ebx
mov eax, dword [esi]
cmp eax, ebx
je 0x100228d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x100229d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 4], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x10022ad
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 8], ebx
lea eax, [esi + 0xc]
push eax
call fcn.010066da
cmp dword [esi + 0x78], 1
jne 0x10022c4
push dword [esi + 0x74]
call fcn.01009f1b
lea edi, [esi + 0x94]
mov eax, dword [edi]
cmp eax, ebx
je 0x10022da
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [edi], ebx
lea edi, [esi + 0x9c]
mov eax, dword [edi]
cmp eax, ebx
je 0x10022f7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [edi], ebx
mov ecx, dword [esi + 0x7c]
cmp ecx, ebx
jne 0x100231b
lea edi, [esi + 0x88]
mov eax, dword [edi]
cmp eax, ebx
je 0x100231b
push dword [esi + 0x8c]
mov ecx, esi
push eax
push ebx
call fcn.01002192
jmp 0x1002334
cmp ecx, 1
jne 0x1002336
lea edi, [esi + 0x88]
mov eax, dword [edi]
cmp eax, ebx
je 0x1002336
push eax
mov ecx, esi
call fcn.010020fe
mov dword [edi], ebx
mov eax, dword [esi + 0x80]
cmp eax, ebx
je 0x1002348
push eax
mov ecx, esi
call fcn.01002125
lea edi, [esi + 0x84]
mov eax, dword [edi]
cmp eax, ebx
je 0x1002381
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd4], ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], 7
lea ecx, [esi + 0x74]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
mov byte [ebp - 4], 6
lea ecx, [esi + 0x70]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
mov byte [ebp - 4], 5
lea ecx, [esi + 0x64]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
mov byte [ebp - 4], 4
lea ecx, [esi + 0x60]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
mov byte [ebp - 4], 3
lea ecx, [esi + 0x58]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
mov byte [ebp - 4], 2
lea ecx, [esi + 0x30]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
mov byte [ebp - 4], 1
lea ecx, [esi + 0x2c]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
mov byte [ebp - 4], bl
lea ecx, [esi + 0x28]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x24]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret