Function at 0x495e30
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4e7fb4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x100
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x40], esi
mov edx, dword [esp + 0x134]
mov eax, dword [esp + 0x128]
mov eax, dword [eax]
mov ebp, dword [esp + 0x120]
mov ecx, dword [esp + 0x138]
push ecx
mov ecx, dword [esp + 0x134]
push edx
mov edx, dword [esp + 0x134]
push ecx
mov ecx, dword [esp + 0x14c]
push edx
push 0x4ebd38
push ecx
push eax
push ebp
push 0x15
mov ecx, esi
call fcn.0043b200
xor ebx, ebx
push 0x5194ec
mov dword [esp + 0x11c], ebx
mov dword [esi], 0x4f4f40
mov dword [esp + 0x48], 0x5194ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x24]
mov ebp, dword [ebp + 0x2c]
mov eax, dword [esi + 0x2c]
mov edx, dword [esp + 0x13c]
add eax, ecx
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x2c], ebp
mov ebp, dword [ebp + 0x48]
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x20]
add eax, ecx
shl ebp, 2
mov dword [esp + 0x30], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [edx]
lea ecx, [esp + 0x10]
not ebp
push ecx
mov byte [esp + 0x11c], 1
and ebp, 0x10000
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], 0x64
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], eax
call fcn.0043f2e0
mov eax, dword [esp + 0x14]
add esp, 4
cmp word [eax], 0x3a
jne 0x495f3a
mov word [eax], bx
add eax, 2
mov dword [esp + 0x10], eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00449970
add esp, 8
test eax, eax
jle 0x495f6d
lea ecx, [esp + 0x10]
push ecx
call fcn.0043f2e0
mov edx, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x10]
mov ax, word [eax]
cmp ax, bx
je 0x495f8a
cmp ax, 0x30
jb 0x495f85
cmp ax, 0x39
jbe 0x495f8a
add dword [esp + 0x10], 2
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x20], 0x64
mov dword [esp + 0x24], ebx
call fcn.00449970
add esp, 8
test eax, eax
jle 0x495fc1
lea eax, [esp + 0x10]
push eax
call fcn.0043f2e0
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x10]
mov ax, word [edx]
cmp ax, bx
je 0x495fde
cmp ax, 0x30
jb 0x495fd9
cmp ax, 0x39
jbe 0x495fde
add dword [esp + 0x10], 2
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00449970
add esp, 8
test eax, eax
jle 0x496004
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], edx
push 0x54
call fcn.004c86a5
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
cmp edi, ebx
mov byte [esp + 0x118], 2
je 0x496037
lea eax, [esi + 0x34]
push eax
mov ecx, edi
call fcn.004aaed0
mov dword [edi], 0x4f5b98
mov byte [edi + 0x35], 0x15
jmp 0x496039
xor edi, edi
mov ecx, dword [esp + 0x144]
mov eax, ecx
shr eax, 0xf
and eax, 1
sete al
test cl, 0x10
mov dword [esi + 0x1c], edi
mov byte [esp + 0x118], 1
mov dword [edi + 0x50], esi
mov byte [esp + 0x17], al
jne 0x496067
mov ebx, 0x10000000
mov edx, ecx
shr edx, 5
not edx
and edx, 2
or ebx, edx
mov edx, ecx
and edx, 0xa0000000
cmp edx, 0xa0000000
jne 0x496088
or ebx, 8
jmp 0x49609c
test ecx, ecx
jns 0x496091
or ebx, 4
jmp 0x49609c
test ecx, 0x20000000
jne 0x49609c
or ebx, 0x10
test cl, cl
jns 0x4960a6
or ebx, 0x80
test al, al
jne 0x4960b0
or ebx, 0x8000000
mov eax, dword [esp + 0x124]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x18]
mov ecx, dword [esp + 0x30]
push str.msctls_trackbar32
push eax
push edx
mov edx, dword [esp + 0x44]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x50]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, ebx
or eax, ebp
or eax, 0x40000000
push eax
mov ecx, edi
call fcn.004ab0c0
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x18]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x31
push edx
call ebp
cmp eax, 0xffffffff
je 0x496115
test eax, eax
jne 0x49611e
mov eax, dword [0x51948c]
test eax, eax
je 0x49612e
cmp eax, 0xffffffff
je 0x49612e
push 1
push eax
mov eax, dword [edi + 0x18]
push 0x30
push eax
call ebp
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, dword [edi]
push eax
push ecx
mov ecx, edi
call dword [edx + 0x88]
mov ebp, dword [esp + 0x24]
mov edx, dword [edi]
push ebp
mov ecx, edi
call dword [edx + 0x8c]
movzx eax, byte [esp + 0x17]
push eax
mov ecx, esi
call fcn.0043aff0
and ebx, 0x10000000
push ebx
mov ecx, esi
call fcn.0043b090
mov ecx, dword [edi + 0x18]
push 1
push ecx
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
push ebp
lea edx, [esp + 0x4c]
push 0x4edd14
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esi + 8]
add esp, 0xc
cmp word [eax], 0
je 0x4961a3
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esi + 0x30]
push eax
call fcn.004637c0
push 0x5194ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x110]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10c
ret 0x28