Function at 0x2045c410
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x2047f4f1
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x204a31e0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], esi
call fcn.204786b7
push eax
lea ecx, [esp + 0x30]
call sub.MFC80U.DLL_Ordinal_314
mov dword [esp + 0x80], 0
cmp dword [esi + 0x8c], 0
je 0x2045c79b
cmp dword [esi + 0x90], 0
je 0x2045c79b
mov eax, dword [esi + 0xc8]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x110a
push eax
call ebx
mov ebp, eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], ebp
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [esp + 0x80], 1
test ebp, ebp
je 0x2045c789
nop
push ebp
lea ecx, [esi + 0xa8]
call sub.MFC80U.DLL_Ordinal_3985
test eax, eax
je 0x2045c764
mov eax, dword [esi + 0xc8]
push ebp
push 4
push 0x110a
push eax
call ebx
mov edi, eax
test edi, edi
mov dword [esp + 0x18], edi
je 0x2045c764
jmp 0x2045c4e9
mov edi, dword [esp + 0x18]
push edi
lea ecx, [esi + 0xa8]
call sub.MFC80U.DLL_Ordinal_2861
mov ebp, eax
test ebp, ebp
jl 0x2045c743
mov eax, dword [esi + 0x8c]
cmp ebp, dword [eax + 8]
jge 0x2045c743
mov edx, dword [eax + 4]
lea ecx, [ebp*8]
sub ecx, ebp
lea eax, [edx + ecx*4]
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
mov ebx, dword [esi + 0x90]
mov eax, dword [ebx + 8]
xor edi, edi
test eax, eax
mov dword [esp + 0x28], eax
jle 0x2045c5a3
xor esi, esi
test esi, esi
jl 0x2045c784
cmp edi, dword [ebx + 8]
jge 0x2045c784
mov eax, dword [ebx + 4]
mov ecx, dword [eax + esi + 4]
add eax, esi
mov eax, dword [esp + 0x20]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x2045c586
test dx, dx
je 0x2045c582
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x2045c586
add eax, 4
add ecx, 4
test dx, dx
jne 0x2045c560
xor eax, eax
jmp 0x2045c58b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x2045c67b
add edi, 1
add esi, 0x1c
cmp edi, dword [esp + 0x28]
jl 0x2045c540
mov esi, dword [esp + 0x1c]
push ebp
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esi + 0x8c]
call fcn.20412030
mov byte [esp + 0x80], 3
mov edx, dword [esp + 0x18]
push edx
lea ecx, [esi + 0xa8]
call sub.MFC80U.DLL_Ordinal_2490
mov edi, dword [esi + 0x90]
mov dword [esp + 0x68], eax
mov esi, dword [edi + 8]
test esi, esi
jl 0x2045c784
lea eax, [esi + 1]
push eax
call fcn.20412b10
mov edx, dword [edi + 4]
lea ecx, [esi*8]
sub ecx, esi
lea eax, [edx + ecx*4]
push eax
lea ebx, [esp + 0x5c]
call fcn.204110e0
mov byte [esp + 0x80], 1
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x2045c61c
push eax
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
mov eax, dword [esp + 0x60]
test eax, eax
je 0x2045c62d
push eax
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
mov eax, dword [esp + 0x64]
test eax, eax
je 0x2045c63e
push eax
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x2045c64f
push eax
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0xc8]
push ecx
push 1
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x2045c754
cmp edi, dword [ebx + 8]
jge 0x2045c784
mov eax, dword [ebx + 4]
mov ebp, dword [esp + 0x1c]
lea esi, [edi*8]
sub esi, edi
add esi, esi
add esi, esi
mov ebx, dword [eax + esi + 0x10]
add eax, esi
mov eax, dword [esp + 0x18]
add ebp, 0xa8
push eax
mov ecx, ebp
call sub.MFC80U.DLL_Ordinal_2490
cmp eax, ebx
je 0x2045c64f
mov ebx, dword [esp + 0x1c]
push edi
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [ebx + 0x90]
call fcn.20412030
mov byte [esp + 0x80], 2
mov edx, dword [esp + 0x18]
push edx
mov ecx, ebp
call sub.MFC80U.DLL_Ordinal_2490
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0x90]
cmp edi, dword [eax + 8]
jge 0x2045c784
mov eax, dword [eax + 4]
add eax, esi
push eax
lea ebx, [esp + 0x40]
call fcn.204110e0
mov byte [esp + 0x80], 1
mov eax, dword [esp + 0x40]
test eax, eax
je 0x2045c718
push eax
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
mov eax, dword [esp + 0x44]
test eax, eax
je 0x2045c729
push eax
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
mov eax, dword [esp + 0x48]
test eax, eax
je 0x2045c73a
push eax
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
mov eax, dword [esp + 0x50]
jmp 0x2045c642
mov ecx, dword [esi + 0xc8]
push edi
push 1
push 0x110a
push ecx
call ebx
test eax, eax
mov dword [esp + 0x18], eax
jne 0x2045c4e5
mov ebp, dword [esp + 0x24]
mov edx, dword [esi + 0xc8]
push ebp
push 1
push 0x110a
push edx
call ebx
test eax, eax
mov dword [esp + 0x24], eax
je 0x2045c789
mov ebp, eax
jmp 0x2045c4b0
jmp fcn.20477d24
mov byte [esp + 0x80], 0
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x30]
test eax, eax
je 0x2045c7b5
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
cmp dword [esp + 0x38], 0
je 0x2045c7c8
mov edx, dword [esp + 0x34]
push edx
push 0
call sub.MFC80U.DLL_Ordinal_6751
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret