Function at 0x411440
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x470010
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4871a0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
lea ebp, [ebx + 4]
push 0xfffffffffffffff0
push eax
call edi
mov ecx, dword [ebp]
push 0xffffffffffffffec
push ecx
mov esi, eax
call edi
mov edi, eax
lea eax, [ebx + 0x80]
call fcn.00412ad0
mov edx, dword [ebp]
or esi, 0xa0000
push esi
mov esi, dword [sym.imp.USER32.dll_SetWindowLongW]
push 0xfffffffffffffff0
push edx
call esi
mov eax, dword [ebp]
push edi
push 0xffffffffffffffec
push eax
call esi
lea eax, [esp + 0x14]
call fcn.00413e00
mov dword [esp + 0x28], 0
mov ecx, dword [eax]
call fcn.00413e50
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, 0x48b9c0
je 0x4114fe
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4114fe
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.004501ef
add esp, 4
mov ecx, str.IDS_TITLE
lea edi, [esp + 0x14]
call fcn.00404d20
mov dword [esp + 0x28], 1
mov edx, dword [esp + 0x14]
mov eax, dword [ebp]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebp
call fcn.00413c50
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, dword [0x48d7d0]
push 0
push 0xc
call esi
push eax
push 0xb
call esi
push eax
push 1
push 0x80
push edi
mov edi, dword [sym.imp.USER32.dll_LoadImageW]
call edi
mov ecx, dword [ebp]
push eax
push 1
push 0x80
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [0x48d7d0]
push 0
push 0x32
mov dword [esp + 0x20], edx
call esi
push eax
push 0x31
call esi
push eax
mov eax, dword [esp + 0x24]
push 1
push 0x80
push eax
call edi
mov ecx, dword [ebp]
push eax
push 0
push 0x80
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x490208]
add esi, 0x10
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x48f1f4]
lea ecx, [esp + 0x18]
call fcn.00413c00
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add ebx, 0x20
mov dword [esp + 0x18], ebx
lea esi, [edi + 4]
lea ebx, [esp + 0x18]
call fcn.00413b90
mov edx, dword [esp + 0x30]
add edx, 0x60
lea esi, [edi + 0x10]
lea ebx, [esp + 0x18]
mov dword [esp + 0x18], edx
call fcn.00413b90
mov eax, dword [ebp]
mov edi, dword [esp + 0x30]
test eax, eax
je 0x41161a
mov dword [esp + 0x18], eax
mov eax, 4
lea esi, [edi + 0x68]
lea ebx, [esp + 0x18]
mov word [esp + 0x1c], ax
call fcn.00413b10
push edi
call fcn.00411bb0
call fcn.00411850
mov esi, dword [esp + 0x30]
push esi
call fcn.00412930
mov ecx, dword [esi + 0x64]
mov edx, dword [ecx + 0x1c]
lea edi, [esi + 0x64]
push 2
push edi
call edx
push esi
call fcn.00412650
mov eax, dword [edi]
mov ecx, dword [eax + 0x38]
push 0
push edi
call ecx
call fcn.0042ee80
mov dword [esi + 0x6b4], eax
test eax, eax
je 0x411691
push 0x478084
lea ebx, [esi + 0x6b8]
push 0xf6
mov eax, ebx
call fcn.00429570
mov ecx, dword [esi + 0x6b4]
mov edx, dword [ecx]
push 1
mov eax, ebx
call fcn.004291a0
push eax
mov eax, dword [ebp]
push 0
push eax
push ecx
mov ecx, dword [edx + 4]
call ecx
call fcn.004129c0
test eax, eax
jne 0x4116ae
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
push 3
push edi
mov dword [esi + 0x128], 0x5001
call eax
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
mov dword [esi + 0x6ac], 1
cmp ecx, 0x48b9c0
je 0x4116de
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4116de
push esi
call fcn.004501ef
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8