Function at 0x401d20
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b43b0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x4dbe18]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
push 0x64
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esi + 0x2c]
mov eax, dword [ecx - 0xc]
mov edx, dword [esi + 0x30]
mov ebx, dword [esi + 0x50]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [edx - 0xc]
neg ecx
sbb ecx, ecx
and ecx, edx
and ebx, 0xfffffffe
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov eax, 1
test ebx, 4
je 0x401d93
xor eax, eax
mov edx, dword [esi + 0x28]
lea edi, [esi + 0x74]
push edi
push eax
mov eax, dword [esp + 0x24]
push ebx
lea ecx, [esi + 0x70]
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esi + 0x38]
push edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
call fcn.00401370
add esp, 0x14
cmp eax, 1
jne 0x401f09
test bl, 2
je 0x401e2f
mov edi, dword [esp + 0x10]
mov edx, dword [edi]
xor eax, eax
lea ecx, [esp + 0x50]
push ecx
push edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x58], 0x2c
call dword [sym.imp.USER32.dll_GetWindowPlacement]
cmp dword [esp + 0x58], 2
jne 0x401ede
mov eax, dword [edi]
push 9
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esi + 0x58]
push eax
mov byte [esi + 0x48], 0
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebx, [esi + 0x78]
mov dword [esp + 0x88], 1
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], eax
cmp dword [ebx + 0xc], eax
jbe 0x401e64
call fcn.0048b3f2
mov edi, dword [ebx + 0xc]
mov edx, dword [ebx]
mov dword [esp + 0x3c], edx
cmp edi, dword [ebx + 0x10]
jbe 0x401e77
call fcn.0048b3f2
mov eax, dword [ebx]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], eax
add edi, 0xc
test eax, eax
je 0x401e8e
cmp eax, dword [esp + 0x3c]
je 0x401e97
call fcn.0048b3f2
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
cmp ecx, dword [esp + 0x20]
je 0x4020e9
test eax, eax
jne 0x401f97
call fcn.0048b3f2
xor eax, eax
mov edx, dword [esp + 0x38]
cmp edx, dword [eax + 0x10]
jb 0x401ec2
call fcn.0048b3f2
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
mov dword [esp + 0x28], eax
jb 0x401f9e
mov ecx, dword [edi]
mov dword [esp + 0x1c], ecx
jmp 0x401fa2
mov ecx, dword [edi]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x401e2f
mov edx, dword [esi + 4]
push eax
push 0x1f4
push 0x64
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x44], eax
jmp 0x402137
xor edi, edi
cmp eax, edi
jne 0x402137
lea ebx, [esi + 0x58]
push ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x88], edi
mov eax, dword [esi + 0x40]
cmp dword [esi + 0x54], eax
lea ecx, [eax + 1]
mov dword [esi + 0x40], ecx
jle 0x401f51
mov edx, dword [esi + 4]
push edi
push 0x1f4
push 0x64
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x44], eax
push ebx
jmp 0x402131
lea eax, [esi + 0x78]
mov dword [esi + 0x44], edi
call fcn.00402300
mov eax, dword [esi + 0x3c]
mov edi, dword [esp + 0x14]
push eax
mov byte [esi + 0x48], 0
mov dword [edi], 3
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401f91
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edi]
mov ecx, dword [esi + 0x3c]
push edx
push eax
push 0x4cc
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
push ebx
jmp 0x402131
mov eax, dword [eax]
jmp 0x401eb4
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x10]
mov ebx, dword [eax]
mov edx, dword [edi - 8]
mov dword [esp + 0x24], edx
test ebx, ebx
je 0x40201e
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40201e
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0xbb8
push 0
mov dword [esp + 0x54], edx
lea edx, [esp + 0x50]
push edx
push 0
push 0x4a
push ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x38], 0
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x40201e
cmp dword [esp + 0x1c], 0
je 0x40201e
mov ecx, dword [edi - 8]
mov edx, dword [esp + 0x38]
mov eax, dword [esi]
push ecx
mov ecx, dword [edx]
mov edx, dword [eax + 0x14]
push ecx
mov ecx, esi
call edx
jmp 0x4020b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x18]
mov dword [ebx], eax
cmp eax, 0x5b4
jne 0x40207a
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x40203e
mov eax, dword [edi]
jmp 0x402040
mov eax, edi
push 0x1770
push ecx
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx]
push eax
mov eax, dword [edi - 8]
push eax
call fcn.00407280
add esp, 0x10
test eax, eax
je 0x402077
mov eax, dword [edi - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
push eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
push eax
call edx
mov esi, dword [ebp + 8]
jmp 0x4020b3
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov eax, dword [esi + 0x3c]
mov ebx, dword [esp + 0x14]
push eax
mov dword [ebx], 0x69
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4020b3
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [ebx]
mov ecx, dword [esi + 0x3c]
push edx
push eax
push 0x4cc
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4020e5
call fcn.0048b3f2
xor eax, eax
mov edx, dword [esp + 0x38]
cmp edx, dword [eax + 0x10]
jb 0x4020d0
call fcn.0048b3f2
add dword [esp + 0x38], 0x24
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
add edi, 0x24
jmp 0x401e84
mov eax, dword [eax]
jmp 0x4020c2
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x2c], eax
cmp dword [ebx + 0xc], eax
jbe 0x4020fa
call fcn.0048b3f2
mov edi, dword [ebx + 0xc]
mov eax, dword [ebx]
mov dword [esp + 0x3c], eax
cmp edi, dword [ebx + 0x10]
jbe 0x40210d
call fcn.0048b3f2
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
mov eax, dword [ebx]
push ecx
push edx
push edi
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00402420
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x44], 0
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4