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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49ca80
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4c17d0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
push 0x64
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ecx - 0xc]
neg eax
sbb eax, eax
and eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax - 0xc]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebx + 0x50]
and eax, 0xfffffffe
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov ecx, 1
test al, 4
je 0x41a2b0
xor ecx, ecx
lea edx, [ebx + 0x74]
push edx
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [ebx + 0x28]
push ecx
lea esi, [ebx + 0x38]
lea edi, [ebx + 0x70]
push eax
mov ecx, esi
call fcn.00419960
add esp, 0x14
cmp eax, 1
jne 0x41a411
test byte [esp + 0x18], 2
je 0x41a339
xor eax, eax
lea edx, [esp + 0x40]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov eax, dword [esi]
push edx
push eax
mov dword [esp + 0x48], 0x2c
call dword [sym.imp.USER32.dll_GetWindowPlacement]
cmp dword [esp + 0x48], 2
jne 0x41a3e6
mov ecx, dword [esi]
push 9
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebx + 0x58]
push eax
mov byte [ebx + 0x48], 0
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x78], 1
mov eax, dword [ebx + 0x88]
mov dword [esp + 0x18], eax
cmp dword [ebx + 0x84], eax
jbe 0x41a36a
call fcn.00478cdf
mov edi, dword [ebx + 0x84]
mov edx, dword [ebx + 0x78]
mov dword [esp + 0x2c], edx
cmp edi, dword [ebx + 0x88]
jbe 0x41a384
call fcn.00478cdf
mov esi, dword [ebx + 0x78]
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], esi
add edi, 0xc
test esi, esi
je 0x41a39c
cmp esi, dword [esp + 0x2c]
je 0x41a3a1
call fcn.00478cdf
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x18]
je 0x41a5cf
test esi, esi
jne 0x41a495
call fcn.00478cdf
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esi + 0x10]
jb 0x41a3ca
call fcn.00478cdf
cmp dword [edi + 0x14], 0x10
mov edx, dword [edi + 0x10]
mov dword [esp + 0x1c], edx
jb 0x41a49c
mov eax, dword [edi]
mov dword [esp + 0x10], eax
jmp 0x41a4a0
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x41a339
push eax
mov eax, dword [ebx + 4]
push 0x1f4
push 0x64
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebx + 0x44], eax
jmp 0x41a623
test eax, eax
jne 0x41a623
lea esi, [ebx + 0x58]
push esi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ecx, ecx
mov dword [esp + 0x78], ecx
mov eax, dword [ebx + 0x40]
cmp dword [ebx + 0x54], eax
lea edx, [eax + 1]
mov dword [ebx + 0x40], edx
jle 0x41a456
mov eax, dword [ebx + 4]
push ecx
push 0x1f4
push 0x64
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebx + 0x44], eax
push esi
jmp 0x41a61d
lea eax, [ebx + 0x78]
mov dword [ebx + 0x44], ecx
call fcn.0041a800
mov ecx, dword [ebx + 0x3c]
push ecx
mov byte [ebx + 0x48], 0
mov dword [edi], 3
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41a48f
mov edx, dword [ebx + 0x74]
mov eax, dword [edi]
mov ecx, dword [ebx + 0x3c]
push edx
push eax
push 0x4cc
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
push esi
jmp 0x41a61d
mov esi, dword [esi]
jmp 0x41a3bc
mov dword [esp + 0x10], edi
mov esi, dword [ebx + 0x38]
mov ecx, dword [edi - 8]
mov dword [esp + 0x14], ecx
test esi, esi
je 0x41a519
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41a519
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], edx
lea edx, [esp + 0x10]
push edx
push 0xbb8
push 0
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
push eax
push 0
push 0x4a
push esi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x2c], 0
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x41a519
cmp dword [esp + 0x10], 0
je 0x41a519
mov eax, dword [edi - 8]
mov ecx, dword [esp + 0x28]
mov edx, dword [ebx]
mov edx, dword [edx + 0x14]
push eax
mov eax, dword [ecx]
push eax
mov ecx, ebx
call edx
jmp 0x41a59d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x74], eax
cmp eax, 0x5b4
jne 0x41a568
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x41a536
mov eax, dword [edi]
jmp 0x41a538
mov eax, edi
mov esi, dword [ebx + 0x38]
push 0x1770
push ecx
push eax
mov eax, dword [edi - 8]
push eax
call fcn.0041c270
add esp, 0x10
test eax, eax
je 0x41a568
mov eax, dword [edi - 8]
mov ecx, dword [esp + 0x28]
mov edx, dword [ebx]
mov edx, dword [edx + 0x14]
push eax
mov eax, dword [ecx]
push eax
mov ecx, ebx
call edx
jmp 0x41a59d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x74], eax
mov eax, dword [ebx + 0x3c]
push eax
mov dword [ebx + 0x70], 0x69
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41a59d
mov ecx, dword [ebx + 0x74]
mov edx, dword [ebx + 0x70]
mov eax, dword [ebx + 0x3c]
push ecx
push edx
push 0x4cc
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x41a5cb
call fcn.00478cdf
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax + 0x10]
jb 0x41a5ba
call fcn.00478cdf
add dword [esp + 0x28], 0x24
mov esi, dword [esp + 0x24]
add edi, 0x24
jmp 0x41a392
mov eax, dword [eax]
jmp 0x41a5ac
mov eax, dword [ebx + 0x88]
lea esi, [ebx + 0x78]
mov dword [esp + 0x1c], eax
cmp dword [esi + 0xc], eax
jbe 0x41a5e6
call fcn.00478cdf
mov edi, dword [esi + 0xc]
mov edx, dword [esi]
mov dword [esp + 0x2c], edx
cmp edi, dword [esi + 0x10]
jbe 0x41a5f9
call fcn.00478cdf
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov eax, dword [esi]
push ecx
push edx
push edi
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0041a950
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0x44], 0
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4